/*
|--------------------------------------------------------------------------
| ONLINEFOODIES - ELEGANT BURGER
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| BODY
|--------------------------------------------------------------------------
*/

body {
    background: #efefef;
}


/*
|--------------------------------------------------------------------------
| WRAPPER
|--------------------------------------------------------------------------
*/

.of-roost-wrapper {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| CATEGORÍAS
|--------------------------------------------------------------------------
*/

.of-category-bar {

    display: flex;

    gap: 12px;

    /* ======================================================
       CATEGORÍAS FIJAS AL HACER SCROLL
       ====================================================== */

    position: -webkit-sticky !important;
    position: sticky !important;

    top: 0 !important;

    z-index: 99999 !important;

    /* Fondo transparente */
    background: transparent !important;

    overflow-x: auto !important;

    overflow-y: hidden !important;

    margin-bottom: 30px;

    padding: 10px 0;

    /* Ocultar scrollbar */
    scrollbar-width: none;

    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;
}


/* Ocultar scrollbar en Chrome / Safari */
.of-category-bar::-webkit-scrollbar {

    display: none;
}


/* Asegurar transparencia en posibles contenedores internos */
.of-category-bar .et_pb_section,
.of-category-bar .et_pb_row,
.of-category-bar .et_pb_column,
.of-category-bar .et_pb_module {

    background-color: transparent !important;
}


.of-category-btn {

    background: #000;

    /* Gris casi blanco */
    color: #eeeeee !important;

    padding: 12px 20px;

    border-radius: 100px;

    text-decoration: none !important;

    font-weight: bold;

    white-space: nowrap;

    display: inline-block;

    /* Borde difuminado */
    border: 1px solid rgba(255, 255, 255, 0.45) !important;

    box-shadow:
        0 0 4px rgba(255, 255, 255, 0.35),
        0 0 10px rgba(255, 255, 255, 0.18),
        inset 0 0 4px rgba(255, 255, 255, 0.08);

    /* Sombra del texto */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.of-category-btn:hover {

    background: #111;

    color: #ffffff !important;

    border-color: rgba(255, 255, 255, 0.80) !important;

    box-shadow:
        0 0 5px rgba(255, 255, 255, 0.55),
        0 0 14px rgba(255, 255, 255, 0.30),
        inset 0 0 6px rgba(255, 255, 255, 0.10);
}


/*
|--------------------------------------------------------------------------
| TÍTULO CATEGORÍA
|--------------------------------------------------------------------------
*/

.of-category-title {

    margin-top: 50px;

    margin-bottom: 25px;

    font-size: 36px !important;

    font-weight: 900 !important;

    /* Gris casi blanco */
    color: #eeeeee !important;

    line-height: 1.1;

    /* Mejora de legibilidad sobre fondos fotográficos */
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.80);
}


/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.of-roost-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.of-roost-card {

    background: #000;

    border-radius: 28px;

    overflow: hidden;

    color: #fff;

    position: relative;

    min-height: 100%;
}


/*
|--------------------------------------------------------------------------
| IMAGEN
|--------------------------------------------------------------------------
*/

.of-roost-image {

    padding: 30px;

    text-align: center;
}


.of-roost-image img {

    width: 100%;

    max-width: 100%;

    height: auto;

    display: block;

    margin: auto;
}


/*
|--------------------------------------------------------------------------
| CONTENIDO
|--------------------------------------------------------------------------
*/

.of-roost-content {

    padding: 25px;
}


/*
|--------------------------------------------------------------------------
| TÍTULO PLATO
|--------------------------------------------------------------------------
*/

.of-roost-card h3,
.of-roost-card h3 a,
.of-roost-card .entry-title,
.of-roost-card .entry-title a {

    color: #ffffff !important;

    font-weight: 900 !important;

    text-transform: uppercase !important;

    letter-spacing: 1px !important;

    font-size: 26px !important;

    line-height: 1.1 !important;

    margin: 0 0 15px 0 !important;

    padding: 0 !important;

    text-decoration: none !important;
}


/*
|--------------------------------------------------------------------------
| MENUAi - BOTÓN INFORMACIÓN DEL PLATO
|--------------------------------------------------------------------------
*/

.of-dish-info-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 36px;

    height: 36px;

    margin-left: 8px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #ffffff;

    color: #222222;

    font-family: inherit;

    cursor: pointer;

    vertical-align: middle;

    opacity: 0.96;

    appearance: none;

    -webkit-appearance: none;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);

    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        box-shadow 0.15s ease;
}


