/* GLite Header Quick Cart — desktop step 1 / minimal UI */
.glite-header-cart-shell {
    --glite-cart-accent: #FCC111;
    --glite-cart-accent-hover: #efb600;
    --glite-cart-accent-soft: #fff9e8;
    --glite-cart-text: #252a31;
    --glite-cart-muted: #8a919a;
    --glite-cart-border: #e9ecef;
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    direction: rtl !important;
    font-family: inherit !important;
    line-height: normal !important;
}
.glite-header-cart-shell,
.glite-header-cart-shell * { box-sizing: border-box; }

.glite-header-cart__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.glite-header-cart__trigger,
.glite-header-cart__trigger:link,
.glite-header-cart__trigger:visited {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid #e4e7ea !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #3b4148 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    transition: border-color .14s ease, background-color .14s ease !important;
}
.glite-header-cart__trigger:hover,
.glite-header-cart__trigger:focus-visible,
.glite-header-cart-shell.is-open .glite-header-cart__trigger {
    border-color: #e8d377 !important;
    background: var(--glite-cart-accent-soft) !important;
    color: #2d3238 !important;
    outline: 0 !important;
}
.glite-header-cart__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 23px !important;
    height: 23px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
}
.glite-header-cart__icon svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.85 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.glite-header-cart__count {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    z-index: 3 !important;
    min-width: 15px !important;
    height: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 3px !important;
    margin: 0 !important;
    border: 1.5px solid #fff !important;
    border-radius: 999px !important;
    background: var(--glite-cart-accent) !important;
    color: #252525 !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 12px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}
.glite-header-cart__count[hidden] { display: none !important; }

.glite-header-cart__panel {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 100000 !important;
    width: 500px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: var(--glite-cart-panel-max-height, min(520px, calc(100vh - 120px))) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e7eaed !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: var(--glite-cart-text) !important;
    box-shadow: 0 18px 44px rgba(26,31,38,.12) !important;
    text-align: right !important;
    line-height: normal !important;
}
.glite-header-cart__panel::before {
    content: "" !important;
    position: absolute !important;
    top: -6px !important;
    left: 16px !important;
    z-index: 2 !important;
    width: 11px !important;
    height: 11px !important;
    border-top: 1px solid #e7eaed !important;
    border-left: 1px solid #e7eaed !important;
    background: #fff !important;
    transform: rotate(45deg) !important;
}
.glite-header-cart__panel[hidden] { display: none !important; }

.glite-header-cart__head {
    position: relative !important;
    z-index: 1 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f2f4 !important;
    background: #fff !important;
}
.glite-header-cart__head strong {
    margin: 0 !important;
    color: #20252b !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}
.glite-header-cart__head span {
    margin: 0 !important;
    color: #8d949c !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.glite-header-cart__items {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 0 5px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    direction: ltr !important;
    overscroll-behavior-y: contain !important;
    overscroll-behavior-x: none !important;
    scrollbar-gutter: stable !important;
    scrollbar-width: thin !important;
    scrollbar-color: #dfe3e7 transparent !important;
    background: #fff !important;
}
.glite-header-cart__items::-webkit-scrollbar { width: 4px !important; }
.glite-header-cart__items::-webkit-scrollbar-track { background: transparent !important; }
.glite-header-cart__items::-webkit-scrollbar-thumb { background: #dfe3e7 !important; border-radius: 99px !important; }

.glite-header-cart__item {
    direction: rtl !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
    margin: 0 16px 0 12px !important;
    padding: 14px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #f1f2f4 !important;
    background: #fff !important;
}
.glite-header-cart__item:last-child { border-bottom: 0 !important; }
.glite-header-cart__thumb {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 5px !important;
    overflow: hidden !important;
    border: 1px solid #f0f2f4 !important;
    border-radius: 12px !important;
    background: #fafbfc !important;
    text-decoration: none !important;
}
.glite-header-cart__thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
}
.glite-header-cart__item-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.glite-header-cart__name,
.glite-header-cart__name:link,
.glite-header-cart__name:visited {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    color: #30353b !important;
    text-decoration: none !important;
    font-size: 12.25px !important;
    font-weight: 400 !important;
    line-height: 1.72 !important;
}
.glite-header-cart__name:hover { color: #15191d !important; }
.glite-header-cart__price {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #262b31 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}
.glite-header-cart__price .amount,
.glite-header-cart__price bdi { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }

.glite-header-cart__actions {
    direction: ltr !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}
.glite-header-cart__qty {
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e4e7ea !important;
    border-radius: 11px !important;
    background: #fff !important;
}
.glite-header-cart__qty-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease !important;
}
.glite-header-cart__qty-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #8d949c !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}
.glite-header-cart__qty-btn.is-increase { color: #9c7100 !important; }
.glite-header-cart__qty-btn:hover:not(:disabled) { background: #f7f8f9 !important; color: #555c64 !important; }
.glite-header-cart__qty-btn.is-increase:hover:not(:disabled) { background: var(--glite-cart-accent-soft) !important; color: #735400 !important; }
.glite-header-cart__qty-btn:disabled { color: #d1d5da !important; cursor: not-allowed !important; }
.glite-header-cart__qty-input {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    color: #31363d !important;
    text-align: center !important;
    direction: ltr !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 30px !important;
    -moz-appearance: textfield !important;
}
.glite-header-cart__qty-input::-webkit-outer-spin-button,
.glite-header-cart__qty-input::-webkit-inner-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
}
.glite-header-cart__qty-input:focus {
    background: #fafbfc !important;
    box-shadow: inset 0 0 0 1px #d9dde2 !important;
}
.glite-header-cart__qty-input[readonly] {
    cursor: default !important;
}
.glite-header-cart__qty.is-loading .glite-header-cart__qty-input {
    opacity: .55 !important;
}
.glite-header-cart__qty-btn.is-remove { color: #858c94 !important; }
.glite-header-cart__qty-btn.is-remove:hover:not(:disabled) { background: #f7f8f9 !important; color: #3f454c !important; }
.glite-header-cart__qty-btn.is-remove svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.glite-header-cart.is-busy .glite-header-cart__panel { opacity: 1 !important; }
.glite-header-cart__qty-btn.is-loading { color: transparent !important; pointer-events: none !important; }
.glite-header-cart__qty-btn.is-loading::after {
    content: "" !important;
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    border: 2px solid #cbd1d8 !important;
    border-top-color: #947000 !important;
    border-radius: 50% !important;
    animation: gliteHeaderCartSpin .65s linear infinite !important;
}
@keyframes gliteHeaderCartSpin { to { transform: rotate(360deg); } }

.glite-header-cart__footer {
    direction: rtl !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 13px 20px 15px !important;
    border: 0 !important;
    border-top: 1px solid #eceff1 !important;
    background: #fff !important;
}
.glite-header-cart__total {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: ltr !important;
    text-align: left !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}
.glite-header-cart__total span {
    color: #8a9199 !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}
.glite-header-cart__total strong {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    opacity: 1 !important;
    filter: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    direction: rtl !important;
    text-align: left !important;
}
.glite-header-cart__total strong .amount,
.glite-header-cart__total strong .woocommerce-Price-amount,
.glite-header-cart__total strong bdi,
.glite-header-cart__total strong .woocommerce-Price-currencySymbol {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}
.glite-header-cart__total strong .woocommerce-Price-currencySymbol {
    font-weight: 400 !important;
}
.glite-header-cart__checkout,
.glite-header-cart__checkout:link,
.glite-header-cart__checkout:visited {
    flex: 0 0 168px !important;
    width: 168px !important;
    min-width: 168px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid var(--glite-cart-accent) !important;
    border-radius: 11px !important;
    background: var(--glite-cart-accent) !important;
    color: #24221c !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    transition: background-color .14s ease, border-color .14s ease !important;
}
.glite-header-cart__checkout:hover {
    border-color: var(--glite-cart-accent-hover) !important;
    background: var(--glite-cart-accent-hover) !important;
    color: #211f1a !important;
}
.glite-header-cart__empty {
    min-height: 150px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 26px 18px !important;
    color: #8b929a !important;
    background: #fff !important;
}
.glite-header-cart__empty-icon { width: 28px !important; height: 28px !important; display: inline-flex !important; color: #9da4ac !important; }
.glite-header-cart__empty-icon svg { width: 100% !important; height: 100% !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.8 !important; }
.glite-header-cart__empty strong { color: #3a4047 !important; font-size: 12px !important; font-weight: 400 !important; }
.glite-header-cart__notice {
    margin: 8px 16px 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #f0d8da !important;
    border-radius: 9px !important;
    background: #fff8f8 !important;
    color: #a8434c !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

@media (max-width: 1180px) and (min-width: 1024px) {
    .glite-header-cart__panel { width: 460px !important; }
    .glite-header-cart__item { gap: 11px !important; margin-right: 13px !important; }
    .glite-header-cart__thumb { flex-basis: 58px !important; width: 58px !important; height: 58px !important; }
    .glite-header-cart__actions { gap: 5px !important; }
    .glite-header-cart__qty { height: 32px !important; min-height: 32px !important; }
    .glite-header-cart__qty-btn { width: 29px !important; min-width: 29px !important; height: 30px !important; }
    .glite-header-cart__remove { width: 32px !important; min-width: 32px !important; height: 32px !important; flex-basis: 32px !important; }
}

/* v0.8.63: mobile trigger matches the compact header action buttons. */
@media (max-width: 1023px) {
    .glite-header-cart__panel { display: none !important; }

    .glite-header-cart__trigger,
    .glite-header-cart__trigger:link,
    .glite-header-cart__trigger:visited {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        border-radius: 9px !important;
    }

    .glite-header-cart__icon,
    .glite-header-cart__icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .glite-header-cart__count {
        top: -3px !important;
        right: -3px !important;
        min-width: 14px !important;
        height: 14px !important;
        padding: 0 2px !important;
        font-size: 9px !important;
        line-height: 11px !important;
    }
}

/* v0.8.62: manually editable quantity in desktop Quick Cart. */
@media (max-width: 1280px) {
    .glite-header-cart__qty-input {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        line-height: 28px !important;
    }
}


/* v0.8.68: Digikala-style add-to-cart confirmation for desktop + mobile. */

.glite-cart-feedback-stack {
    position: fixed !important;
    z-index: 2147483000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    direction: rtl !important;
}

.glite-cart-added-toast {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    direction: rtl !important;
    border: 1px solid #edf0f2 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #292d32 !important;
    box-shadow: 0 10px 28px rgba(29, 33, 38, .13) !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    opacity: 0 !important;
    transform: translateY(12px) scale(.985) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
}

.glite-cart-added-toast,
.glite-cart-added-toast * {
    box-sizing: border-box !important;
}

.glite-cart-added-toast.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.glite-cart-added-toast__close {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #5f6670 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.glite-cart-added-toast__close:hover,
.glite-cart-added-toast__close:focus-visible {
    background: #f7f8f9 !important;
    color: #252a31 !important;
    outline: 0 !important;
}

.glite-cart-added-toast__close svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
}

.glite-cart-added-toast__status {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.glite-cart-added-toast.is-success .glite-cart-added-toast__status {
    color: #149447 !important;
}

.glite-cart-added-toast.is-error {
    border-color: #f2d5d8 !important;
    box-shadow: 0 10px 28px rgba(130, 28, 40, .10) !important;
}

.glite-cart-added-toast.is-error {
    order: 1 !important;
    z-index: 2 !important;
}

.glite-cart-added-toast.is-success {
    order: 2 !important;
}

.glite-cart-added-toast.is-error .glite-cart-added-toast__status {
    color: #b32636 !important;
    white-space: normal !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
}

.glite-cart-added-toast__check,
.glite-cart-added-toast__error-icon {
    flex: 0 0 23px !important;
    width: 23px !important;
    height: 23px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: currentColor !important;
}

.glite-cart-added-toast__check svg,
.glite-cart-added-toast__error-icon svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* DigiKala-style success tick: compact solid green dot + white drawn check. */
.glite-cart-added-toast__check {
    flex-basis: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.glite-cart-added-toast__check svg {
    width: 18px !important;
    height: 18px !important;
}

.glite-cart-added-toast__check-ring {
    fill: #49b92f !important;
    stroke: none !important;
    opacity: 0 !important;
    transform: scale(.42) !important;
    transform-origin: 12px 12px !important;
}

.glite-cart-added-toast__check-mark {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2.35 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-dasharray: 18 !important;
    stroke-dashoffset: 18 !important;
    opacity: 0 !important;
    transform-origin: 12px 12px !important;
}

.glite-cart-added-toast.is-check-animating .glite-cart-added-toast__check-ring {
    animation: gliteAddedToastSuccessDot .28s cubic-bezier(.2,.88,.28,1.18) .02s both !important;
}

.glite-cart-added-toast.is-check-animating .glite-cart-added-toast__check-mark {
    animation: gliteAddedToastTickResolve .24s cubic-bezier(.2,.82,.28,1) .14s both !important;
}

.glite-cart-added-toast.is-check-complete .glite-cart-added-toast__check-ring {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

.glite-cart-added-toast.is-check-complete .glite-cart-added-toast__check-mark {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
}

.glite-cart-added-toast__error-icon svg {
    stroke: #c53a49 !important;
    stroke-width: 1.9 !important;
}

.glite-cart-added-toast.is-visible .glite-cart-added-toast__error-icon {
    animation: gliteAddedToastErrorIn .28s cubic-bezier(.2,.85,.3,1.2) .03s both !important;
}

.glite-cart-added-toast__action,
.glite-cart-added-toast__action:link,
.glite-cart-added-toast__action:visited {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f3f4f5 !important;
    color: #30353b !important;
    text-decoration: none !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.glite-cart-added-toast__action:hover,
.glite-cart-added-toast__action:focus-visible {
    background: #eceeef !important;
    color: #20252a !important;
    outline: 0 !important;
}

.glite-cart-added-toast__action svg {
    width: 15px !important;
    height: 15px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

@keyframes gliteAddedToastSuccessDot {
    0%   { opacity: 0; transform: scale(.42); }
    68%  { opacity: 1; transform: scale(1.10); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes gliteAddedToastTickResolve {
    0%   { stroke-dashoffset: 18; opacity: 0; }
    14%  { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes gliteAddedToastErrorIn {
    from { opacity: 0; transform: scale(.75); }
    to   { opacity: 1; transform: scale(1); }
}

/* While an add-to-cart request is being resolved, keep legacy DigiLand/WC
 * stock boxes from flashing behind the unified GLite feedback toast. JS removes
 * only matching add-to-cart stock errors; unrelated notices are not touched. */
body.glite-add-feedback-pending .woocommerce-error,
body.glite-add-feedback-pending .woocommerce-notices-wrapper > .alert-danger,
body.glite-add-feedback-pending .woocommerce-notices-wrapper > .woocommerce-notice--error,
body.glite-add-feedback-pending .alert-danger,
body.glite-add-feedback-pending .woocommerce-notice--error,
body.glite-add-feedback-pending .wc-block-components-notice-banner.is-error {
    display: none !important;
}

/* DigiLand can inject its old red stock notice a few frames after the AJAX
 * response. During the short GLite stock-error feedback window, suppress only
 * the known legacy error containers; JavaScript still reads and removes them. */
body.glite-stock-error-feedback-active .woocommerce-error,
body.glite-stock-error-feedback-active .woocommerce-notices-wrapper > .alert-danger,
body.glite-stock-error-feedback-active .woocommerce-notices-wrapper > .alert-error,
body.glite-stock-error-feedback-active .woocommerce-notices-wrapper > .woocommerce-error,
body.glite-stock-error-feedback-active .woocommerce-notices-wrapper > .woocommerce-notice--error,
body.glite-stock-error-feedback-active .alert-danger,
body.glite-stock-error-feedback-active .alert-error,
body.glite-stock-error-feedback-active .woocommerce-notice--error,
body.glite-stock-error-feedback-active .wc-block-components-notice-banner.is-error {
    display: none !important;
}

@media (min-width: 1024px) {
    .glite-cart-feedback-stack {
        left: 24px !important;
        bottom: 24px !important;
        width: 420px !important;
        max-width: calc(100vw - 48px) !important;
    }

    .glite-cart-added-toast {
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 392px !important;
        max-width: 100% !important;
        min-height: 56px !important;
        align-self: flex-start !important;
    }

    .glite-cart-added-toast.is-error {
        width: 392px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 1023px) {
    .glite-cart-feedback-stack {
        left: 14px !important;
        right: 14px !important;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        max-width: none !important;
    }

    .glite-cart-added-toast {
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 62px !important;
        gap: 8px !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 26px rgba(25, 29, 34, .16) !important;
    }

    .glite-cart-added-toast__close {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .glite-cart-added-toast__status {
        gap: 6px !important;
        font-size: 12.5px !important;
    }

    .glite-cart-added-toast.is-error .glite-cart-added-toast__status {
        font-size: 12px !important;
    }

    .glite-cart-added-toast__check,
    .glite-cart-added-toast__error-icon {
        flex-basis: 22px !important;
        width: 22px !important;
        height: 22px !important;
    }

    .glite-cart-added-toast__check svg,
    .glite-cart-added-toast__error-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .glite-cart-added-toast__action,
    .glite-cart-added-toast__action:link,
    .glite-cart-added-toast__action:visited {
        min-height: 36px !important;
        padding: 0 10px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 370px) {
    .glite-cart-feedback-stack {
        left: 8px !important;
        right: 8px !important;
    }
    .glite-cart-added-toast {
        gap: 6px !important;
        padding-inline: 7px !important;
    }
    .glite-cart-added-toast__status { font-size: 11.5px !important; }
    .glite-cart-added-toast.is-error .glite-cart-added-toast__status { font-size: 11px !important; }
    .glite-cart-added-toast__action,
    .glite-cart-added-toast__action:link,
    .glite-cart-added-toast__action:visited { padding-inline: 8px !important; font-size: 10.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .glite-cart-added-toast {
        transition: opacity .12s ease, visibility .12s ease !important;
        transform: none !important;
    }
    .glite-cart-added-toast.is-visible .glite-cart-added-toast__error-icon {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
    }
    .glite-cart-added-toast__check-mark { stroke-dashoffset: 0 !important; opacity: 1 !important; }
    .glite-cart-added-toast__check-ring { opacity: 1 !important; transform: scale(1) !important; }
}
