/* Aviso "Abrir en el navegador" (inapp-browser-notice.js).
   Paleta ámbar propia: se lee igual en tema claro y oscuro. Sin estilos inline (CSP).
   Fijo abajo y fuera del flujo: se inserta al cargar y no debe empujar el contenido (CLS).
   Si el banner de cookies está abierto, cede el sitio hasta que el usuario decida. */
.inapp-notice {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-sizing: border-box;
    width: auto;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0.9rem;
    background: #fff7e6;
    border: 1px solid #f5c76b;
    border-radius: 0.75rem;
    color: #5b3a00;
    font-size: 0.9rem;
    line-height: 1.4;
}

.inapp-notice-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.inapp-notice-hint {
    font-size: 0.85rem;
    opacity: 0.85;
}

.inapp-notice-action {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    background: #5b3a00;
    border: 0;
    border-radius: 0.5rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.inapp-notice-action:disabled {
    opacity: 0.75;
    cursor: default;
}

.inapp-notice-close {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 0 0.25rem;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.inapp-notice-offscreen {
    position: fixed;
    top: -1000px;
    left: -1000px;
}

body.tac-cookie-open .inapp-notice {
    display: none;
}

@media (max-width: 480px) {
    .inapp-notice {
        flex-wrap: wrap;
    }

    .inapp-notice-text {
        padding-right: 1.5rem;
    }

    .inapp-notice-close {
        position: absolute;
        top: 0.35rem;
        right: 0.5rem;
    }

    .inapp-notice-action {
        order: 3;
        width: 100%;
    }
}
