/* =============================================================================
   Paso 5 · casilla de pago, política de reembolso y salida amable.
   Discreto: es un paso de confirmación, no una advertencia legal.
   ============================================================================= */
html:not(#_) body:not(#_) .pg-bloque {
    margin: 14px 0 0; padding: 14px 16px;
    border: 1px solid rgba(var(--hotel-primary-rgb, 13, 50, 38), .16);
    border-radius: var(--ux-radius, 12px);
    background: rgba(var(--hotel-primary-rgb, 13, 50, 38), .035);
}
html:not(#_) body:not(#_) .pg-acepto { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; margin: 0; }
html:not(#_) body:not(#_) .pg-acepto input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hotel-primary, #0d3226); cursor: pointer; }
html:not(#_) body:not(#_) .pg-acepto span { font-size: 13.5px; line-height: 1.45; color: #2c3733; }
html:not(#_) body:not(#_) .pg-enlaces { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 11px 0 0; padding-left: 31px; }
html:not(#_) body:not(#_) .pg-link {
    background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
    color: var(--hotel-primary, #0d3226); text-decoration: underline; text-underline-offset: 3px;
}
html:not(#_) body:not(#_) .pg-link--flojo { color: #6b7672; font-weight: 500; }
html:not(#_) body:not(#_) .pg-aviso { margin: 10px 0 0; padding-left: 31px; font-size: 12.5px; color: #5f6b66; }
/* Solo cuando intenta seguir sin marcarla: ahi si es un aviso y tiene que verse como tal. */
html:not(#_) body:not(#_) .pg-aviso.pg-aviso--urge { color: #9a6a10; font-weight: 600; }

/* ---------------------------------------------------------------- ventana */
html:not(#_) body:not(#_) .pg-velo {
    position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; padding: 20px;
    background: rgba(12, 18, 16, .55); opacity: 0; transition: opacity .25s ease; overflow-y: auto;
}
html:not(#_) body:not(#_) .pg-velo.is-on { opacity: 1; }
html:not(#_) body:not(#_) .pg-caja {
    position: relative; width: min(520px, 100%); background: #fff; border-radius: 16px; padding: 26px 26px 24px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transform: translateY(10px); transition: transform .25s ease;
    max-height: 86dvh; overflow-y: auto;
}
html:not(#_) body:not(#_) .pg-velo.is-on .pg-caja { transform: none; }
html:not(#_) body:not(#_) .pg-caja h3 { margin: 0 0 12px; font-size: 19px; color: var(--hotel-primary, #0d3226); }
html:not(#_) body:not(#_) .pg-caja p { margin: 0 0 8px; font-size: 14px; color: #4f5a56; line-height: 1.55; }
html:not(#_) body:not(#_) .pg-cerrar {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: #f2f4f6; color: #5b6672; font-size: 19px; line-height: 1; cursor: pointer;
}
html:not(#_) body:not(#_) .pg-lista { display: grid; gap: 12px; margin-top: 4px; }
html:not(#_) body:not(#_) .pg-fila { display: grid; gap: 2px; padding-bottom: 11px; border-bottom: 1px solid #edf0f3; }
html:not(#_) body:not(#_) .pg-fila:last-child { border-bottom: 0; padding-bottom: 0; }
html:not(#_) body:not(#_) .pg-fila b { font-size: 13.5px; color: #1f2623; }
html:not(#_) body:not(#_) .pg-fila span { font-size: 13.5px; color: #55605c; line-height: 1.5; }
html:not(#_) body:not(#_) .pg-botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
html:not(#_) body:not(#_) .pg-btn {
    flex: 1 1 auto; padding: 13px 18px; border-radius: 11px; border: 1px solid #dfe4e8; background: #fff;
    font-weight: 600; font-size: 14px; cursor: pointer; color: #2c3733;
}
html:not(#_) body:not(#_) .pg-btn--p { background: var(--hotel-primary, #0d3226); border-color: var(--hotel-primary, #0d3226); color: #fff; }
html:not(#_) body:not(#_) .pg-hoteles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
html:not(#_) body:not(#_) .pg-hoteles span {
    padding: 8px 13px; border-radius: 999px; background: #f4f6f8; color: #414c48; font-size: 13px; font-weight: 500;
}
@media (max-width: 560px) {
    html:not(#_) body:not(#_) .pg-enlaces, html:not(#_) body:not(#_) .pg-aviso { padding-left: 0; }
    html:not(#_) body:not(#_) .pg-caja { padding: 22px 18px 20px; }
}

/* Cuando el huésped intenta terminar sin marcar la casilla: un latido, no un regaño. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes pgLate { 0%, 100% { transform: none; } 30% { transform: scale(1.015); } 60% { transform: none; } }
    html:not(#_) body:not(#_) .pg-bloque.pg-late { animation: pgLate .5s ease 2; border-color: rgba(154, 106, 16, .5); background: rgba(154, 106, 16, .06); }
}

/* Mientras no haya método de pago elegido, «cuánto pagar ahora» y la casilla no pintan nada:
   el importe del 50 % depende del método, así que preguntarlo antes solo confunde. */
html.pg-sin-metodo:not(#_) body:not(#_) #deposit-choice,
html.pg-sin-metodo:not(#_) body:not(#_) .pg-bloque { display: none !important; }
