/*  SELECT CUISINE DIALOG   */

body.no-scroll {
    overflow: hidden;
}

.overlay-chef {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.select-cuisine-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    height: 70%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure content does not overflow */
}

.select-cuisine-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.select-cuisine-grid-container {
    flex-grow: 1;
    overflow-y: auto;
}

.select-cuisine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-bottom: 20px;
}

.select-cuisine-item {
    background: #f9f9f9;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.select-cuisine-item:hover {
    background: #e0e0e0;
}

.select-cuisine-item.selected {
    background: #c0c0c0;
}

.select-cuisine-buttons {
    text-align: center;
    margin-top: 20px;
    flex-shrink: 0;
}

.select-cuisine-buttons button {
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.select-cuisine-buttons button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .select-cuisine-dialog {
        width: 90%;
        height: 90%; /* Increase height for mobile */
    }
    .select-cuisine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .select-cuisine-dialog {
        width: 95%;
        height: 95%; /* Almost full screen for smaller devices */
        display: flex;
        flex-direction: column;
    }
    .select-cuisine-grid {
        grid-template-columns: 1fr;
    }
}
