/* Drawer v2. Scoped presentation only; native WooCommerce owns the cart. */
#sx-cart-drawer:not([open]) { display: none; }
/* Hide only successful add notices replaced by the working drawer. Never errors. */
.woocommerce-message.sx-cart-notice-replaced,
.wc-block-components-notice-banner.is-success.sx-cart-notice-replaced { display:none!important; }
#sx-cart-drawer { position: fixed; inset: 0 0 0 auto; box-sizing: border-box; width: min(460px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 0; background: #fff; color: #282329; box-shadow: -12px 0 40px #0002; text-align: left; font-family: inherit; }
#sx-cart-drawer[open] { display: block; animation: sx-cart-enter .22s ease-out; }
#sx-cart-drawer::backdrop { background: rgb(25 15 23 / 45%); }
html.sx-cart-drawer-open { overflow: hidden; }
body.sx-cart-drawer-ready #masthead .header-cart .widget_shopping_cart { display: none !important; }
#sx-cart-drawer *, #sx-cart-drawer *::before, #sx-cart-drawer *::after { box-sizing: border-box; }
#sx-cart-drawer [hidden] { display: none !important; }
#sx-cart-drawer .sx-cart-drawer-shell { height: 100%; display: flex; flex-direction: column; }
#sx-cart-drawer .sx-cart-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e9e3e6; flex-shrink: 0; }
#sx-cart-drawer h2 { margin: 0; padding: 0; font-size: 22px; line-height: 1.3; font-weight: 600; text-transform: none; color: inherit; }
#sx-cart-drawer .sx-cart-drawer-close { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #e9e3e6; border-radius: 50%; background: #fff; color: #282329; font-size: 29px; font-weight: 400; line-height: 1; cursor: pointer; }
#sx-cart-drawer .sx-cart-drawer-status { margin: 0; padding: 14px 22px; font-size: 14px; line-height: 1.5; }
#sx-cart-drawer .sx-cart-drawer-status:empty { display: none; }
#sx-cart-drawer .sx-cart-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px; }
#sx-cart-drawer .sx-cart-drawer-content { min-height: 100%; display: flex; flex-direction: column; }
#sx-cart-drawer ul.cart_list { display: block; flex: 1; margin: 0; padding: 0; list-style: none; }
#sx-cart-drawer ul.cart_list li { position: relative; display: flow-root; float: none; width: 100%; min-height: 136px; margin: 0; padding: 22px 40px 22px 100px; border-bottom: 1px solid #e9e3e6; font-size: 14px; line-height: 1.55; list-style: none; }
#sx-cart-drawer ul.cart_list li a:not(.remove) { display: block; margin: 0 0 8px; color: #282329; font-size: 14px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
#sx-cart-drawer ul.cart_list li img { position: absolute; left: 0; top: 22px; float: none; width: 82px; height: 100px; margin: 0; padding: 6px; border: 1px solid #f0ecee; border-radius: 4px; background: #faf8f9; object-fit: contain; }
#sx-cart-drawer ul.cart_list li a.remove { position: absolute; inset: 18px 0 auto auto; display: grid; place-items: center; float: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid #e9e3e6; border-radius: 50%; background: #fff; color: #595159 !important; font-size: 24px; font-weight: 400; line-height: 1; text-decoration: none; }
#sx-cart-drawer ul.cart_list li a.remove:hover { background: #faf0f5; border-color: #ba065f; }
#sx-cart-drawer ul.cart_list li .quantity { display: block; float: none; width: auto; margin: 8px 0 0; color: #595159; font-size: 14px; }
#sx-cart-drawer ul.cart_list li dl { margin: 6px 0; padding: 0; border: 0; font-size: 13px; }
#sx-cart-drawer ul.cart_list li dt, #sx-cart-drawer ul.cart_list li dd { margin: 0 5px 0 0; padding: 0; }
#sx-cart-drawer ul.cart_list li dd p { margin: 0; }
#sx-cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 22px 0 16px; border: 0; color: #282329; font-size: 18px; line-height: 1.5; }
#sx-cart-drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
#sx-cart-drawer .woocommerce-mini-cart__buttons a { display: block; float: none; width: 100%; min-height: 48px; margin: 0; padding: 12px; border: 1px solid #ba065f; border-radius: 4px; background: #fff; color: #ba065f; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; text-transform: none; white-space: normal; text-decoration: none; }
#sx-cart-drawer .woocommerce-mini-cart__buttons a.checkout { order: -1; background: #ba065f; color: #fff; }
#sx-cart-drawer .woocommerce-mini-cart__empty-message { margin: 0; padding: 32px 0; font-size: 16px; line-height: 1.6; }
#sx-cart-drawer .sx-cart-drawer-note { margin: 14px 0 20px; color: #6a6269; font-size: 12px; line-height: 1.5; }
#sx-cart-drawer .sx-cart-drawer-foot { flex-shrink: 0; margin-top: auto; padding: 12px 22px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #e9e3e6; text-align: center; }
#sx-cart-drawer .sx-cart-drawer-fallback { display: block; padding: 12px 0; font-size: 15px; color: #ba065f; text-decoration: underline; }
#sx-cart-drawer .sx-cart-drawer-continue { min-height: 44px; margin: 0; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; color: #595159; font-size: 14px; text-decoration: underline; text-transform: none; cursor: pointer; }
#sx-cart-drawer a:focus-visible, #sx-cart-drawer button:focus-visible { outline: 2px solid #ba065f; outline-offset: 3px; }
@keyframes sx-cart-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { #sx-cart-drawer[open] { animation: none; } }
@media (max-width: 380px) {
    #sx-cart-drawer .sx-cart-drawer-head { padding: 12px 16px; }
    #sx-cart-drawer .sx-cart-drawer-body { padding: 0 16px; }
    #sx-cart-drawer ul.cart_list li { padding-left: 78px; padding-right: 38px; }
    #sx-cart-drawer ul.cart_list li img { width: 66px; height: 84px; }
}

/* v2: a scrollable shopping list and an always accessible checkout. */
#sx-cart-drawer { width: min(480px, 100%); color: #282329; }
#sx-cart-drawer .sx-cart-drawer-head { padding: 14px 22px; }
#sx-cart-drawer h2 { font-size: 24px; letter-spacing: -.5px; }
#sx-cart-drawer .sx-drawer-count { color: #716971; font-size: 17px; font-weight: 400; }
#sx-cart-drawer .sx-cart-drawer-body { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
#sx-cart-drawer .sx-cart-drawer-content { height: 100%; min-height: 0; flex: 1; overflow: hidden; }
#sx-cart-drawer .sx-drawer-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px; }
#sx-cart-drawer .sx-drawer-shipping { padding: 17px 0; border-bottom: 1px solid #eee8eb; }
#sx-cart-drawer .sx-drawer-shipping p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
#sx-cart-drawer .sx-drawer-shipping progress { display: block; width: 100%; height: 6px; margin: 0 0 9px; border: 0; border-radius: 8px; overflow: hidden; background: #f2e6ec; color: #ba065f; accent-color: #ba065f; }
#sx-cart-drawer progress::-webkit-progress-bar { background: #f2e6ec; }
#sx-cart-drawer progress::-webkit-progress-value { background: #ba065f; border-radius: 8px; }
#sx-cart-drawer progress::-moz-progress-bar { background: #ba065f; border-radius: 8px; }
#sx-cart-drawer .sx-drawer-shipping small { display: block; color: #716971; font-size: 11px; line-height: 1.5; }
#sx-cart-drawer ul.cart_list { flex: none; }
#sx-cart-drawer ul.cart_list li { min-height: 142px; padding: 19px 30px 19px 97px; }
#sx-cart-drawer ul.cart_list li img { top: 19px; width: 80px; height: 100px; background: #faf8f9; border: 0; }
#sx-cart-drawer ul.cart_list li a.remove { width: 28px; height: 34px; border: 0; border-radius: 4px; }
#sx-cart-drawer ul.cart_list li a.remove:hover { color: #ba065f !important; }
#sx-cart-drawer ul.cart_list li a:not(.remove) { font-size: 14px; line-height: 1.5; font-weight: 600; }
#sx-cart-drawer .sx-drawer-unit-price { display: block; margin: 6px 0; font-size: 15px; font-weight: 600; }
#sx-cart-drawer .sx-drawer-unit-price small { font-size: 11px; font-weight: 400; color: #716971; }
#sx-cart-drawer .sx-drawer-quantity-form { display: flex; align-items: center; gap: 0; margin: 10px 0 0; padding: 0; flex-wrap: wrap; }
#sx-cart-drawer ul.cart_list li .sx-drawer-quantity-form .quantity { display: block; margin: 0; width: 40px; }
#sx-cart-drawer .sx-drawer-quantity-form input.qty { box-sizing: border-box; width: 40px; height: 38px; padding: 0 2px; margin: 0; border: 1px solid #ded7db; border-radius: 0; background: #fff; color: #282329; text-align: center; font-size: 14px; appearance: textfield; -moz-appearance: textfield; }
#sx-cart-drawer input.qty::-webkit-inner-spin-button, #sx-cart-drawer input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#sx-cart-drawer .sx-qty-step { width: 36px; height: 38px; padding: 0; margin: 0; border: 1px solid #ded7db; background: #fff; color: #282329; font-size: 20px; border-radius: 0 5px 5px 0; cursor: pointer; line-height: 1; }
#sx-cart-drawer .sx-qty-step[data-step="-1"] { border-radius: 5px 0 0 5px; border-right: 0; }
#sx-cart-drawer .sx-qty-step[data-step="1"] { border-left: 0; }
#sx-cart-drawer .sx-qty-step:hover { color: #ba065f; background: #fff5f9; }
#sx-cart-drawer .sx-qty-step:disabled { color: #a7a0a4; cursor: default; background: #faf8f9; }
#sx-cart-drawer .sx-qty-submit { border: 0; background: transparent; padding: 8px; margin: 0; color: #5a5158; font-size: 11px; text-transform: none; text-decoration: underline; cursor: pointer; }
#sx-cart-drawer .woocommerce-mini-cart__total, #sx-cart-drawer .woocommerce-mini-cart__buttons { display: none; }
#sx-cart-drawer .sx-drawer-coupon { border-bottom: 1px solid #eee8eb; margin: 0; }
#sx-cart-drawer .sx-drawer-coupon summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 12px 0; list-style: none; font-size: 14px; cursor: pointer; }
#sx-cart-drawer .sx-drawer-coupon summary::-webkit-details-marker { display: none; }
#sx-cart-drawer .sx-drawer-coupon summary span { font-size: 22px; font-weight: 400; }
#sx-cart-drawer .sx-drawer-coupon[open] summary span { transform: rotate(45deg); }
#sx-cart-drawer .sx-drawer-coupon-form { display: flex; gap: 8px; padding: 0 0 15px; margin: 0; }
#sx-cart-drawer .sx-drawer-coupon-form input[type="text"] { width: 0; min-width: 0; flex: 1; height: 44px; border: 1px solid #ded7db; border-radius: 5px; padding: 10px; font-size: 16px; background: #fff; color: #282329; }
#sx-cart-drawer .sx-drawer-coupon-form button { padding: 10px 14px; margin: 0; min-height: 44px; background: #282329; color: #fff; border: 0; border-radius: 5px; font-size: 13px; text-transform: none; cursor: pointer; }
#sx-cart-drawer .sx-drawer-discount { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; font-size: 12px; overflow-wrap: anywhere; }
#sx-cart-drawer .sx-drawer-discount a { color: #ba065f; text-decoration: underline; }
#sx-cart-drawer .sx-drawer-summary { flex: none; padding: 16px 22px 8px; border-top: 1px solid #eee8eb; background: #fff; box-shadow: 0 -8px 20px #28232905; }
#sx-cart-drawer .sx-drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 15px; line-height: 1.4; }
#sx-cart-drawer .sx-drawer-subtotal strong { font-size: 23px; white-space: nowrap; }
#sx-cart-drawer .sx-drawer-delivery-note { margin: 5px 0 13px; color: #716971; font-size: 11px; line-height: 1.5; }
#sx-cart-drawer a.sx-drawer-checkout { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 12px; border: 1px solid #ba065f; border-radius: 7px; background: #ba065f; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; }
#sx-cart-drawer a.sx-drawer-checkout:hover { background: #94064c; border-color: #94064c; }
#sx-cart-drawer .sx-drawer-cart-link { display: block; padding: 10px 0 0; color: #716971; text-align: center; font-size: 12px; text-decoration: underline; }
#sx-cart-drawer .sx-cart-drawer-foot { margin-top: 0; padding: 2px 22px max(6px, env(safe-area-inset-bottom)); border-top: 0; }
#sx-cart-drawer .sx-cart-drawer-continue { font-size: 12px; min-height: 36px; }
#sx-cart-drawer .sx-cart-drawer-fallback { color: #ba065f; }
#sx-cart-drawer .sx-drawer-empty { padding: 30px 22px; }
#sx-cart-drawer .sx-drawer-empty p { line-height: 1.6; font-size: 14px; color: #716971; }
#sx-cart-drawer .sx-drawer-empty .woocommerce-mini-cart__empty-message { padding: 0 0 8px; font-size: 20px; color: #282329; }
#sx-cart-drawer a:focus-visible, #sx-cart-drawer button:focus-visible, #sx-cart-drawer input:focus-visible, #sx-cart-drawer summary:focus-visible { outline: 2px solid #ba065f; outline-offset: 3px; }
/* The working drawer opens after AJAX add-to-cart: suppress the redundant
   link before its insertion can change card height. Without drawer JS,
   the native WooCommerce link remains visible and usable. */
body.sx-cart-drawer-ready.woocommerce ul.products li.product a.added_to_cart,
body.sx-cart-drawer-ready ul.products li.product a.added_to_cart { display: none !important; }
@media (max-width: 380px) {
    #sx-cart-drawer .sx-cart-drawer-head, #sx-cart-drawer .sx-drawer-summary { padding-left: 16px; padding-right: 16px; }
    #sx-cart-drawer .sx-drawer-scroll { padding: 0 16px; }
    #sx-cart-drawer ul.cart_list li { padding-left: 80px; }
    #sx-cart-drawer ul.cart_list li img { width: 66px; height: 90px; }
}
@media (max-height: 550px) {
    #sx-cart-drawer .sx-cart-drawer-shell { overflow-y: auto; }
    #sx-cart-drawer .sx-cart-drawer-body, #sx-cart-drawer .sx-cart-drawer-content, #sx-cart-drawer .sx-drawer-scroll { flex: none; height: auto; overflow: visible; }
}

/* Updating quantities must not collapse the product list or move the checkout. */
#sx-cart-drawer .sx-cart-drawer-status.sx-drawer-status-quiet { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#sx-cart-drawer .sx-cart-drawer-head { position: relative; }
#sx-cart-drawer.sx-drawer-updating .sx-cart-drawer-head::after { content: ''; position: absolute; right: 82px; top: calc(50% - 8px); width: 16px; height: 16px; border: 2px solid #eadde4; border-top-color: #ba065f; border-radius: 50%; animation: sx-drawer-busy .7s linear infinite; }
#sx-cart-drawer .sx-cart-drawer-body[aria-busy="true"] { cursor: progress; pointer-events: none; }
#sx-cart-drawer .sx-cart-drawer-body[aria-busy="true"] .sx-drawer-checkout { background: #756b71; border-color: #756b71; }
#sx-cart-drawer h2 { padding-right: 24px; }
@keyframes sx-drawer-busy { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #sx-cart-drawer.sx-drawer-updating .sx-cart-drawer-head::after { animation: none; } }

/* Product-grid buttons: stronger label, Sexity inverse state after success. */
body.sx-cart-drawer-ready #primary ul.products li.product > a.button,
body.sx-cart-drawer-ready.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { position: relative; font-size: 18px !important; font-weight: 700; line-height: 1.3; min-height: 50px; padding: 12px 8px; border: 1px solid #ba065f; background: #ba065f; color: #fff; white-space: normal; }
body.sx-cart-drawer-ready #primary ul.products li.product > a.button::before { content: none; display: none; }
body.sx-cart-drawer-ready #primary ul.products li.product > a.button:hover,
body.sx-cart-drawer-ready #primary ul.products li.product > a.button:focus-visible,
body.sx-cart-drawer-ready #primary ul.products li.product > a.button.added:not(.loading),
body.sx-cart-drawer-ready.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button:hover,
body.sx-cart-drawer-ready.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button:focus-visible,
body.sx-cart-drawer-ready.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button.added:not(.loading) { border-color: #ba065f; background: #fff; color: #ba065f; }
@media (max-width: 600px) {
    body.sx-cart-drawer-ready #primary ul.products li.product > a.button,
    body.sx-cart-drawer-ready.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { font-size: 14px !important; padding: 10px 5px; }
}
/* Secondary drawer actions: readable Sexity styling on desktop and mobile. */
#sx-cart-drawer .sx-drawer-delivery-note { color:#484048; font-size:13px; line-height:1.5; }
#sx-cart-drawer a.sx-drawer-cart-link { display:block; width:100%; margin:12px 0 0; padding:11px 14px; min-height:44px; border:1px solid #ead2de; border-radius:7px; background:#fff5fa; color:#ba065f; font-family:inherit; line-height:1.5; font-size:14px; font-weight:600; text-decoration:none; }
#sx-cart-drawer button.sx-cart-drawer-continue { min-height:44px; padding:10px 14px; color:#ba065f; font-size:14px; line-height:1.5; font-weight:600; text-decoration:none; }
#sx-cart-drawer a.sx-drawer-cart-link:hover,
#sx-cart-drawer button.sx-cart-drawer-continue:hover { background:#fceaf3; color:#93054b; }
#sx-cart-drawer .sx-drawer-unit-price small,
#sx-cart-drawer .sx-drawer-shipping small { color:#484048; }