.of-dish-info-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 18px;

    height: 18px;

    font-size: 18px;

    transform: none;

    font-family: Arial, sans-serif;

    font-weight: 700;

    line-height: 18px;

    font-style: normal;

    flex: 0 0 18px;

}


.of-dish-info-button:hover {

    opacity: 1;

    transform: scale(1.07);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}


.of-dish-info-button:focus {

    outline: none;
}


.of-dish-info-button:focus-visible {

    outline: 2px solid currentColor;

    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| MENUAi - TRANSICIÓN NOMBRE ORIGINAL / TRADUCIDO
|--------------------------------------------------------------------------
*/

.of-menuai-name-transition {

    opacity: 1;

    transition:
        opacity 0.45s ease-in-out;

}


.of-menuai-name-transition.is-fading {

    opacity: 0;
}

/*
|--------------------------------------------------------------------------
| MENUAi - LOADING DE TRADUCCIÓN
|--------------------------------------------------------------------------
|
| Overlay mostrado mientras la petición de traducción espera respuesta.
| No modifica la carta ni su contenido.
|
|--------------------------------------------------------------------------
*/

.of-menuai-loading {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100%;

    height: 100%;

    height: 100dvh;

    z-index: 2147483646;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.48);

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

    pointer-events: auto;

    touch-action: none;
}


.of-menuai-loading.is-visible {

    display: flex;
}


.of-menuai-loading-box {

    width: min(82vw, 340px);

    min-height: 220px;

    padding: 30px 24px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.35);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.of-menuai-loading-svg {

    width: 150px;

    height: 150px;

    display: block;

    object-fit: contain;

    margin-bottom: 18px;

}


.of-menuai-loading-title {

    font-size: 21px;

    font-weight: 800;

    line-height: 1.2;

    color: #222222;

    margin: 0 0 8px 0;

}


.of-menuai-loading-text {

    max-width: 270px;

    font-size: 14px;

    line-height: 1.45;

    color: #666666;

    margin: 0;

}


/*
|--------------------------------------------------------------------------
| DESCRIPCIÓN
|--------------------------------------------------------------------------
*/

.of-roost-description,
.of-roost-description p {

    color: #cccccc !important;

    line-height: 1.5 !important;

    margin-bottom: 20px !important;

    font-size: 16px !important;
}


/*
|--------------------------------------------------------------------------
| PRECIO
|--------------------------------------------------------------------------
*/

.of-roost-price {

    color: red !important;

    font-size: 32px !important;

    font-weight: 900 !important;

    line-height: 1 !important;
}


/*
|--------------------------------------------------------------------------
| ALÉRGENOS
|--------------------------------------------------------------------------
*/

