/* lightbox.css */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

.lightbox-content img {
    width: 100%;
    max-width: 140px;
    height: 66px;
    text-align: left;
    display: block;
}

.lightbox-content {
    border-radius: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.6em 1.2em;
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}


/* Hide UI */

.restaurant-closed-lightbox-open #wfc-open-cart-button {
    display: none;
}

.restaurant-is-closed .delivery-text {
    color: red;
    font-weight: 400;
}

.restaurant-closed-temporary .product-annoucment {
    text-align: center;
    color: #fff;
    background: red;
    padding: 1em;
}

.restaurant-closed-temporary #wfc-open-cart-button {
    display: none;
}

.restaurant-closed-temporary footer.order.purchasable {
    display: none;
}

.restaurant-closed-temporary .lightboxclosed-annoucment {
    margin: 1.4em 0;
}

/* Delivery Unavailable Lightbox */
.delivery-unavailable-lightbox {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.delivery-unavailable-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2em;
    border-radius: 16px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.delivery-unavailable-content h3 {
    margin: 0 0 1em 0;
    font-size: 1em;
    color: #e74c3c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.delivery-unavailable-content .delivery-message {
    margin: 1em 0 1.5em 0;
    line-height: 1.6;
    font-size: 18px;
    color: #333;
}

.close-delivery-lightbox {
    background: var(--wp--preset--color--primary)!important;
    color: #fff;
    border: none;
    padding: 0.8em 2em;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-delivery-lightbox:hover {
    background: var(--wp--preset--color--primary)!important;
}

span.quick-warn-note {
    background: rgb(200, 7, 7);
    color: #fff;
    border-radius: 10px;
    padding: 0.4em;
}

.quick-warn-note a {
    color: #fff !important;
    display: block;
    font-weight: 600;
}

/* Body-Klasse für Scroll-Lock */
body.delivery-lightbox-open {
    overflow: hidden;
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}