/* Storefront additions written as plain CSS (the site no longer has an SCSS build). */

/* Product card "+": once the item is in the cart it stays a green tick (click adds one more). */
.pcard-plus.is-added { background: #16a34a; color: #fff; }
.pcard-plus.is-added:hover { background: #15803d; transform: none; }
.pcard-plus.is-added .bi { animation: ebc-tick .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.pcard-plus .bi { line-height: 1; display: block; }
@keyframes ebc-tick { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pcard-plus.is-added .bi { animation: none; } }

/* Arrow buttons for small sideways rows (cart drawer "You may also like"). */
.cd-suggest-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.cd-suggest-head h3 { margin: 0; }
.ebc-row-nav { display: inline-flex; gap: .35rem; }
.ebc-row-nav button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid #e1e4e8; border-radius: 50%;
    background: #fff; color: #242529; font-size: .85rem; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.ebc-row-nav button:hover:not(:disabled) { background: #d71616; border-color: #d71616; color: #fff; }
.ebc-row-nav button:disabled { opacity: .35; cursor: default; }
.ebc-row-nav[hidden] { display: none; }

/* Checkout: coupons applied in place, with the list of available coupons. */
.co-coupons h2 { display: flex; align-items: center; gap: .45rem; }
.co-applied { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 14px; background: #f0fdf4; border: 1px dashed #86efac; }
.co-applied > div { flex: 1; } .co-applied strong { display: block; letter-spacing: .04em; } .co-applied small { color: #15803d; }
.co-tick { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #16a34a; color: #fff; flex: none; animation: ebc-tick .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.co-list-title { margin: 1rem 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8f98; }
.co-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; max-height: 340px; overflow-y: auto; }
.co-item { display: flex; align-items: stretch; gap: 0; border: 1px solid #eceef1; border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.co-item:hover { border-color: #fbc8c8; box-shadow: 0 10px 22px -18px rgba(215, 22, 22, .6); }
.co-item.is-applied { border-color: #86efac; background: #f7fef9; }
.co-item.is-locked { opacity: .7; }
.co-ticket { position: relative; flex: none; width: 58px; display: grid; place-items: center; background: linear-gradient(160deg, #e3201b, #a50f0f); color: #fff; }
.co-ticket span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.co-ticket::after { content: ""; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px;
    background: radial-gradient(circle at 5px 6px, #fff 4px, transparent 4.5px) 0 0 / 10px 12px repeat-y; }
.co-item.is-applied .co-ticket { background: linear-gradient(160deg, #22c55e, #15803d); }
.co-body { flex: 1; min-width: 0; padding: .6rem .75rem; }
.co-body code { display: inline-block; padding: .1rem .45rem; border: 1px dashed #d4d7dc; border-radius: 6px; color: #242529; font-size: .8rem; font-weight: 700; letter-spacing: .04em; background: #fafafa; }
.co-body p { margin: .3rem 0 .15rem; font-size: .82rem; color: #3d434b; line-height: 1.35; }
.co-body small { display: block; font-size: .74rem; color: #6b6f77; }
.co-apply, .co-state { align-self: center; margin-right: .7rem; }
.co-apply { border: 0; background: none; color: #d71616; font-weight: 700; font-size: .85rem; padding: .4rem .2rem; }
.co-apply:hover { text-decoration: underline; }
.co-state { font-size: .78rem; font-weight: 700; color: #16a34a; white-space: nowrap; }

/* Checkout: "Apply coupon" row that opens a coupons sheet (bottom sheet on phones). */
.co-row { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .2rem 0; border: 0; background: none; text-align: left; color: #242529; }
.co-row-ic { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff1f1; color: #d71616; font-size: 1.1rem; }
.co-row-txt { flex: 1; min-width: 0; } .co-row-txt b { display: block; font-size: .98rem; } .co-row-txt small { color: #16a34a; font-weight: 600; font-size: .8rem; }
.co-row > .bi-chevron-right { color: #9aa0a6; transition: transform .2s; } .co-row:hover > .bi-chevron-right { transform: translateX(3px); color: #d71616; }
.co-more { margin-top: .6rem; padding: 0; border: 0; background: none; color: #d71616; font-size: .85rem; font-weight: 600; }
.co-sheet { width: min(460px, 100vw); max-height: min(80vh, 680px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: #242529;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.co-sheet[open] { display: flex; flex-direction: column; animation: co-pop .22s ease both; }
.co-sheet::backdrop { background: rgba(20, 20, 24, .5); animation: co-fade .2s ease both; }
.co-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem .6rem; }
.co-sheet-head h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.co-sheet .co-code { margin: 0 1.2rem; }
.co-sheet .co-list-title { margin: 1rem 1.2rem .5rem; }
.co-sheet .co-list { flex: 1; max-height: none; overflow-y: auto; padding: 0 1.2rem 1.2rem; }
.co-sheet > p { margin-left: 1.2rem !important; margin-right: 1.2rem !important; padding-bottom: 1.2rem; }
body:has(.co-sheet[open]) { overflow: hidden; }
@media (max-width: 575.98px) {
    .co-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 85vh; }
    .co-sheet[open] { animation: co-up .28s cubic-bezier(.2, .8, .2, 1) both; }
    .co-sheet-head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d8dbe0; }
    .co-sheet-head { position: relative; padding-top: 1.3rem; }
}
@keyframes co-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes co-up { from { transform: translateY(100%); } }
@keyframes co-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .co-sheet[open], .co-sheet::backdrop { animation: none; } }

/* Toasts fit narrow phones (wrap instead of running off the edge). */
.ebc-toasts { width: max-content; max-width: calc(100vw - 2rem); }
.ebc-toast { white-space: normal; }