.of-allergens {

    margin-top: 15px;

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


/*
|--------------------------------------------------------------------------
| ALÉRGENO ANTIGUO / COMPATIBILIDAD
|--------------------------------------------------------------------------
*/

.of-allergen {

    background: rgba(255, 255, 255, .15);

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;

    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| PREVISUALIZACIÓN ALÉRGENOS
|--------------------------------------------------------------------------
*/

.of-allergens-preview {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 15px;

    margin-bottom: 15px;

    align-items: center;
}


/*
|--------------------------------------------------------------------------
| BOTÓN ALÉRGENO
|--------------------------------------------------------------------------
*/

.of-allergen-icon {

    width: 34px;

    height: 34px;

    padding: 0;

    margin: 0;

    border: 0;

    background: transparent;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    line-height: 1;

    appearance: none;

    -webkit-appearance: none;

    border-radius: 50%;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.of-allergen-icon img {

    width: 30px;

    height: 30px;

    display: block;

    object-fit: contain;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.of-allergen-icon:hover {

    opacity: 0.9;

    transform: translateY(-1px);
}


.of-allergen-icon:hover img {

    transform: scale(1.08);
}


.of-allergen-icon:active {

    transform: scale(0.94);
}


.of-allergen-icon:focus-visible {

    outline: 2px solid #ffffff;

    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| POPUP ALÉRGENOS
|--------------------------------------------------------------------------
|
| El popup se coloca encima del VIEWPORT ACTUAL.
|
| No mueve la carta.
|
|--------------------------------------------------------------------------
*/

.of-allergen-modal {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100%;

    height: 100%;

    height: 100dvh;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    overflow: hidden;

    overscroll-behavior: none;
}


.of-allergen-modal.is-visible {

    display: flex;
}


/*
|--------------------------------------------------------------------------
| FONDO DEL POPUP
|--------------------------------------------------------------------------
|
| Aquí recuperamos el blur sutil.
|
| La carta permanece exactamente donde estaba,
| pero visualmente queda desenfocada.
|
|--------------------------------------------------------------------------
*/

.of-allergen-modal-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

    cursor: pointer;

    touch-action: none;
}


/*
|--------------------------------------------------------------------------
| VENTANA DEL POPUP
|--------------------------------------------------------------------------
*/

.of-allergen-modal-box {

    position: relative;

    z-index: 2;

    width: min(88vw, 520px);

    min-height: 160px;

    padding: 32px 58px 32px 32px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.35);

    text-align: center;

    display: flex;

    align-items: center;

    justify-content: center;

    touch-action: none;
}


/*
|--------------------------------------------------------------------------
| TÍTULO POPUP
|--------------------------------------------------------------------------
*/

.of-allergen-modal-title {

    font-size: 24px;

    font-weight: 800;

    line-height: 1.2;

    color: #222222;

    margin: 0;

    padding: 0;
}

/*
|--------------------------------------------------------------------------
| INFORMACIÓN DEL PLATO
|--------------------------------------------------------------------------
*/

.of-allergen-modal-content {

    margin: 0;

    font-size: 16px;

    line-height: 1.55;

    color: #666666;

    font-weight: 400;
}



/*
|--------------------------------------------------------------------------
| MENUAi - POPUP INFORMACIÓN DEL PLATO
|--------------------------------------------------------------------------
|
| Solo se activa cuando el popup contiene short_info visible.
|
|--------------------------------------------------------------------------
*/

.of-allergen-modal-box:has(
    .of-allergen-modal-content:not([hidden])
) {

    display: grid;

    grid-template-columns:
        minmax(0, 40%)
        minmax(0, 60%);

    column-gap: 24px;

    align-items: center;

    text-align: initial;

}


.of-allergen-modal-box:has(
    .of-allergen-modal-content:not([hidden])
) .of-allergen-modal-title {

    text-align: left;

    font-size: 25px;

    font-weight: 900;

    line-height: 1.1;

    color: #222222;

    margin: 0;

}


.of-allergen-modal-box:has(
    .of-allergen-modal-content:not([hidden])
) .of-allergen-modal-content {

    text-align: right;

    font-size: 16px;

    line-height: 1.55;

    color: #666666;

    margin: 0;
}


/*
|--------------------------------------------------------------------------
| MENUAi - VENTANA INFORMACIÓN DEL PLATO
|--------------------------------------------------------------------------
*/

.of-dish-info-mode .of-allergen-modal-box {

    width: min(92vw, 680px);

    min-height: 0;

    padding: 32px;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    justify-content: flex-start;

    gap: 18px;

    text-align: left;

}


.of-dish-info-mode .of-allergen-modal-title {

    font-size: 28px;

    font-weight: 900;

    line-height: 1.1;

    color: #222222;

    margin: 0;

    padding: 0;

}


.of-dish-info-meta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.of-dish-info-category {

    font-size: 13px;

    font-weight: 700;

    color: #777777;

    text-transform: uppercase;

    letter-spacing: .6px;

}


.of-dish-info-price {

    font-size: 22px;

    font-weight: 900;

    color: red;

    white-space: nowrap;

}


.of-dish-info-mode .of-allergen-modal-content {

    font-size: 16px;

    line-height: 1.6;

    color: #555555;

    margin: 0;

    text-align: left;

}


.of-dish-info-allergens {

    padding-top: 14px;

    border-top: 1px solid #eeeeee;

}


.of-dish-info-allergens-title {

    font-size: 14px;

    font-weight: 800;

    color: #333333;

    margin-bottom: 10px;

}


.of-dish-info-allergens-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.of-dish-info-allergen {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    min-height: 34px;

    padding: 4px 9px;

    border-radius: 999px;

    background: #f4f4f4;

    color: #444444;

    font-size: 12px;

    font-weight: 600;

}


.of-dish-info-allergen img {

    width: 28px;

    height: 28px;

    display: block;

    object-fit: contain;

}


.of-dish-info-allergens-empty {

    color: #888888;

    font-size: 13px;

}


.of-dish-info-ai {

    padding-top: 18px;

    border-top: 1px solid #eeeeee;

}


.of-dish-info-ai-button {

    appearance: none;

    -webkit-appearance: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 10px 18px;

    border: 1px solid #222222;

    border-radius: 999px;

    background: #222222;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.2;

    cursor: pointer;

    transition:
        opacity .2s ease,
        transform .2s ease;

}


.of-dish-info-ai-button:hover:not(:disabled) {

    opacity: .88;

    transform: translateY(-1px);

}


.of-dish-info-ai-button:disabled {

    opacity: .65;

    cursor: default;

}


.of-dish-info-ai-status {

    margin-top: 9px;

    color: #777777;

    font-size: 12px;

    line-height: 1.4;

}


.of-dish-info-ai-result {

    margin-top: 12px;

    padding: 15px 16px;

    border-radius: 14px;

    background: #f7f7f7;

    color: #444444;

    font-size: 15px;

    line-height: 1.6;

    white-space: pre-line;

}

/*
|--------------------------------------------------------------------------
| BOTÓN CERRAR
|--------------------------------------------------------------------------
*/

.of-allergen-modal-close {

    position: absolute;

    top: 8px;

    right: 10px;

    width: 40px;

    height: 40px;

    border: 0;

    background: transparent;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

    color: #555555;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;
}


.of-allergen-modal-close:hover {

    color: #000000;
}


.of-allergen-modal-close:focus-visible {

    outline: 2px solid #000000;

    outline-offset: 2px;

    border-radius: 8px;
}


/*
|--------------------------------------------------------------------------
| BOTÓN FLOTANTE VOLVER ARRIBA
|--------------------------------------------------------------------------
*/

.of-back-top {

    position: fixed !important;

    right: 18px !important;

    bottom: 22px !important;

    width: 56px !important;

    height: 56px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25) !important;

    border-radius: 50% !important;

    background: rgba(0, 0, 0, 0.55) !important;

    color: #ffffff !important;

    font-size: 30px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 2147483647 !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25) !important;

    box-sizing: border-box !important;
}


.of-back-top.is-visible {

    opacity: 0.70 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    transform: translateY(0);
}


.of-back-top.is-visible:hover {

    opacity: 0.90 !important;
}


.of-back-top:active {

    transform: scale(0.92);
}


.of-back-top:focus-visible {

    outline: 2px solid #ffffff;

    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| BOTONES CATEGORÍAS RECTANGULARES
|--------------------------------------------------------------------------
*/

.fb_filter_wrapper ul li {

    border-radius: 16px !important;

    overflow: hidden !important;
}


.fb_filter_wrapper ul li a {

    border-radius: 16px !important;

    min-height: 62px !important;

    padding: 14px 20px !important;
}


/*
|--------------------------------------------------------------------------
| DESKTOP
|--------------------------------------------------------------------------
*/

@media only screen and (min-width: 1024px) {

    .fb_filter_wrapper ul li a {

        border-radius: 18px !important;

        min-height: 72px !important;

    }

}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .of-roost-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    /* ======================================================
       CATEGORÍAS FIJAS EN MÓVIL
       ====================================================== */

    .of-category-bar {

        position: -webkit-sticky !important;
        position: sticky !important;

        top: 0 !important;

        z-index: 99999 !important;

        background: transparent !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scrollbar-width: none;
        -ms-overflow-style: none;

        -webkit-overflow-scrolling: touch;
    }

    .of-category-bar::-webkit-scrollbar {
        display: none;
    }

    .of-category-btn {

        color: #eeeeee !important;

        border: 1px solid rgba(255, 255, 255, 0.45) !important;

        box-shadow:
            0 0 4px rgba(255, 255, 255, 0.35),
            0 0 9px rgba(255, 255, 255, 0.18),
            inset 0 0 4px rgba(255, 255, 255, 0.08);

        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.85);
    }

    .of-category-title {

        color: #eeeeee !important;

        text-shadow:
            0 2px 3px rgba(0, 0, 0, 0.85);
    }



    /*
    |--------------------------------------------------------------------------
    | GRID
    |--------------------------------------------------------------------------
    */

    .of-roost-grid {

        grid-template-columns: 1fr;

    }


    /*
    |--------------------------------------------------------------------------
    | TÍTULO PLATO
    |--------------------------------------------------------------------------
    */

    .of-roost-card h3,
    .of-roost-card h3 a,
    .of-roost-card .entry-title,
    .of-roost-card .entry-title a {

        font-size: 26px !important;

    }


    /*
    |--------------------------------------------------------------------------
    | CATEGORÍAS
    |--------------------------------------------------------------------------
    */

    .fb_filter_wrapper ul li {

        min-width: 220px !important;

    }


    .fb_filter_wrapper ul li a {

        border-radius: 16px !important;

        min-height: 64px !important;

        font-size: 15px !important;

    }


    /*
    |--------------------------------------------------------------------------
    | ALÉRGENOS
    |--------------------------------------------------------------------------
    */

    .of-allergen-icon {

        width: 34px;

        height: 34px;

    }


    .of-allergen-icon img {

        width: 30px;

        height: 30px;

    }


    /*
    |--------------------------------------------------------------------------
    | POPUP MOBILE
    |--------------------------------------------------------------------------
    */

    .of-allergen-modal {

        padding: 18px;

        height: 100dvh;

    }


    .of-allergen-modal-box {

        width: min(88vw, 330px);

        min-height: 105px;

        padding: 26px 52px 26px 20px;

        border-radius: 20px;

    }

    .of-allergen-modal-box:has(
    .of-allergen-modal-content:not([hidden])
) {

    width: min(92vw, 360px);

    grid-template-columns:
        minmax(0, 42%)
        minmax(0, 58%);

    column-gap: 16px;

    padding:
        26px 48px 26px 20px;

}


.of-allergen-modal-box:has(
    .of-allergen-modal-content:not([hidden])
) .of-allergen-modal-title {

    font-size: 21px;

}


.of-allergen-modal-box:has(
    .of-allergen-modal-content:not([hidden])
) .of-allergen-modal-content {

    font-size: 14px;

    line-height: 1.5;

}


    .of-dish-info-mode .of-allergen-modal-box {

        width: min(92vw, 360px);

        padding: 24px 20px;

        gap: 15px;

        border-radius: 20px;

    }


    .of-dish-info-mode .of-allergen-modal-title {

        font-size: 22px;

    }


    .of-dish-info-meta {

        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

    }


    .of-dish-info-price {

        font-size: 20px;

    }


    .of-dish-info-mode .of-allergen-modal-content {

        font-size: 14px;

        line-height: 1.5;

    }


    .of-dish-info-ai-button {

        width: 100%;

    }

    .of-allergen-modal-title {

        font-size: 21px;

    }


    .of-allergen-modal-close {

        top: 7px;

        right: 8px;

        width: 40px;

        height: 40px;

        font-size: 30px;

    }


    /*
    |--------------------------------------------------------------------------
    | FLECHA MOBILE
    |--------------------------------------------------------------------------
    */

    .of-back-top {

        width: 56px !important;

        height: 56px !important;

        right: 16px !important;

        bottom: calc(
            20px + env(safe-area-inset-bottom)
        ) !important;

        font-size: 29px !important;

    }

}

