/* Quantity and product identity are shared by the drawer and the classic cart. */
.st-cart-identity {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 9px;
    color: #526779;
    font-size: 11px;
    line-height: 1.45;
}
.st-cart-identity:empty { display: none; }
.st-cart-brand { color: #3e5466; font-weight: 730; }
.st-cart-parameter { margin: 5px 0 0; color: #526779; font-size: 11px; line-height: 1.45; }
.st-cart-parameter strong { color: #31495f; font-weight: 650; }

.st-qty {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border-radius: 11px;
    vertical-align: middle;
}
.st-qty:has([data-st-qty-step]:not([hidden])) { background: #f5f7f8; box-shadow: inset 0 0 0 1px #dce5eb; }
.st-qty [data-st-qty-step] {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #233c52;
    font-family: inherit;
    font-size: 19px;
    font-weight: 520;
    line-height: 1;
    cursor: pointer;
}
.st-qty [data-st-qty-step][hidden] { display: none; }
.st-qty [data-st-qty-step][aria-disabled="true"] { cursor: default; color: #85939f; }
.st-qty [data-st-qty-step]:not([aria-disabled="true"]):hover { background: #e6edf2; }
.st-qty :is(input, button):focus-visible { outline: 2px solid #8d621e; outline-offset: -2px; }

.st-drawer .st-qty .quantity, .st-purchase-cart .woocommerce .st-qty .quantity { float: none; margin: 0; min-width: 0; }
.st-drawer .quantity input.qty,
.st-purchase-cart .woocommerce .st-cart-table .quantity input.qty {
    width: 69px;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 4px;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background: #fff;
    color: #1a2a3b;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    text-align: center;
}
.st-drawer .st-qty[data-st-qty-ready] .quantity input.qty,
.st-purchase-cart .woocommerce .st-cart-table .st-qty[data-st-qty-ready] .quantity input.qty {
    width: 38px;
    border: 0;
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
}
.st-qty[data-st-qty-ready] input.qty::-webkit-inner-spin-button,
.st-qty[data-st-qty-ready] input.qty::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.st-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 486px);
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    background: #f6f8f9;
    color: var(--st-ink, #1a2a3b);
    box-shadow: -20px 0 65px rgb(15 30 45 / .21);
    overflow: hidden;
    font: inherit;
    overscroll-behavior: contain;
}
.st-drawer::backdrop { background: rgb(15 30 45 / .49); }

.st-drawer__panel { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }

.st-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: none;
    padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 27px) 13px;
    border-bottom: 1px solid #e4e9ed;
    background: #fff;
}
.st-drawer__head h2 {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: clamp(23px, 5vw, 29px);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.15;
    margin: 0;
}
.st-drawer__head h2 span {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    min-height: 27px;
    padding: 2px 6px;
    border-radius: 50px;
    background: #edf1f3;
    color: #344a5d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: normal;
}
.st-drawer__head [hidden] { display: none; }

.st-drawer__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e9ee;
    border-radius: 50%;
    background: #f5f7f8;
    color: #253e53;
    font-family: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.st-drawer__close:hover { background: #e9eef1; }

.st-drawer__status {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin: 12px clamp(16px, 4vw, 27px) 0;
    padding: 8px 11px;
    border-radius: 10px;
    background: #eaf0f4;
    color: #2c4559;
    flex: none;
    max-height: 16vh;
    overflow: auto;
}
.st-drawer__status:empty { display: none; }
.st-drawer__status--success { background: #e8f2ee; color: #255141; }
.st-drawer__status--success::before { content: "✓"; display: inline-block; margin-right: 8px; }
.st-drawer__status--error { background: #f8ebe6; color: #77362a; }

.st-drawer__content {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.st-drawer__content[aria-busy="true"] { cursor: progress; }
.st-drawer__content[aria-busy="true"] :is(.st-drawer__items, .st-drawer__value) { opacity: .65; }
.st-drawer__loading { margin: 20px 27px; color: #4d6477; font-size: 14px; }

.st-drawer__form {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 13px clamp(16px, 4vw, 27px) 18px;
    overflow: auto;
    overscroll-behavior: contain;
}
.st-drawer__items { display: grid; gap: 11px; }

.st-drawer__item {
    display: grid;
    grid-template-columns: clamp(70px, 20vw, 96px) minmax(0, 1fr);
    grid-template-areas: "image detail" "controls controls";
    gap: 9px 12px;
    align-items: start;
    padding: 12px 13px 8px;
    border: 1px solid #e0e6ea;
    border-radius: 15px;
    background: #fff;
}
.st-drawer__image {
    grid-area: image;
    display: grid;
    place-items: center;
    align-self: stretch;
    padding: 6px;
    min-height: 90px;
    border-radius: 10px;
    background: #edf2f5;
}
.st-drawer__image img {
    display: block;
    width: 100%;
    height: 86px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.st-drawer__detail { grid-area: detail; min-width: 0; overflow-wrap: anywhere; }
.st-drawer__detail h3 { margin: 4px 0 3px; font-size: 14px; font-weight: 740; line-height: 1.38; letter-spacing: -.02em; }
.st-drawer__detail h3 a { color: inherit; text-decoration: none; }
.st-drawer__detail h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-drawer .variation { font-size: 11px; margin: 4px 0; }
.st-drawer .variation dt { float: left; margin-right: 5px; }
.st-drawer .variation dd, .st-drawer .variation dd p { margin: 0; }
.st-drawer__unit { margin: 5px 0 0; color: #4c6172; font-size: 11px; line-height: 1.35; }
.st-drawer__unit .amount { font-weight: 650; }

.st-drawer__quantity { grid-area: controls; display: flex; align-items: center; gap: 5px 9px; flex-wrap: wrap; }
.st-drawer__quantity > strong { margin-left: auto; font-size: 16px; font-weight: 740; line-height: 1.3; letter-spacing: -.034em; text-align: right; }
.st-drawer__remove { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: #4c6172; font-size: 12px; font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.st-drawer__remove:hover { color: #91342d; }
.st-drawer__update { display: block; min-height: 44px; margin: 12px 0 0; padding: 8px 13px; border: 1px solid #d6dfe6; border-radius: 10px; background: #fff; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.st-drawer__content:not([data-st-drawer-retry]) .st-drawer__update { display: none; }

.st-drawer__summary {
    position: relative;
    z-index: 1;
    flex: none;
    padding: 15px clamp(16px, 4vw, 27px) max(9px, env(safe-area-inset-bottom));
    border-top: 1px solid #e0e6ea;
    background: #fff;
    box-shadow: 0 -7px 24px rgb(25 44 61 / .055);
}
.st-drawer__value { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.st-drawer__value > span { color: #486072; font-size: 13px; font-weight: 650; }
.st-drawer__amount {
    color: #1a2a3b;
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 770;
    letter-spacing: -.06em;
    line-height: 1.12;
}
.st-drawer__amount .tax_label { font-size: 11px; font-weight: 520; letter-spacing: normal; }
.st-drawer__fine { margin: 7px 0 11px; color: #526779; font-size: 12px; line-height: 1.45; }

.st-drawer .st-purchase-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 11px 16px;
    border: 1px solid #1a2a3b;
    border-radius: 11px;
    background: #1a2a3b;
    color: #fff;
    font-size: 14px;
    font-weight: 710;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
}
.st-drawer .st-purchase-button:hover { background: #2c4054; }
.st-drawer__actions, .st-drawer__fallback { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1px 10px; }
.st-drawer__actions a, .st-drawer__actions button, .st-drawer__fallback a, .st-drawer__fallback button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #304b62;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.woocommerce-cart .st-drawer__actions a,
.woocommerce-cart .st-drawer__fallback a { display: none; }
.st-drawer__fallback { flex: none; padding: 7px 16px max(7px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e0e6ea; }
.st-drawer__fallback[hidden] { display: none; }

.st-drawer__empty { margin: auto; padding: 25px 18px; text-align: center; }
.st-cart-empty-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto;
    border-radius: 18px;
    background: #fff2d6;
    color: #68501e;
}
.st-cart-empty-icon svg { width: 30px; height: 30px; }
.st-drawer__empty h3 { margin: 14px 0 5px; font-size: 23px; line-height: 1.2; letter-spacing: -.047em; }
.st-drawer__empty p { margin: 0 0 15px; color: #526779; font-size: 13px; }
.st-drawer__empty .st-purchase-button { display: inline-flex; }

.st-theme [data-st-cart-open] { position: relative; }
.st-theme [data-st-cart-count] {
    position: absolute !important;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 1px 4px;
    border-radius: 8px;
    background: #e7aa30;
    color: #1a2a3b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    clip-path: none !important;
    width: auto !important;
    overflow: visible !important;
    white-space: nowrap;
}
.st-theme [data-st-cart-count][hidden] { display: none; }
@media (max-width: 345px) {
    .st-drawer__item { padding-inline: 10px; gap: 7px 9px; }
    .st-drawer__form { padding-inline: 12px; }
    .st-drawer__quantity { column-gap: 4px; }
}
@media (max-height: 545px) {
    .st-drawer__content { overflow: auto; }
    .st-drawer__form { overflow: visible; flex: 1 0 auto; }
    .st-drawer__head { padding-block: 7px; }
    .st-drawer__summary { padding-top: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
    .st-drawer[open] { animation: st-drawer-in .19s ease-out; }
    @keyframes st-drawer-in {
        from { transform: translateX(22px); opacity: .65; }
        to { transform: translateX(0); opacity: 1; }
    }
}
