/* Holo Frontier — Added to Cart toast
   Palette pulled from the live Blocksy customizer settings:
   navy #182A4D, slate #5A6B85, hairline #D8E1EC, orange #FF7A2F, yellow #FFD23F
*/

#hf-cart-toast-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    pointer-events: none;
}

.hf-cart-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #FFFFFF;
    border: 1px solid #D8E1EC;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow:
        0 20px 25px -8px rgba(24, 42, 77, 0.18),
        0 8px 10px -6px rgba(24, 42, 77, 0.12);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hf-cart-toast::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #FFD23F;
}

.hf-cart-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.hf-cart-toast.is-leaving {
    opacity: 0;
    transform: translateX(12px) scale(0.98);
}

.hf-cart-toast.is-updating .hf-cart-toast__icon {
    animation: hf-cart-toast-pulse 0.35s ease;
}

@keyframes hf-cart-toast-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.hf-cart-toast__icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FF7A2F;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.hf-cart-toast__icon svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
    fill: none;
    overflow: visible;
}

.hf-cart-toast__body {
    flex: 1 1 auto;
    min-width: 0;
}

.hf-cart-toast__brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
}

.hf-cart-toast__logo {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 5px;
    flex: none;
}

.hf-cart-toast__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5A6B85;
    margin: 0;
}

.hf-cart-toast__title {
    font-size: 14px;
    font-weight: 600;
    color: #182A4D;
    margin: 0 0 2px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hf-cart-toast__message {
    font-size: 13px;
    color: #5A6B85;
    margin: 0 0 10px;
    line-height: 1.4;
}

.hf-cart-toast__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF7A2F;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 7px 14px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.hf-cart-toast__cta:hover {
    background: #E8631A;
    color: #FFFFFF !important;
}

.hf-cart-toast__close {
    flex: none;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #5A6B85;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

.hf-cart-toast__close:hover {
    background: #F6F8FB;
    color: #182A4D;
}

@media (max-width: 480px) {
    #hf-cart-toast-root {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .hf-cart-toast {
        width: auto;
    }
}

/* --- Fallback path: the server-rendered WooCommerce success notice
   (theme override in woocommerce/notices/success.php) reuses the same
   toast classes above so it looks identical to the AJAX version. --- */
.hf-cart-toast--server {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    opacity: 1;
    transform: none;
}

.hf-cart-toast--server .hf-cart-toast__message a.button.wc-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF7A2F;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 7px 14px;
    border-radius: 8px;
    margin-top: 6px;
}

.hf-cart-toast--server .hf-cart-toast__message a.button.wc-forward:hover {
    background: #E8631A;
}