/*
|--------------------------------------------------------------------------
| MENUAi 1.7 - FICHA DE PLATO / FOTO / INTERNET / MÓVIL
|--------------------------------------------------------------------------
|
| Estas reglas sobrescriben únicamente la presentación de la nueva ficha
| de plato. Corrigen especialmente el grid heredado que en móvil podía
| dejar la información IA en una columna demasiado estrecha.
|
|--------------------------------------------------------------------------
*/

.of-dish-info-photo-image[hidden],
.of-dish-info-photo-placeholder[hidden],
.of-dish-info-photo-request[hidden],
.of-dish-info-photo-status[hidden],
.of-dish-info-meta[hidden],
.of-dish-info-allergens[hidden],
.of-dish-info-ai[hidden],
.of-dish-info-ai-result[hidden] {

    display: none !important;
}


.of-dish-info-mode .of-allergen-modal-box {

    display: flex !important;

    flex-direction: column !important;

    align-items: stretch !important;

    justify-content: flex-start !important;

    width: min(92vw, 680px) !important;

    max-height: min(90dvh, 820px) !important;

    overflow-y: auto !important;

    overscroll-behavior: contain !important;

    -webkit-overflow-scrolling: touch !important;

    touch-action: auto !important;

}


.of-dish-info-photo {

    width: 100% !important;

    min-height: 170px;

    aspect-ratio: 16 / 9;

    position: relative;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 16px;

    background: #f4f4f4;

    display: flex;

    align-items: center;

    justify-content: center;

}


