/* Persistent bottom guest/auth cart feedback — not a modal.
   Distinct from detail sticky .batch-enroll-bar (batch-detail.css).
   Brand: Navy #1A2B4C, Gold #D4AF37. */

.guest-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
    background: #1A2B4C;
    color: #FFFFFF;
    box-shadow: 0 -4px 24px rgba(26, 43, 76, 0.28);
    transform: translateY(110%);
    transition: transform 0.28s ease;
    pointer-events: none;
}

.guest-cart-bar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.guest-cart-bar[hidden] {
    display: none !important;
}

.guest-cart-bar__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.guest-cart-bar__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
    min-width: 0;
}

.guest-cart-bar__msg {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-cart-bar__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #4B5320;
    color: #fff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.guest-cart-bar__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    color: #D4AF37;
}

.guest-cart-bar__price[hidden] {
    display: none !important;
}

.guest-cart-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.guest-cart-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2.45rem;
    padding: 0.45rem 1.05rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.guest-cart-bar__btn:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

.guest-cart-bar__btn--secondary {
    background: #FFFFFF;
    color: #1A2B4C;
    border-color: #FFFFFF;
}

.guest-cart-bar__btn--secondary:hover {
    background: #F4F6F9;
    color: #1A2B4C;
}

.guest-cart-bar__btn--primary {
    background: #D4AF37;
    color: #1D1D1F;
}

.guest-cart-bar__btn--primary:hover {
    background: #C5A028;
    color: #1D1D1F;
}

.guest-cart-bar__dismiss {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.35rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
}

.guest-cart-bar__dismiss:hover,
.guest-cart-bar__dismiss:focus-visible {
    color: #fff;
}

.guest-cart-bar__dismiss:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .guest-cart-bar__inner {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        padding-right: 1.75rem;
    }

    .guest-cart-bar__status {
        width: 100%;
        justify-content: space-between;
    }

    .guest-cart-bar__actions {
        width: 100%;
    }

    .guest-cart-bar__btn {
        flex: 1 1 auto;
    }

    .guest-cart-bar__dismiss {
        position: absolute;
        top: 0.1rem;
        right: 0;
    }
}
