/* Layout "hh:mm" con cifre allineate */
.time-chooser{
    display:inline-grid;
    grid-template-columns:max-content 1ch max-content; /* hh : mm */
    align-items:center;
    gap:.25rem;
}
.time-chooser .input--time{
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums; /* cifre a larghezza fissa quando supportato */
    text-align:center;
    width:5.2ch;            /* 2 cifre + padding, uguale per hh e mm */
    line-height:1.2;
}
.time-chooser__sep{
    display:inline-block;
    width:1ch;              /* due punti centrato */
    text-align:center;
    opacity:.8;
}
/* FIX: rendi visibili le cifre nei <select> dell'orario */
.time-chooser select.input--time {
    color: #0b132a !important;             /* testo visibile */
    -webkit-text-fill-color: #0b132a !important; /* Safari/iOS */
    background-color: #fff !important;
    text-indent: 0 !important;             /* annulla eventuali custom select */
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;

    /* un po' di spazio per la freccia del select */
    padding: .25rem .75rem;
    min-width: 7.0ch;                      /* 2 cifre + margine + freccia */
    line-height: 1.2;
}

.time-chooser select.input--time option {
    color: #0b132a;                         /* colore voci menu a tendina */
    background: #fff;
}

.navetta-badge{
    border:1px solid #e5e7eb;
    background:#f8fafc;
    border-radius:12px;
    padding:8px 10px;
    cursor:pointer;
    transition:transform .06s ease, box-shadow .12s ease, background .12s ease;
}
.navetta-badge:hover{
    transform:translateY(-1px);
}
.navetta-badge.is-selected{
    background:#eef2ff;
    border-color:#6366f1;
    box-shadow:0 0 0 2px rgba(99,102,241,.15) inset;
}
.right .small{
    font-size:.85rem;
    color:var(--muted);
}

#lightbox {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}
#lightbox img {
    max-width:90%;
    max-height:90%;
    border-radius:8px;
}

/* L'anchor dell'immagine diventa il contenitore assoluto */
.img-lightbox{
    position: relative;
    display: block;
}

/* Badge offerta sovrapposto in alto a sinistra */
.offer-badge{
    position: absolute;
    top: -33px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 247, 237, 0.95);
    border: 1px solid #f59e0b;
    color: #92400e;
    font-weight: 600;
    font-size: .85rem;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}