.of-dish-info-photo-image {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}


.of-dish-info-photo-placeholder {

    width: 100%;

    height: 100%;

    min-height: 170px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    text-align: center;

    color: #888888;

    font-size: 14px;

    font-weight: 700;

}


.of-dish-info-photo-request {

    position: absolute;

    left: 14px;

    right: 14px;

    bottom: 12px;

    width: auto;

    max-width: none;

    min-height: 42px;

    padding: 9px 15px;

    border: 1px solid #222222;

    border-radius: 999px;

    background: #222222;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    line-height: 1.2;

    cursor: pointer;

    box-sizing: border-box;

}


.of-dish-info-photo-request:hover:not(:disabled) {

    opacity: .88;

}


.of-dish-info-photo-request:disabled {

    opacity: .65;

    cursor: default;

}


.of-dish-info-photo-status {

    position: absolute;

    left: 12px;

    right: 12px;

    bottom: 10px;

    padding: 7px 10px;

    box-sizing: border-box;

    border-radius: 9px;

    background: rgba(255,255,255,.94);

    color: #555555;

    font-size: 11px;

    line-height: 1.3;

    text-align: center;

}


.of-dish-info-ai {

    display: flex !important;

    flex-wrap: wrap !important;

    align-items: center !important;

    gap: 9px !important;

    padding-top: 18px !important;

}


