/* AB Socalbird cart feedback / state UX. Scoped and neutral black/white. */
.woocommerce-notices-wrapper > .woocommerce-message,
.woocommerce-message[role="alert"] {
    display: none !important;
}

.absc-cart-toast {
    position: fixed !important;
    left: 50% !important;
    bottom: 26px !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 230px !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    padding: 13px 17px !important;
    transform: translate(-50%, 18px) !important;
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
    border-radius: 0 !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.18) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    letter-spacing: .02em !important;
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease !important;
}
.absc-cart-toast.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, 0) !important;
}
.absc-cart-toast__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    border: 1px solid currentColor !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    line-height: 1 !important;
}
.absc-cart-toast__text { color: inherit !important; }

.absc-archive-product-card__quick.absc-cart-view,
a.add_to_cart_button.absc-cart-view,
a.product_type_simple.absc-cart-view {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    text-decoration: none !important;
}
.absc-archive-product-card__quick.absc-cart-view:hover,
.absc-archive-product-card__quick.absc-cart-view:focus,
a.add_to_cart_button.absc-cart-view:hover,
a.add_to_cart_button.absc-cart-view:focus,
a.product_type_simple.absc-cart-view:hover,
a.product_type_simple.absc-cart-view:focus {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #111111 !important;
}

.absc-single-product-page .single_add_to_cart_button.absc-cart-loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
}
.absc-single-product-page .single_add_to_cart_button.absc-cart-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 1.5px solid rgba(255,255,255,.35) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: abscCartSpin .7s linear infinite !important;
}
.absc-single-product-page .single_add_to_cart_button.absc-cart-added {
    animation: abscCartAdded .45s ease !important;
}
@keyframes abscCartSpin { to { transform: rotate(360deg); } }
@keyframes abscCartAdded {
    0% { transform: scale(1); }
    48% { transform: scale(.985); }
    100% { transform: scale(1); }
}

@media (max-width: 767px) {
    .absc-cart-toast {
        bottom: 18px !important;
        min-width: 0 !important;
        width: calc(100vw - 28px) !important;
        padding: 12px 14px !important;
        font-size: 11px !important;
    }
}


/* Product Slider: no visual change until that product is actually in the cart. */
.absc-product-card__cart-view {
    display: none !important;
}
.absc-product-card__cart-view.absc-cart-view {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 58px !important;
    z-index: 6 !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}
.absc-product-card__cart-view.absc-cart-view:hover,
.absc-product-card__cart-view.absc-cart-view:focus {
    background: #ffffff !important;
    color: #111111 !important;
}
@media (max-width: 767px) {
    .absc-product-card__cart-view.absc-cart-view {
        left: 6px !important;
        right: 6px !important;
        bottom: 50px !important;
        min-height: 34px !important;
        padding: 7px 8px !important;
        font-size: 9px !important;
    }
}

/* Single product: cart-state button mirrors the existing black/white site language. */
.absc-single-product-page .single_add_to_cart_button.absc-cart-view {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
    cursor: pointer !important;
}
.absc-single-product-page .single_add_to_cart_button.absc-cart-view:hover,
.absc-single-product-page .single_add_to_cart_button.absc-cart-view:focus {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}


