/* Overlay */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    animation-name: cartModalFadeIn;
    animation-duration: 0.25s;
    animation-fill-mode: forwards;
}

/* Modal */
.cart-modal {
    background: #ffffff;
    width: 100%;
    max-width: 640px;
    padding: 24px;
    border-radius: 30px;

    opacity: 0;
    transform: scale(0.95);

    animation-name: cartModalZoomIn;
    animation-duration: 0.25s;
    animation-fill-mode: forwards;
}

/* Text */
.cart-modal__text {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
}

/* Aktionen */
.cart-modal__actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.cart-modal__actions button {
    flex: 1;
    padding: 12px 24px;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    background-color: rgb(93, 160, 41) !important;
}

.cart-modal__actions button:hover {
    background-color: rgb(56, 105, 17) !important;
    color: white !important;
}

/* Tablet (Elementor) */
@media (max-width: 1024px) {
    .cart-modal {
        max-width: 90%;
    }
}

/* Mobile (Elementor) */
@media (max-width: 767px) {
    .cart-modal__actions {
        flex-direction: column;
    }

    .cart-modal__actions button {
        width: 100%;
    }
}

/* Öffnen */
@keyframes cartModalFadeIn {
    to { opacity: 1; }
}

@keyframes cartModalZoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