.of-dish-info-ai-button,
.of-dish-info-internet-button {

    appearance: none !important;

    -webkit-appearance: none !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-height: 44px;

    padding: 10px 18px;

    box-sizing: border-box;

    border-radius: 999px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.2;

    cursor: pointer;

}


.of-dish-info-ai-button {

    border: 1px solid #222222 !important;

    background: #222222 !important;

    color: #ffffff !important;

}


.of-dish-info-internet-button {

    border: 1px solid #222222 !important;

    background: #ffffff !important;

    color: #222222 !important;

}


.of-dish-info-ai-button:hover:not(:disabled),
.of-dish-info-internet-button:hover:not(:disabled) {

    opacity: .88;

    transform: translateY(-1px);

}


.of-dish-info-ai-button:disabled,
.of-dish-info-internet-button:disabled {

    opacity: .65;

    cursor: default;

}


.of-dish-info-ai-status,
.of-dish-info-ai-result {

    flex: 0 0 100% !important;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    box-sizing: border-box !important;

    overflow-wrap: anywhere !important;

    word-break: break-word !important;

}


.of-dish-info-ai-result {

    margin-top: 3px !important;

    padding: 14px 15px !important;

    border-radius: 14px !important;

    background: #f7f7f7 !important;

    color: #444444 !important;

    font-size: 15px !important;

    line-height: 1.6 !important;

    white-space: pre-line !important;

    text-align: left !important;

}


