/* Cart drawer: slides in from the right */
html.ws-drawer-lock { overflow: hidden; padding-right: var(--ws-sbw, 0); }

.ws-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; transition: visibility 0s linear .45s; }
.ws-drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }

.ws-drawer__overlay { position: absolute; inset: 0; background: rgba(12, 12, 14, .5); opacity: 0; transition: opacity .35s ease; }
.ws-drawer.is-open .ws-drawer__overlay { opacity: 1; }

.ws-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 48px rgba(0, 0, 0, .18); transform: translate3d(100%, 0, 0); transition: transform .45s cubic-bezier(.32, .72, 0, 1); will-change: transform; }
.ws-drawer.is-open .ws-drawer__panel { transform: translate3d(0, 0, 0); }

/* Close button: a clean round ✕ inside the panel */
.ws-drawer__close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 40px; height: 40px; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: #f3f3f5 !important; color: #111 !important; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.ws-drawer__close:hover { background: #e7e7ea !important; }
.ws-drawer__close:active { transform: scale(.92); }
.ws-drawer__close:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }

.ws-drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; transition: opacity .2s ease; }
.ws-drawer__body.is-busy { opacity: .6; pointer-events: none; }
.ws-drawer__body.is-in > * { animation: ws-rise .4s cubic-bezier(.22, .8, .3, 1) both; }
.ws-drawer__body.is-in > *:nth-child(2) { animation-delay: .05s; }
.ws-drawer__body.is-in > *:nth-child(3) { animation-delay: .1s; }
@keyframes ws-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

