/**
 * Time Availability Styles
 */

/* Time availability badge */
.wfs-time-availability-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--wfs-primary-color, #267dc9);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Time availability modal */
.wfs-time-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.wfs-time-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: wfsTimeModalFadeIn 0.3s;
}

@keyframes wfsTimeModalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.wfs-time-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}

.wfs-time-modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.wfs-time-availability-message {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.wfs-time-availability-message span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Make sure the badge is properly positioned on the custom product layout */
.custom-food-item {
    position: relative;
}
