/* Shopping bag: right-hand drawer on desktop, full-screen bag on phones (inc/cart-drawer.php, assets/drawer.js). */
.lp-bag { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: flex-end; }
.lp-bag[hidden] { display: none; }
html.lp-bag-open, html.lp-bag-open body { overflow: hidden; }
.lp-bag__scrim { position: absolute; inset: 0; background: rgba(44, 62, 80, .45); animation: lpBagFade .2s ease; }
.lp-bag__panel { position: relative; display: flex; flex-direction: column; width: 440px; max-width: 100%; height: 100%; height: 100dvh; background: #fff; box-shadow: -12px 0 40px rgba(44, 62, 80, .18); outline: none; animation: lpBagIn .25s ease; color: var(--lp-ink); }
@keyframes lpBagIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes lpBagFade { from { opacity: 0; } to { opacity: 1; } }

.lp-bag__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--lp-line); }
.lp-bag__eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lp-pink); }
.lp-bag__title { margin: 0; font-size: 24px; color: var(--lp-blue); }
.lp-bag__title span { font-size: 15px; font-weight: 500; color: #5b6b7a; }
.lp-bag__close { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 30px; line-height: 1; color: var(--lp-ink); cursor: pointer; }
.lp-bag__close:hover { background: var(--lp-cream); }

.lp-bag__progress { padding: 12px 22px; background: #fff7e6; border-bottom: 1px solid #f5d7a1; font-size: 14px; color: var(--lp-ink); }
.lp-bag__progress[hidden] { display: none; }
.lp-bag__track { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(44, 62, 80, .12); overflow: hidden; }
.lp-bag__track span { display: block; height: 100%; border-radius: 3px; background: var(--lp-green); transition: width .3s ease; }

.lp-bag__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 22px 18px; }
.lp-bag__loading { margin: 24px 0; color: #5b6b7a; }
.lp-bag__item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--lp-line); transition: opacity .2s; }
.lp-bag__item.is-busy { opacity: .5; pointer-events: none; }
.lp-bag__img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--lp-cream); }
.lp-bag__name { margin: 0 0 4px; font-family: var(--lp-head); font-size: 17px; font-weight: 800; color: var(--lp-blue); }
.lp-bag__details { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--lp-ink); }
.lp-bag__details span { display: block; }
.lp-bag__details b { font-weight: 700; }
.lp-bag__actions { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 13px; }
.lp-bag__actions a, .lp-bag__actions button { padding: 0; border: 0; background: none; font: inherit; color: var(--lp-purple); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-bag__actions button { color: #5b6b7a; }
.lp-bag__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-bag__row strong { font-size: 16px; color: var(--lp-ink); }
.lp-bag__stepper { display: inline-flex; align-items: center; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; }
.lp-bag__stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; color: var(--lp-ink); cursor: pointer; }
.lp-bag__stepper button:disabled { color: #c3ccd6; cursor: default; }
.lp-bag__stepper output { min-width: 26px; text-align: center; font-weight: 700; }

.lp-bag__empty { padding: 48px 8px; text-align: center; }
.lp-bag__empty-title { margin: 0 0 6px; font-family: var(--lp-head); font-size: 20px; font-weight: 800; color: var(--lp-blue); }
.lp-bag__empty p { margin: 0 0 18px; }

.lp-bag__welcome { margin: 18px 0 0; padding: 14px 16px; border: 2px dashed var(--lp-pink); border-radius: var(--lp-radius); background: var(--lp-cream); }
.lp-bag__welcome[hidden] { display: none; }
.lp-bag__w-title { margin: 0 0 2px; font-weight: 800; font-size: 15px; }
.lp-bag__w-sub { margin: 0 0 10px; font-size: 13px; }
.lp-bag__w-row { display: flex; gap: 8px; }
.lp-bag__w-row input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.lp-bag__w-row button { flex: 0 0 auto; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--lp-purple); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.lp-bag__w-row button:disabled { opacity: .6; }
.lp-bag__w-msg { margin: 6px 0 0; font-size: 13px; color: var(--lp-pink); }
.lp-bag__w-msg:empty { display: none; }
.lp-bag__welcome.is-done { border: 2px solid var(--lp-green); background: #eef8f0; }
.lp-bag__welcome.is-done p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.lp-bag__welcome.is-done small { display: block; font-size: 12px; color: #5b6b7a; }
.lp-bag__tick { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--lp-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.lp-bag .lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lp-bag__bottom { flex: 0 0 auto; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lp-line); background: #fff; }
.lp-bag__bottom[hidden] { display: none; }
.lp-bag__totals p { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 14px; }
.lp-bag__totals p:first-child { font-size: 16px; font-weight: 700; }
.lp-bag__disc span:last-child { color: var(--lp-green); font-weight: 700; }
.lp-bag__ship { color: #5b6b7a; }
.lp-bag__checkout { display: block; margin: 12px 0 6px; padding: 15px 18px; border-radius: 12px; background: var(--lp-purple); color: #fff !important; text-align: center; font-family: var(--lp-head); font-size: 18px; font-weight: 800; text-decoration: none !important; }
.lp-bag__checkout:hover { background: var(--lp-purple-dark); }
.lp-bag__continue { display: block; width: 100%; padding: 8px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--lp-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.lp-bag-toast { position: fixed; left: 50%; bottom: 24px; z-index: 10000; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background: var(--lp-ink); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.lp-bag-toast[hidden] { display: none; }

/* Phones: full-screen bag, list scrolls, subtotal and Checkout stay pinned at the bottom. */
@media (max-width: 767px) {
	.lp-bag__panel { width: 100%; box-shadow: none; animation: lpBagUp .25s ease; }
	@keyframes lpBagUp { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
	.lp-bag__top { padding: 16px 18px 12px; }
	.lp-bag__progress, .lp-bag__body, .lp-bag__bottom { padding-left: 18px; padding-right: 18px; }
}

/* Product page: Buy now, edit mode, errors from a background add. */
.lp-buy-now { display: block; width: 100%; margin-top: 10px !important; background: #fff !important; color: var(--lp-purple) !important; box-shadow: inset 0 0 0 2px var(--lp-purple); }
.lp-buy-now:hover { background: var(--lp-cream) !important; }
.lp-buy-now[hidden], .lp-edit-cancel[hidden] { display: none !important; }
.lp-edit-cancel { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: #5b6b7a; text-decoration: underline; }
.lp-edit-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #eef4fb; color: var(--lp-ink); font-size: 14px; }
.lp-add-errors { width: 100%; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fdecef; color: #9f1d3d; font-size: 14px; }
.lp-add-errors[hidden] { display: none; }
.lp-add-errors p { margin: 0; }
.single_add_to_cart_button.loading { opacity: .7; }

/* Checkout summary: quantity, Edit personalization, Add another bag. */
.lp-sum-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 13px; }
.lp-sum-actions a { white-space: nowrap; }
.lp-sum-actions.is-busy { opacity: .5; pointer-events: none; }
.lp-sum-actions a { color: var(--lp-purple); text-decoration: underline; text-underline-offset: 3px; }
.lp-bag__stepper--sm button { width: 30px; height: 30px; font-size: 16px; }
.lp-bag__stepper--sm output { min-width: 20px; font-size: 13px; }
.lp-sum-more { display: inline-block; margin: 4px 0 10px; font-size: 14px; color: var(--lp-purple); text-decoration: underline; text-underline-offset: 3px; }
