/*
 * /comprobar-loteria/ (Web/Loteria/loteria_comprobar_premios.aspx, 17/10/2026) con el diseño de las páginas de resultados: la página
 * carga pl-resultados.css y todo va dentro de .pl-res (pl-card, pl-chips, pl-boton, pl-tabla...). Aquí solo lo propio: el selector de
 * sorteo (componente antiguo Loteria_C_SelectorSorteos_FE, que sigue con su barra morada en las demás páginas), el campo del número y
 * los avisos de premiado / no premiado. Se carga con ?v= (súbelo si cambias algo aquí).
 */

/* ---------------------------------------------------------------- Tipos de sorteo y formulario */
.pl-res .pl-comprobar-tipos { margin-top: 18px; }
/* El enlace a los resultados de la Lotería Nacional (phResultadosLoteria, con ResultadosLoteria_Habilitado) */
.pl-res .pl-comprobar-resultados { font-size: 15px; color: var(--pl-tinta-2); }
.pl-res .pl-comprobar-resultados a { color: var(--pl-tinta); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--pl-borde); }
.pl-res .pl-comprobar-resultados a:hover { border-bottom-color: var(--pl-tinta); }
.pl-res .pl-comprobar-tipos a { padding: 8px 18px; font-size: 15px; font-weight: 700; }
.pl-res .pl-comprobar-form { padding-bottom: 28px; }
.pl-res .pl-comprobar-sorteo { margin: 0 0 20px; }
/* El selector de sorteo: la barra morada pasa a una fila clara con borde, como el selector de los resultados */
.pl-res .pl-comprobar-sorteo .cambiarSorteoLoteria {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0;
    padding: 10px 10px 10px 16px;
    background: #f8fafc;
    border: 1px solid var(--pl-borde);
    border-radius: var(--pl-radio);
    color: var(--pl-tinta);
    width: auto;
}
.pl-res .pl-comprobar-sorteo .sorteoLoteria,
.pl-res .pl-comprobar-sorteo .sorteoLoteria span {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--pl-tinta) !important;
    text-transform: none;
    letter-spacing: 0;
}
.pl-res .pl-comprobar-sorteo .sorteoLoteria .pl_toUpperIQ { text-transform: capitalize; font-weight: 400; color: var(--pl-tinta-2) !important; }
/* El botón trae btn-default, dropdown-toggle-LN y pl_fontSelectorIQ del estilo antiguo (morado, con !important) */
.pl-res .pl-comprobar-sorteo .dropdown-toggle,
.pl-res .pl-comprobar-sorteo .dropdown-toggle:focus,
.pl-res .pl-comprobar-sorteo .open > .dropdown-toggle {
    min-height: 40px !important;
    height: auto !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid var(--pl-borde) !important;
    background: #fff !important;
    color: var(--pl-tinta) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
}
.pl-res .pl-comprobar-sorteo .dropdown-toggle:hover { border-color: var(--pl-tinta-2); }
.pl-res .pl-comprobar-sorteo .dropdown-menu { border-radius: var(--pl-radio); border: 1px solid var(--pl-borde); box-shadow: 0 10px 30px rgba(15, 23, 42, .12); padding: 6px 0; max-height: 320px; overflow-y: auto; }
.pl-res .pl-comprobar-sorteo .dropdown-menu a { color: var(--pl-tinta); font-size: 15px; padding: 8px 16px; }

.pl-res .pl-comprobar-fila { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; }
.pl-res .pl-comprobar-decimo { flex: 0 1 380px; min-width: 0; }
.pl-res .pl-comprobar-decimo img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--pl-borde); }
.pl-res .pl-comprobar-decimo:empty { display: none; }
.pl-res .pl-comprobar-campo { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 420px; }
.pl-res .pl-comprobar-campo .pl-etq { margin: 0; }
.pl-res input.pl-comprobar-input {
    width: 100%;
    max-width: 260px;
    min-height: 60px;
    padding: 0 16px;
    border: 1px solid var(--pl-suave);
    border-radius: var(--pl-radio);
    background: #fff;
    color: var(--pl-tinta);
    font-family: inherit;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: .18em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}