/* v1.16.0 - compact circular cart control used by slider + shop/category cards. */
.absc-card-cart-button,
a.absc-card-cart-button,
.absc-card-cart-button:hover,
.absc-card-cart-button:focus,
.absc-card-cart-button:focus-visible,
.absc-card-cart-button:active {
    position: absolute !important;
    z-index: 8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.96) !important;
    color: #111111 !important;
    border: 1px solid rgba(17,17,17,.16) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.10) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease !important;
}
.absc-card-cart-button:hover,
.absc-card-cart-button:focus-visible {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    transform: translateY(-1px) scale(1.02) !important;
}
.absc-card-cart-button__icons,
.absc-card-cart-button svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}
.absc-card-cart-button svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.65 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.absc-card-cart-button__icons { position: relative !important; }
.absc-card-cart-button__bag,
.absc-card-cart-button__check {
    position: absolute !important;
    inset: 0 !important;
    transition: opacity .18s ease, transform .22s ease !important;
}
.absc-card-cart-button__bag { opacity: 1 !important; transform: scale(1) !important; }
.absc-card-cart-button__check { opacity: 0 !important; transform: scale(.65) !important; stroke-width: 2 !important; }
.absc-card-cart-button.is-in-cart,
.absc-card-cart-button.absc-cart-view,
.absc-card-cart-button.added {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}
.absc-card-cart-button.is-in-cart .absc-card-cart-button__bag,
.absc-card-cart-button.absc-cart-view .absc-card-cart-button__bag,
.absc-card-cart-button.added .absc-card-cart-button__bag {
    opacity: 0 !important;
    transform: scale(.65) !important;
}
.absc-card-cart-button.is-in-cart .absc-card-cart-button__check,
.absc-card-cart-button.absc-cart-view .absc-card-cart-button__check,
.absc-card-cart-button.added .absc-card-cart-button__check {
    opacity: 1 !important;
    transform: scale(1) !important;
}
.absc-card-cart-button.loading .absc-card-cart-button__icons { opacity: 0 !important; }
.absc-card-cart-button.loading::after {
    content: "" !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid rgba(17,17,17,.22) !important;
    border-top-color: #111111 !important;
    border-radius: 50% !important;
    animation: abscCartSpin .7s linear infinite !important;
}
.absc-card-cart-button.loading:hover::after { border-color: rgba(255,255,255,.35) !important; border-top-color: #fff !important; }
.absc-card-cart-button + .added_to_cart.wc-forward { display: none !important; }
@media (max-width: 767px) {
    .absc-card-cart-button,
    a.absc-card-cart-button,
    .absc-card-cart-button:hover,
    .absc-card-cart-button:focus,
    .absc-card-cart-button:focus-visible,
    .absc-card-cart-button:active {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    .absc-card-cart-button__icons,
    .absc-card-cart-button svg { width: 20px !important; height: 20px !important; }
}

/* Single product: WooCommerce injects this extra AJAX “View cart” link after add-to-cart.
 * AB Socalbird already changes the main button to the cart state, so keep the
 * duplicate wc-forward link out of the single-product layout. */
.absc-single-product-page a.added_to_cart.wc-forward,
body.single-product a.added_to_cart.wc-forward {
    display: none !important;
}

/* ==========================================================================
   v1.18.5 — top add-to-cart product notification
   Replaces the former bottom toast with the supplied full-width top treatment.
   ========================================================================== */
.absc-cart-toast {
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 1000000 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 114px !important;
    margin: 0 !important;
    padding: 0 clamp(24px, 14vw, 280px) !important;
    transform: translate3d(0, -115%, 0) !important;
    background: #ffffff !important;
    color: #111111 !important;
    border: 0 !important;
    border-top: 4px solid #111111 !important;
    border-bottom: 1px solid #111111 !important;
    border-radius: 0 !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.10) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .38s cubic-bezier(.22,.8,.28,1), opacity .24s ease, visibility .38s ease !important;
    box-sizing: border-box !important;
}
.absc-cart-toast.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
}
body.admin-bar .absc-cart-toast { top: 32px !important; }

.absc-cart-toast__close,
.absc-cart-toast__view-cart {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.absc-cart-toast__close {
    grid-column: 1 !important;
    justify-self: start !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.absc-cart-toast__close svg {
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
}
.absc-cart-toast__close:hover,
.absc-cart-toast__close:focus-visible { opacity: .55 !important; }

.absc-cart-toast__product {
    grid-column: 2 !important;
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.absc-cart-toast__thumb {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 80px !important;
    overflow: hidden !important;
    background: #efedf0 !important;
    border-radius: 50% !important;
}
.absc-cart-toast__thumb::before {
    content: '' !important;
    width: 24px !important;
    height: 24px !important;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4.5h2.15l1.85 8.15a2 2 0 0 0 1.95 1.56h7.45a2 2 0 0 0 1.94-1.52L20.1 8H6.45'/%3E%3Ccircle cx='10' cy='19' r='1.25'/%3E%3Ccircle cx='17' cy='19' r='1.25'/%3E%3C/svg%3E") !important;
    opacity: .65 !important;
}
.absc-cart-toast__thumb.has-image::before { display: none !important; }
.absc-cart-toast__thumb img {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
    object-fit: contain !important;
    object-position: center !important;
    box-sizing: border-box !important;
}
.absc-cart-toast__thumb.has-image img { display: block !important; }

.absc-cart-toast__view-cart {
    grid-column: 3 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    text-transform: none !important;
}
.absc-cart-toast__view-cart:hover,
.absc-cart-toast__view-cart:focus-visible { text-decoration: underline !important; text-underline-offset: 4px !important; }

/* Keep the live status message available to assistive technology without
   adding visual text that is absent from the supplied reference. */
.absc-cart-toast__text {
    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;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 782px) {
    body.admin-bar .absc-cart-toast { top: 46px !important; }
}
@media (max-width: 767px) {
    .absc-cart-toast {
        width: 100% !important;
        height: 88px !important;
        padding: 0 16px !important;
        grid-template-columns: minmax(44px,1fr) auto minmax(70px,1fr) !important;
    }
    .absc-cart-toast__close {
        width: 34px !important;
        height: 34px !important;
    }
    .absc-cart-toast__close svg {
        width: 20px !important;
        height: 20px !important;
    }
    .absc-cart-toast__thumb {
        width: 60px !important;
        height: 60px !important;
    }
    .absc-cart-toast__thumb img { padding: 6px !important; }
    .absc-cart-toast__view-cart {
        font-size: 10px !important;
        letter-spacing: .02em !important;
        white-space: nowrap !important;
    }
}


/* ==========================================================================
   v1.18.8 — add-to-cart notification uses the site's black/white system
   ========================================================================== */
.absc-cart-toast {
    background: #111111 !important;
    color: #ffffff !important;
    border-top-color: #111111 !important;
    border-bottom-color: rgba(255,255,255,.28) !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.22) !important;
}
.absc-cart-toast__close,
.absc-cart-toast__view-cart {
    color: #ffffff !important;
}
.absc-cart-toast__thumb {
    background: #f2f2f2 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25) !important;
}