.of-dish-info-mode .of-allergen-modal-content {

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    text-align: left !important;

    overflow-wrap: anywhere !important;

    word-break: break-word !important;

    box-sizing: border-box !important;

}


@media (max-width: 768px) {

    .of-dish-info-mode .of-allergen-modal-box {

        width: min(94vw, 520px) !important;

        max-height: 90dvh !important;

        padding: 20px 16px 22px !important;

        gap: 13px !important;

        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch !important;

        touch-action: auto !important;

    }


    .of-dish-info-mode .of-dish-info-photo {

        min-height: 150px;

        aspect-ratio: 16 / 10;

    }


    .of-dish-info-mode .of-dish-info-photo-placeholder {

        min-height: 150px;

    }


    .of-dish-info-mode .of-dish-info-photo-request {

        left: 10px;

        right: 10px;

        bottom: 10px;

        width: auto;

        white-space: normal;

    }


    .of-dish-info-button {

        width: 34px;

        height: 34px;

        margin-left: 7px;

    }


    .of-dish-info-icon {

        width: 17px;

        height: 17px;

        font-size: 17px;

        transform: none;

        line-height: 17px;

        flex-basis: 17px;

    }


    .of-dish-info-mode .of-dish-info-ai-button,
    .of-dish-info-mode .of-dish-info-internet-button {

        flex: 1 1 140px;

        min-width: 0;

    }


    .of-dish-info-mode .of-dish-info-ai-result {

        font-size: 14px !important;

        line-height: 1.55 !important;

        padding: 13px 14px !important;

    }

}


/*
|--------------------------------------------------------------------------
| MENUAi 1.7 - GLOBO INTERNET / POPUP AGRADECIMIENTO
|--------------------------------------------------------------------------
*/

.of-dish-info-internet-button {

    min-width: 52px !important;
    width: 52px !important;
    padding: 8px 12px !important;
    font-size: 24px !important;
    line-height: 1 !important;

}


.of-dish-photo-thanks {

    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

}


.of-dish-photo-thanks-overlay {

    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.60);

}


.of-dish-photo-thanks-box {

    position: relative;
    z-index: 1;
    width: min(88vw, 420px);
    padding: 26px 24px 22px;
    box-sizing: border-box;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    text-align: center;

}


.of-dish-photo-thanks-icon {

    font-size: 42px;
    line-height: 1;
    margin-bottom: 16px;

}


.of-dish-photo-thanks-message {

    color: #222222;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;

}


.of-dish-photo-thanks-close {

    margin-top: 22px;
    min-width: 88px;
    min-height: 42px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: #222222;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;

}


@media (max-width: 768px) {

    .of-dish-info-internet-button {
        min-width: 48px !important;
        width: 48px !important;
        font-size: 21px !important;
    }

    .of-dish-photo-thanks-box {
        width: min(90vw, 380px);
        padding: 24px 20px 20px;
    }

    .of-dish-photo-thanks-message {
        font-size: 16px;
    }

}
