/*
 * "Toegevoegd aan winkelmand" modal + teller op het winkelwagen-icoon.
 * Standalone plain CSS, same reason as booking-dates.css / mobile-fixes.css:
 * the SCSS sources and compiled style.css are out of sync.
 */

/* Counter on the header cart button (.btn is position: relative). */
.header__cart-count {
    position: absolute;
    top: -0.55rem;
    right: -0.55rem;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #13274B;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.header__cart-count[hidden] {
    display: none;
}

/* Modal */
html.cart-modal-open {
    overflow: hidden;
}

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 39, 75, 0.6);
    animation: cart-modal-fade 0.25s ease;
}

.cart-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 30rem;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 2rem 1.5rem 1.5rem;
    background: #fff;
    border-radius: var(--radius, 30px);
    text-align: center;
    color: #13274B;
    animation: cart-modal-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.cart-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: #13274B;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.cart-modal__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: #E51C20;
    color: #fff;
}

.cart-modal__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.cart-modal__item,
.cart-modal__count,
.cart-modal__question {
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.cart-modal__question {
    margin-top: 1.25rem;
    font-weight: 600;
}

.cart-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cart-modal__actions .btn {
    justify-content: center;
    white-space: normal;
    text-align: center;
}

@media (min-width: 560px) {
    .cart-modal__actions {
        flex-direction: row;
    }

    .cart-modal__actions .btn {
        flex: 1;
    }
}

@keyframes cart-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cart-modal-pop {
    from { opacity: 0; transform: translateY(1rem) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cart-modal__backdrop,
    .cart-modal__dialog {
        animation: none;
    }
}
