/* ============================================================================
   La voz del cliente (inc/inloff-voz-cliente.php)
   «¿Te falta algo para decidirte?» en /carrito/ y el pago, y la encuesta de la
   página de gracias. Discreto: un enlace plegado, casillas de un toque y la
   respuesta en el sitio, sobre crema. Tokens de inloff-tokens.css.
   Los botones de Flatsome traen mayúsculas, márgenes y alturas propias: aquí se
   ponen a cero con !important, como el resto del carrito.
   ========================================================================= */

.inloff-voz {
    --voz-navy: var(--inloff-navy, #1B2540);
    --voz-heart: var(--inloff-heart, #C5A184);
    --voz-bronce: var(--inloff-bronze-text, #7E5E3B);
    --voz-crema: var(--inloff-cream-warm, #F5EFE5);
    --voz-papel: var(--inloff-cream-light, #FDFBF7);
    --voz-linea: var(--inloff-line-strong, rgba(27, 37, 64, 0.16));
    --voz-suave: var(--inloff-text-soft, #4a5878);
    --voz-curva: var(--inloff-mov-firme, cubic-bezier(0.22, 1, 0.36, 1));
    font-family: var(--inloff-font-sans, 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif);
    color: var(--voz-navy);
}

.inloff-voz [hidden] {
    display: none !important;
}

/* ── El enlace que lo abre ─────────────────────────────────────────────── */

.inloff-voz--carrito {
    margin: 4px 0 0;
}
/* En el carrito lateral, una fila más bajo «Guárdalo por email · Recuérdamelo» (inloff-carritos-aviso.css). */
.inloff-voz-lateral {
    flex: none;
    padding: 0 22px 2px;
    border-top: 1px dashed #E6DECE;
    max-height: 46vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.inloff-voz--lateral .inloff-voz__abrir {
    min-height: 40px !important;
}
@media (max-width: 549px) {
    .inloff-voz-lateral {
        padding-left: 18px;
        padding-right: 18px;
    }
}
.inloff-voz--pago {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--inloff-line, rgba(27, 37, 64, 0.10));
}

.inloff-voz .inloff-voz__abrir {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--voz-suave);
    cursor: pointer;
    transition: color 0.15s ease;
}
.inloff-voz .inloff-voz__abrir:hover {
    color: var(--voz-navy);
}
.inloff-voz .inloff-voz__abrir svg {
    flex-shrink: 0;
    color: var(--voz-heart);
}
/* En el pago, como «¿Tienes un código de descuento?». */
.inloff-voz--pago .inloff-voz__abrir {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--voz-heart);
}
.inloff-voz .inloff-voz__abrir:focus-visible,
.inloff-voz .inloff-voz__chip:focus-visible,
.inloff-voz .inloff-voz__enviar:focus-visible {
    outline: 2px solid var(--voz-navy);
    outline-offset: 2px;
}

/* ── El panel ───────────────────────────────────────────────────────────── */

.inloff-voz__panel,
.inloff-voz__respuesta,
.inloff-voz__otra,
.inloff-voz__gracias {
    animation: inloff-voz-entra 0.26s var(--voz-curva) both;
}
@keyframes inloff-voz-entra {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

.inloff-voz__panel {
    padding: 4px 0 6px;
}
.inloff-voz .inloff-voz__intro {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--voz-suave);
}

/* Las opciones, en casillas a dos columnas con un redondeado sutil (owner, 17-oct-2026: nada de píldoras ni marcas). */
.inloff-voz__opciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
/* Si quedan impares, la última («Otra cosa») ocupa la fila entera. */
.inloff-voz .inloff-voz__chip:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
@media (min-width: 700px) {
    .inloff-voz--gracias .inloff-voz__opciones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .inloff-voz--gracias .inloff-voz__chip:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

.inloff-voz .inloff-voz__chip {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid var(--voz-linea) !important;
    border-radius: 6px !important;
    background: var(--voz-papel) !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-transform: none !important;
    color: var(--voz-navy) !important;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.inloff-voz .inloff-voz__chip:hover {
    border-color: var(--voz-navy) !important;
}
.inloff-voz .inloff-voz__chip:focus-visible {
    outline: 2px solid var(--voz-navy);
    outline-offset: 2px;
}
.inloff-voz .inloff-voz__chip[aria-pressed="true"],
.inloff-voz .inloff-voz__chip[aria-expanded="true"] {
    border-color: var(--voz-navy) !important;
    background: var(--voz-navy) !important;
    color: var(--inloff-on-navy, #FAF7F2) !important;
}
.inloff-voz .inloff-voz__chip:disabled {
    cursor: default;
}
.inloff-voz .inloff-voz__chip:disabled:not([aria-pressed="true"]) {
    opacity: 0.55;
}

/* ── «Otra cosa» ────────────────────────────────────────────────────────── */

.inloff-voz__otra {
    margin-top: 12px;
}
.inloff-voz .inloff-voz__etiqueta {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--voz-navy);
}
.inloff-voz__fila {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.inloff-voz .inloff-voz__texto {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--voz-linea) !important;
    border-radius: 6px !important;
    background: var(--voz-papel) !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 16px; /* 16 px: el iPhone no amplía la página al escribir */
    color: var(--voz-navy);
}
.inloff-voz .inloff-voz__texto:focus {
    border-color: var(--voz-heart) !important;
    box-shadow: 0 0 0 3px rgba(197, 161, 132, 0.18) !important;
    outline: none;
}
.inloff-voz .inloff-voz__enviar {
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--voz-navy) !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--inloff-on-navy, #FAF7F2) !important;
    cursor: pointer;
}
.inloff-voz .inloff-voz__enviar:hover {
    background: var(--inloff-navy-soft, #2A3656) !important;
}
.inloff-voz .inloff-voz__cuenta {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--voz-suave);
}

/* ── La respuesta y el gracias ──────────────────────────────────────────── */

.inloff-voz__respuesta {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: var(--inloff-radius, 14px);
    background: var(--voz-crema);
    outline: none;
}
.inloff-voz .inloff-voz__texto-respuesta {
    margin: 0 0 8px;
    max-width: 60ch;
    font-size: 14px;
    line-height: 1.55;
    color: var(--voz-navy);
}
.inloff-voz .inloff-voz__texto-respuesta a {
    color: var(--voz-bronce);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.inloff-voz .inloff-voz__gracias {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--voz-bronce);
    outline: none;
}
.inloff-voz .inloff-voz__gracias svg {
    flex-shrink: 0;
}
.inloff-voz.is-hecho {
    padding: 10px 0 2px;
}

/* ── La encuesta de la página de gracias ────────────────────────────────── */

.inloff-voz--gracias {
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto 34px;
    padding: 24px 22px;
    border: 1px solid var(--inloff-line-warm, #E8E2D5);
    border-radius: 16px;
    background: var(--voz-papel);
}
.inloff-voz .inloff-voz__eyebrow {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--voz-bronce);
}
.inloff-voz .inloff-voz__titulo {
    margin: 0 0 4px;
    font-family: var(--inloff-font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(20px, 4.4vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--voz-navy);
}
.inloff-voz--gracias .inloff-voz__intro {
    margin-bottom: 20px;
    font-size: 14px;
}
.inloff-voz__pregunta {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
/* Solo margen: la leyenda de un fieldset se pinta sobre su borde superior y el relleno quedaba debajo de ella, un hueco
   que la primera pregunta no tenía. La raya bajo cada pregunta ya la pone la leyenda (Flatsome). */
.inloff-voz__pregunta + .inloff-voz__pregunta {
    margin-top: 26px;
}
.inloff-voz .inloff-voz__legend {
    margin: 0 0 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--voz-navy);
}
.inloff-voz__pregunta.is-respondido .inloff-voz__legend {
    margin-bottom: 6px;
    color: var(--voz-suave);
    font-weight: 500;
}

@media (max-width: 549px) {
    .inloff-voz--gracias {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inloff-voz__panel,
    .inloff-voz__respuesta,
    .inloff-voz__otra,
    .inloff-voz__gracias {
        animation: none;
    }
    .inloff-voz .inloff-voz__chip {
        transition: none;
    }
}