.pl-res input.pl-comprobar-input:focus { outline: 2px solid var(--pl-ambar); outline-offset: 1px; border-color: var(--pl-tinta); }
.pl-res .pl-comprobar-campo .pl-boton { min-width: 220px; min-height: 48px; font-size: 16px; }
.pl-res .pl-comprobar-campo .pl-nota { margin-top: 2px; }

/* ---------------------------------------------------------------- Avisos de premiado / no premiado */
.pl-modal-fondo { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 10040; }
body.pl-modal-abierto { overflow: hidden; }
.pl-modal-comprobar {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10050;
    width: calc(100% - 32px);
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    padding: 28px 28px 24px;
    text-align: left;
}
.pl-modal-comprobar .pl-res { position: relative; font-size: 16px; }
.pl-modal-comprobar .pl-modal-cerrar {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--pl-tinta);
    font-size: 26px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}
.pl-modal-comprobar .pl-modal-cerrar:hover { background: var(--pl-borde); }
.pl-modal-comprobar .pl-modal-etq {
    display: table;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--pl-tinta-2);
    margin: 0 0 10px;
}
.pl-modal-comprobar .pl-modal-etq--ok { background: #fff7e0; color: #92400e; }
.pl-modal-comprobar h2.pl-res-titulo {
    font-family: inherit;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--pl-tinta);
    text-transform: none;
    text-align: left;
    letter-spacing: -0.01em;
    display: block;
    float: none;
    width: auto !important;
    margin: 0 !important;
    padding-right: 28px !important;
}
.pl-modal-comprobar .pl-res-respuesta { margin: 6px 0 0; color: var(--pl-tinta-2); font-size: 16px; }
.pl-modal-comprobar .pl-modal-numero {
    display: inline-block;
    margin: 14px 0 16px;
    padding: 6px 18px;
    border-radius: var(--pl-radio);
    background: var(--pl-boton);
    color: #fff;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: .14em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.pl-modal-comprobar .pl-modal-numero--sin { background: #f1f5f9; color: var(--pl-tinta); }
.pl-modal-comprobar .pl-modal-texto { margin: 0 0 4px; color: var(--pl-tinta-2); }
.pl-res table.pl-premios-decimo { margin-top: 4px; }
.pl-res table.pl-premios-decimo td:first-child { color: var(--pl-tinta); }
.pl-res table.pl-premios-decimo tfoot td {
    padding-top: 14px;
    border-top: 2px solid var(--pl-tinta);
    border-bottom: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--pl-tinta);
}
.pl-modal-comprobar .pl-nota { margin-top: 10px; }
.pl-modal-comprobar .pl-res-enlaces { margin-top: 18px; }
.pl-modal-comprobar .pl-modal-cobro { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pl-borde); }
.pl-modal-comprobar .pl-modal-cobro summary { cursor: pointer; font-weight: 700; color: var(--pl-tinta); min-height: 32px; }
.pl-modal-comprobar .pl-modal-cobro p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--pl-tinta-2); }
.pl-modal-comprobar .pl-modal-cobro a { color: var(--pl-tinta); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--pl-borde); }
.pl-modal-comprobar .pl-modal-cobro a:hover { border-bottom-color: var(--pl-tinta); }

@media (max-width: 860px) {
    .pl-res .pl-comprobar-fila { flex-direction: column; align-items: stretch; gap: 16px; }
    .pl-res .pl-comprobar-decimo { flex: none; max-width: 300px; }
    .pl-res .pl-comprobar-campo { max-width: none; align-items: stretch; }
    .pl-res input.pl-comprobar-input { max-width: none; }
    .pl-res .pl-comprobar-campo .pl-boton { min-width: 0; width: 100%; }
    .pl-res .pl-comprobar-sorteo .cambiarSorteoLoteria { padding: 10px 12px; }
    .pl-modal-comprobar { padding: 22px 18px 18px; border-radius: 14px; }
    .pl-modal-comprobar .pl-modal-cerrar { top: -8px; right: -6px; }
    .pl-modal-comprobar h2.pl-res-titulo { font-size: 20px; }
    .pl-modal-comprobar .pl-modal-numero { font-size: 32px; }
}