.ws-drawer__head { padding: 24px 72px 14px 28px; }
.ws-drawer__title { margin: 0; font-size: 1.5rem; font-weight: 700; color: #111; line-height: 1.2; }
.ws-drawer__loading, .ws-drawer__error { margin: 0 24px 12px; padding: 12px 14px; border-radius: 10px; background: #f6f6f7; color: #374151; font-size: .95rem; }
.ws-drawer__error { background: #f3f3f3; color: #991b1b; }
.ws-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; color: #4b5563; }
.ws-drawer__empty p { margin: 0; font-size: 1.05rem; }

.ws-drawer__items { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 4px 28px; overscroll-behavior: contain; }
.ws-drawer__item { position: relative; display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #ececef; transition: opacity .2s ease, transform .2s ease; }
.ws-drawer__item.is-leaving { opacity: 0; transform: translate3d(18px, 0, 0); }
.ws-drawer__thumb { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #f2f2f2; }
.ws-drawer__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-drawer__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 30px; }
.ws-drawer__name { font-size: 1rem; font-weight: 700; line-height: 1.3; color: #111 !important; text-decoration: none !important; }
.ws-drawer__meta { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: #f6f6f7; color: #4b5563; font-size: .8rem; }
.ws-drawer__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 2px; }
.ws-drawer__qty { flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; border: 1px solid #d9d9de; border-radius: 999px; overflow: hidden; background: #fff; }
.ws-drawer__qbtn { flex: 0 0 40px !important; width: 40px !important; min-width: 40px !important; height: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #111 !important; font-size: 1.4rem; font-weight: 500; line-height: 1; cursor: pointer; transition: background .15s ease; }
.ws-drawer__qbtn:hover:not(:disabled) { background: #f1f1f3 !important; }
.ws-drawer__qbtn:disabled { opacity: .3; cursor: not-allowed; }
.ws-drawer__qnum { min-width: 26px; text-align: center; font-weight: 600; font-size: .95rem; }
.ws-drawer__x { color: #6b7280; font-size: .9rem; }
.ws-drawer__line { margin-left: auto; font-weight: 700; color: #111; font-size: 1rem; }
.ws-drawer__remove { position: absolute; top: 12px; right: -4px; flex: 0 0 auto; width: 32px; min-width: 32px !important; height: 32px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #6b7280 !important; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ws-drawer__remove:hover { background: #f1f1f3 !important; color: #111111 !important; }

.ws-drawer__foot { padding: 18px 28px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid #ececef; background: #fff; }
.ws-drawer__totals { margin: 0 0 16px; }
.ws-drawer__totals > div { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: .95rem; color: #4b5563; }
.ws-drawer__totals dt, .ws-drawer__totals dd { margin: 0; }
.ws-drawer__totals dd { color: #111; font-weight: 600; }
.ws-drawer__totals .ws-drawer__total { margin-top: 8px; padding-top: 12px; border-top: 1px solid #ececef; font-size: 1.2rem; color: #111; font-weight: 700; }
.ws-drawer__totals .ws-drawer__total dd { font-weight: 700; }
.ws-drawer__btn { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0 0 10px; padding: 0 24px; border: 0; border-radius: 999px; background: #eeeef0; color: #111 !important; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; transition: background .2s ease, color .2s ease, transform .15s ease; }
.ws-drawer__btn:hover { background: #e2e2e6; }
.ws-drawer__btn:active { transform: scale(.985); }
.ws-drawer__btn--dark { background: #111; color: #fff !important; margin-bottom: 0; }
.ws-drawer__btn--dark:hover { background: #111111; }
.single_add_to_cart_button.loading { opacity: .6; pointer-events: none; }

/* Placeholder while the cart loads */
.ws-skel__box { display: block; border-radius: 8px; background: linear-gradient(90deg, #f1f1f3 25%, #e6e6ea 37%, #f1f1f3 63%); background-size: 400% 100%; animation: ws-shimmer 1.3s ease infinite; }
.ws-skel__thumb { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 12px; }
.ws-skel__line { height: 14px; width: 90%; margin: 4px 0; }
.ws-skel__line--short { width: 55%; }
.ws-skel__pill { width: 120px; height: 26px; margin-top: 6px; }
.ws-skel__btn { height: 52px; border-radius: 999px; margin: 10px 0 0; }
.ws-drawer__foot.ws-skel .ws-skel__line { margin-bottom: 10px; }
@keyframes ws-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 600px) {
  .ws-drawer__panel { width: 100vw; }
  .ws-drawer__close { top: 14px; right: 14px; }
  .ws-drawer__head { padding: 22px 64px 12px 24px; }
  .ws-drawer__title { font-size: 1.35rem; }
  .ws-drawer__items { padding: 4px 24px; }
  .ws-drawer__foot { padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-drawer, .ws-drawer__panel, .ws-drawer__overlay, .ws-drawer__body, .ws-drawer__item { transition: none !important; }
  .ws-drawer__body.is-in > *, .ws-skel__box { animation: none !important; }
}
.ws-drawer .ws-drawer__close { width: 40px !important; height: 40px !important; min-width: 40px !important; box-sizing: border-box; }
@media (max-width: 600px) { .ws-drawer .ws-drawer__close { width: 40px !important; height: 40px !important; } }

/* Smaller text, product names on one line */
.ws-drawer__name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem !important; font-weight: 600 !important; line-height: 1.35 !important; }
.ws-drawer__meta { padding: 3px 9px !important; font-size: .72rem !important; letter-spacing: .01em; }
.ws-drawer__info { min-width: 0; }
.ws-drawer__x { font-size: .8rem !important; }
.ws-drawer__line { font-size: .95rem !important; font-weight: 700; }
.ws-drawer__qty { height: 34px !important; }
.ws-drawer__qnum, .ws-drawer__qbtn { font-size: .9rem; }
.ws-drawer__totals > div { font-size: .88rem !important; }
.ws-drawer__totals .ws-drawer__total { font-size: 1.05rem !important; }
.ws-drawer__btn { font-size: .85rem !important; min-height: 46px !important; }

/* Discount code */
.ws-drawer__coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.ws-drawer__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: #f2f2f2; color: #111111; font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
html body .ws-drawer__unc { width: 20px; height: 20px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(20, 80, 127, .14) !important; color: #111111 !important; font-size: 14px; line-height: 1; cursor: pointer; }
html body .ws-drawer__ctoggle { padding: 0 !important; border: 0 !important; background: transparent !important; color: #111111 !important; font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ws-drawer__cform { display: flex; flex: 1 0 100%; gap: 8px; }
.ws-drawer__cform[hidden] { display: none; }
.ws-drawer__cform input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid #d6d8e0; border-radius: 999px; background: #fff; font-size: .88rem; text-transform: uppercase; }
.ws-drawer__cform input::placeholder { text-transform: none; }
.ws-drawer__cform input:focus { outline: 0; border-color: #111111; box-shadow: 0 0 0 3px rgba(0,0,0, .16); }
html body .ws-drawer__cform button { height: 42px; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important; background: #111111 !important; color: #fff !important; font-size: .85rem; font-weight: 700; cursor: pointer; }

/* ===== "Added to your cart" pop-up ===== */
html.ws-pop-lock, html.ws-pop-lock body { overflow: hidden !important; }
html.ws-pop-lock { padding-right: var(--ws-sbw, 0); }
.ws-pop { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .26s ease; }
.ws-pop.is-in { opacity: 1; }
.ws-pop__back { position: absolute; inset: 0; background: rgba(10, 14, 26, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ws-pop__box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px 26px 24px; border-radius: 24px; background: #fff; color: #111; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.22, .8, .3, 1); }
.ws-pop.is-in .ws-pop__box { transform: none; }
html body .ws-pop__x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #f2f2f2 !important; color: #111 !important; cursor: pointer; min-height: 0; }
html body .ws-pop__x:hover, html body .ws-pop__x:active { background: #e6e6e6 !important; color: #111 !important; }
.ws-pop__ok { display: flex; align-items: center; gap: 12px; margin: 0 40px 20px 0; }
.ws-pop__tick { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #e7f6ec; color: #16a34a; }
.ws-pop__title { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: #111; }
.ws-pop__item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #f6f6f6; }
.ws-pop__img { flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 12px; background: #fff; }
.ws-pop__img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.ws-pop__info { display: grid; gap: 3px; min-width: 0; }
.ws-pop__info strong { font-size: 1rem; line-height: 1.3; color: #111; }
.ws-pop__info span { font-size: .9rem; color: #6b6b6b; }
.ws-pop__info .ws-pop__price { color: #111; font-weight: 600; }
.ws-pop__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 2px 18px; font-size: 1rem; color: #444; }
.ws-pop__sum em { font-style: normal; color: #8a8a8a; font-size: .9rem; }
.ws-pop__sum strong { font-size: 1.15rem; color: #111; }
html body .ws-pop__btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin: 0 0 10px; padding: 0 20px; border: 1.5px solid #111 !important; border-radius: 999px !important; background: #fff !important; color: #111 !important; font-size: 1rem; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: background .2s, color .2s, transform .15s; min-height: 0; }
html body .ws-pop__btn--dark { background: #111 !important; color: #fff !important; }
html body .ws-pop__btn:hover { background: #f1f1f1 !important; color: #111 !important; }
html body .ws-pop__btn--dark:hover { background: #2b2b2b !important; color: #fff !important; }
html body .ws-pop__btn:active { transform: scale(.98); }
html body .ws-pop__more { display: block; width: 100%; margin: 6px 0 0; padding: 10px !important; border: 0 !important; background: transparent !important; color: #555 !important; font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; }
html body .ws-pop__more:hover { color: #111 !important; background: transparent !important; }
.ws-pop__err { margin: 0 40px 18px 0; } .ws-pop__err strong { display: block; margin: 0 0 8px; font-size: 1.15rem; } .ws-pop__err p { margin: 0 0 6px; color: #b32d2e; }
@media (max-width: 560px) { .ws-pop { align-items: end; padding: 0; } .ws-pop__box { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .ws-pop, .ws-pop__box { transition: none; } }

/* quantity: the same dark pill with round - / + buttons as on the product page */
html body .ws-drawer .ws-drawer__qty { display: inline-flex; align-items: center; gap: 2px; height: 44px !important; padding: 4px; border: 1px solid #2a2a2f !important; border-radius: 999px !important; background: #09090b !important; overflow: visible; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
html body .ws-drawer .ws-drawer__qbtn { position: relative; flex: 0 0 34px !important; width: 34px !important; min-width: 34px !important; height: 34px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #2a2a2e !important; color: #b8b8c0 !important; font-size: 0 !important; line-height: 0; box-shadow: none !important; transition: background .2s ease, transform .15s ease, color .2s; }
html body .ws-drawer .ws-drawer__qbtn::before, html body .ws-drawer .ws-drawer__qbtn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 2px; background: currentColor; }
html body .ws-drawer .ws-drawer__qbtn[data-act="minus"]::after { display: none; }
html body .ws-drawer .ws-drawer__qbtn[data-act="plus"]::after { transform: rotate(90deg); }
html body .ws-drawer .ws-drawer__qbtn:hover:not(:disabled) { background: #36363c !important; color: #fff !important; }
html body .ws-drawer .ws-drawer__qbtn:active:not(:disabled) { transform: scale(.92); }
html body .ws-drawer .ws-drawer__qbtn:disabled { opacity: .35; }
html body .ws-drawer .ws-drawer__qnum { min-width: 32px; color: #fff; text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* light version of the pill */
html body .ws-drawer .ws-drawer__qty { border: 1px solid #dcdce1 !important; background: #fff !important; box-shadow: none; }
html body .ws-drawer .ws-drawer__qbtn { background: #f1f1f4 !important; color: #111 !important; }
html body .ws-drawer .ws-drawer__qbtn:hover:not(:disabled) { background: #e6e6ea !important; color: #111 !important; }
html body .ws-drawer .ws-drawer__qnum { color: #111; font-family: inherit; font-weight: 700; }
