/* Noleggio Gonfiabili - s0ft.it 2026 */

.ng-vuoto { padding: 2em 0; opacity: .8; }
.ng-nascosto { display: none !important; }
.ng-nota { font-size: .85em; opacity: .75; }
.ng-esito { min-height: 1.4em; font-size: .95em; }
.ng-cauzione-nota { font-size: .8em; opacity: .7; display: inline-block; }

/* Catalogo */
.ng-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.ng-card { display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.1); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s ease; background: #fff; }
.ng-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.ng-card-img { aspect-ratio: 4/3; display: block; overflow: hidden; }
.ng-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ng-card-body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1.1rem; }
.ng-card-titolo { font-weight: 700; font-size: 1.05em; }
.ng-card-meta { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .8em; opacity: .8; }
.ng-badge { background: rgba(0,0,0,.06); border-radius: 99px; padding: .1em .7em; }
.ng-card-prezzo { font-weight: 700; margin-top: .25rem; }
.ng-card-prezzo small, .ng-prezzo-grande small { font-weight: 400; opacity: .7; }

/* Scheda */
.ng-scheda { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: start; }
.ng-scheda-media img { width: 100%; border-radius: 10px; display: block; }
.ng-scheda-media .ng-thumb { width: calc(25% - .5rem); display: inline-block; margin: .5rem .5rem 0 0; }
.ng-prezzo-grande { font-size: 1.5em; font-weight: 700; }
.ng-prezzo-grande .ng-cauzione-nota { display: block; font-size: .55em; font-weight: 400; }
.ng-specifiche { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; margin: 1.25rem 0; }
.ng-specifiche dt { font-weight: 600; }
.ng-specifiche dd { margin: 0; }
.ng-date-box { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: 1.1rem 1.25rem; margin-top: 1rem; }
.ng-date-box h3 { margin-top: 0; }
.ng-date-riga { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.ng-date-riga label { display: flex; flex-direction: column; gap: .25rem; font-size: .9em; }

/* Form e step checkout */
.ng-checkout { max-width: 640px; }
.ng-riepilogo { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.ng-riepilogo h2 { margin: 0 0 .3rem; }
.ng-step { margin-bottom: 2rem; }
.ng-step.ng-disabilitato { opacity: .45; pointer-events: none; }
.ng-step h3 .ng-step-n { display: inline-flex; width: 1.6em; height: 1.6em; align-items: center;
  justify-content: center; border-radius: 50%; background: #1a1a1a; color: #fff; margin-right: .4em; font-size: .8em; }
.ng-form { display: flex; flex-direction: column; gap: .8rem; }
.ng-form label, .ng-checkout label { display: flex; flex-direction: column; gap: .25rem; font-size: .92em; }
.ng-riga2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .ng-riga2 { grid-template-columns: 1fr; } }
.ng-checkout input[type=text], .ng-checkout input[type=email], .ng-checkout input[type=tel],
.ng-checkout select, .ng-scheda input[type=date] {
  padding: .55em .7em; border: 1px solid rgba(0,0,0,.25); border-radius: 6px; font: inherit; }
.ng-modalita { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }
.ng-radio, .ng-check { flex-direction: row !important; align-items: baseline; gap: .5rem !important; cursor: pointer; }
.ng-radio small { opacity: .7; }

/* Suggerimenti indirizzo */
.ng-suggerimenti { list-style: none; margin: 0; padding: 0; border-radius: 6px; overflow: hidden; }
.ng-suggerimenti li { padding: .5em .8em; cursor: pointer; border: 1px solid rgba(0,0,0,.12); border-top: 0; background: #fff; }
.ng-suggerimenti li:first-child { border-top: 1px solid rgba(0,0,0,.12); }
.ng-suggerimenti li:hover { background: rgba(0,0,0,.05); }

/* Bottoni */
.ng-btn { display: inline-block; padding: .7em 1.6em; border: 0; border-radius: 8px;
  background: #1a1a1a; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ng-btn:disabled { opacity: .4; cursor: not-allowed; }
.ng-btn-link { background: none; color: inherit; text-decoration: underline; font-weight: 400; padding: .4em 0; }


/* Riepilogo pagamento: sempre prima del modulo Stripe. */
.ng-payment-summary { margin: 1rem 0; padding: 1rem 1.05rem; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; background: rgba(255,255,255,.86); }
.ng-payment-summary:empty { display: none; }
.ng-pay-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.ng-pay-row + .ng-pay-row { border-top: 1px solid rgba(0,0,0,.07); }
.ng-pay-row strong { white-space: nowrap; }
.ng-pay-row--total { margin-top: .25rem; padding-top: .65rem; font-size: 1.08em; font-weight: 700; }
.ng-pay-row--muted { font-size: .86em; opacity: .72; }
.ng-pay-title { font-weight: 700; margin-bottom: .35rem; }
@media (max-width: 520px) {
  .ng-pay-row { align-items: flex-start; }
  .ng-payment-summary { padding: .9rem; }
}

/* Stripe */
#ng-stripe-elements { margin: 1rem 0; }

/* Conferma */
.ng-conferma { text-align: center; padding: 3rem 0; }


/* Calendario (flatpickr) */
.ng-range-input { width: 100%; max-width: 320px; padding: .55em .7em;
  border: 1px solid rgba(0,0,0,.25); border-radius: 6px; font: inherit;
  background: #fff; cursor: pointer; }
.ng-range-input:disabled { opacity: .5; cursor: wait; }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  background: #ececec; color: #b8b8b8; text-decoration: line-through;
  border-color: transparent; cursor: not-allowed; }


/* Barra filtri catalogo */
.ng-filtri { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.25rem; }
.ng-filtri input[type=search], .ng-filtri select {
  padding: .5em .7em; border: 1px solid rgba(0,0,0,.25); border-radius: 6px; font: inherit; background: #fff; }
.ng-filtri input[type=search] { min-width: 180px; }
.ng-f-trasporto { display: inline-flex; align-items: center; gap: .4em; cursor: pointer; font-size: .92em; }
.ng-f-conta { margin-left: auto; font-size: .85em; opacity: .7; }
.ng-item { display: flex; }
.ng-item > * { flex: 1; }
.ng-griglia-singola { grid-template-columns: minmax(240px, 320px); }

/* Menu categorie [ng_categorie] */
.ng-cats { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ng-cats a { display: inline-block; padding: .35em 1em; border: 1px solid rgba(0,0,0,.2);
  border-radius: 99px; text-decoration: none; color: inherit; font-size: .92em; }
.ng-cats .ng-cat-attiva a { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.ng-cat-n { opacity: .6; }


/* Icone di stato animate (stile sweetalert, CSS puro, nessuna dipendenza) */
.ng-sa { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.2rem;
  position: relative; box-sizing: border-box; }

/* successo: cerchio verde con spunta disegnata */
.ng-sa-success { border: 4px solid #a5dc86; animation: ng-sa-pop .3s ease; }
.ng-sa-success .ng-sa-tip, .ng-sa-success .ng-sa-long {
  position: absolute; background: #5cb85c; border-radius: 3px; height: 5px; }
.ng-sa-success .ng-sa-tip  { width: 24px; left: 13px; top: 43px;
  transform: rotate(45deg); animation: ng-sa-tip .5s ease .1s both; }
.ng-sa-success .ng-sa-long { width: 42px; right: 8px; top: 36px;
  transform: rotate(-45deg); animation: ng-sa-long .6s ease .2s both; }

/* errore: cerchio rosso con X */
.ng-sa-error { border: 4px solid #f27474; animation: ng-sa-pop .3s ease; }
.ng-sa-error .ng-sa-x1, .ng-sa-error .ng-sa-x2 {
  position: absolute; width: 42px; height: 5px; background: #f27474;
  border-radius: 3px; top: 34px; left: 15px; animation: ng-sa-tip .4s ease .1s both; }
.ng-sa-error .ng-sa-x1 { transform: rotate(45deg); }
.ng-sa-error .ng-sa-x2 { transform: rotate(-45deg); }

/* attesa: anello azzurro che gira */
.ng-sa-loading { border: 4px solid #c9e2f5; }
.ng-sa-loading .ng-sa-spinner { position: absolute; inset: -4px;
  border: 4px solid transparent; border-top-color: #3fc3ee; border-radius: 50%;
  animation: ng-sa-spin .9s linear infinite; }

@keyframes ng-sa-spin { to { transform: rotate(360deg); } }
@keyframes ng-sa-pop  { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ng-sa-tip  { 0% { width: 0; opacity: 0; } 100% { opacity: 1; } }
@keyframes ng-sa-long { 0% { width: 0; opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ng-sa, .ng-sa * { animation: none !important; }
}


/* Selettore quantita' nella scheda */
.ng-qta-wrap { display: block; margin: .6rem 0 0; font-size: .95em; }
.ng-qta-wrap select { margin-left: .4em; padding: .3em .5em; border: 1px solid rgba(0,0,0,.25); border-radius: 6px; font: inherit; }

/* Area cliente "Le mie prenotazioni" */
.ng-area { max-width: 640px; }
.ng-pren { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .8rem; }
.ng-pren-testa { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ng-pren-stato { font-size: .8em; padding: .15em .8em; border-radius: 99px; background: #eee; white-space: nowrap; }
.ng-pren-confermata .ng-pren-stato { background: #d4edda; }
.ng-pren-consegnata .ng-pren-stato { background: #cce5ff; }
.ng-pren-annullata .ng-pren-stato { background: #f8d7da; }
.ng-pren-chiusa .ng-pren-stato, .ng-pren-rientrata .ng-pren-stato { background: #e9ecef; }
.ng-pren-pending .ng-pren-stato { background: #fff3cd; }
.ng-pren p { margin: .4rem 0 .6rem; }
.ng-btn-annulla { background: #fff; color: #c0392b; border: 1px solid #c0392b; font-size: .85em; }
.ng-btn-annulla:hover { background: #c0392b; color: #fff; }


/* ==================================================================
   Checkout v2: accesso a scorrimento, superficie di posa
   ================================================================== */

.ng-slide {
    overflow: hidden;
    max-height: 3000px;
    opacity: 1;
    transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}
.ng-slide.ng-chiuso {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .ng-slide { transition: none; }
}

.ng-lead { margin: 0 0 .25rem; }

.ng-separatore {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0 1rem;
    color: #8a8f98;
    font-size: .9rem;
}
.ng-separatore::before,
.ng-separatore::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: .3;
}

.ng-nota-sezione {
    margin: 1.2rem 0 .4rem;
    font-weight: 600;
    color: inherit;
}

.ng-riga3 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: .75rem;
}
@media (max-width: 560px) {
    .ng-riga3 { grid-template-columns: 1fr; }
}

.ng-terreno {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,.1);
}
.ng-superfici {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .5rem;
    margin: .75rem 0 1rem;
}
.ng-radio-off {
    opacity: .45;
    cursor: not-allowed;
}
.ng-radio-off small { display: block; }

.ng-btn-secondario {
    background: transparent;
    border: 1px solid currentColor;
}

/* ==================================================================
   Galleria della scheda articolo

   I pulsanti tondi sono azzerati a mano e scritti con specificita' alta.
   Motivo: un <button> dentro un tema WordPress eredita padding, min-width,
   font e colore dal tema, e una regola come ".entry-content button" batte
   ".ng-zoom-btn" per specificita'. Il risultato era un ovale grigio con
   l'icona invisibile. Le icone sono SVG e non glifi di testo, cosi' non
   dipendono dal font e si centrano sempre.
   ================================================================== */

.ng-media-principale { position: relative; }

.ng-scheda-media .ng-img-principale {
    width: 100%;
    height: auto;
    display: block;
    border-radius: .5rem;
    cursor: zoom-in;
}

/* --- azzeramento comune dei pulsanti tondi --- */
.ng-scheda-media .ng-zoom-btn,
.ng-lightbox .ng-lb-chiudi,
.ng-lightbox .ng-lb-prec,
.ng-lightbox .ng-lb-succ {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 50%;
    line-height: 1;
    font-size: 0;              /* niente testo: dentro ci sono solo SVG */
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s;
}
.ng-scheda-media .ng-zoom-btn > svg,
.ng-lightbox .ng-lb-chiudi > svg,
.ng-lightbox .ng-lb-prec > svg,
.ng-lightbox .ng-lb-succ > svg {
    display: block;
    flex: 0 0 auto;
}

.ng-scheda-media .ng-zoom-btn {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0,0,0,.55);
    color: #fff;
}
.ng-scheda-media .ng-zoom-btn:hover,
.ng-scheda-media .ng-zoom-btn:focus-visible {
    background-color: rgba(0,0,0,.82);
    color: #fff;
}

.ng-didascalia {
    margin: .5rem 0 0;
    font-size: .875rem;
    opacity: .75;
}

/* --- miniature --- */

.ng-galleria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: .5rem;
    margin-top: .75rem;
}
.ng-scheda-media .ng-thumb-btn {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    min-width: 0;
    border: 2px solid transparent;
    border-radius: .375rem;
    background: none;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    opacity: .75;
    transition: border-color .15s, opacity .15s;
}
.ng-scheda-media .ng-thumb-btn:hover,
.ng-scheda-media .ng-thumb-btn:focus-visible { opacity: 1; }
.ng-scheda-media .ng-thumb-btn.ng-attiva {
    border-color: currentColor;
    opacity: 1;
}
.ng-scheda-media .ng-thumb {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}

/* --- ingrandimento a schermo intero --- */

body.ng-no-scroll { overflow: hidden; }

.ng-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.92);
    touch-action: none;
}
.ng-lightbox.ng-visibile { display: flex; }

.ng-lb-area {
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ng-lightbox .ng-lb-img {
    max-width: 94vw;
    max-height: 88vh;
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform .12s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 0;
}

.ng-lightbox .ng-lb-chiudi,
.ng-lightbox .ng-lb-prec,
.ng-lightbox .ng-lb-succ {
    background-color: rgba(255,255,255,.14);
    color: #fff;
}
.ng-lightbox .ng-lb-chiudi:hover,
.ng-lightbox .ng-lb-prec:hover,
.ng-lightbox .ng-lb-succ:hover,
.ng-lightbox .ng-lb-chiudi:focus-visible,
.ng-lightbox .ng-lb-prec:focus-visible,
.ng-lightbox .ng-lb-succ:focus-visible {
    background-color: rgba(255,255,255,.3);
    color: #fff;
}

.ng-lightbox .ng-lb-chiudi { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; }
.ng-lightbox .ng-lb-prec,
.ng-lightbox .ng-lb-succ  { position: absolute; top: 50%; margin-top: -1.75rem; width: 3.5rem; height: 3.5rem; }
.ng-lightbox .ng-lb-prec  { left: 1rem; }
.ng-lightbox .ng-lb-succ  { right: 1rem; }

.ng-lb-cap,
.ng-lb-aiuto {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 0 4.5rem;
}
.ng-lb-cap   { bottom: 3.25rem; font-size: .95rem; }
.ng-lb-aiuto { bottom: 1rem; font-size: .8rem; opacity: .55; }

@media (max-width: 640px) {
    .ng-lightbox .ng-lb-prec,
    .ng-lightbox .ng-lb-succ { width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; }
    .ng-lb-aiuto { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ng-lightbox .ng-lb-img { transition: none; }
}


/* ==================================================================
   UI v3 — controlli moderni e coerenti anche senza un tema custom
   ================================================================== */
.ng-checkout,.ng-area,.ng-date-box{--ng-ink:#161a37;--ng-accent:#f0448b;--ng-line:rgba(22,26,55,.16);--ng-soft:#f7f8fb}
.ng-checkout input[type=text],.ng-checkout input[type=email],.ng-checkout input[type=tel],.ng-checkout input[type=date],
.ng-checkout select,.ng-area input[type=text],.ng-area input[type=email],.ng-area input[type=tel],.ng-area select,.ng-date-box select{
 box-sizing:border-box;width:100%;min-height:54px;padding:0 16px;border:1px solid var(--ng-line);border-radius:14px;background:#fff;color:var(--ng-ink);font:inherit
}
.ng-checkout input:focus,.ng-checkout select:focus,.ng-area input:focus,.ng-area select:focus,.ng-date-box select:focus{outline:0;border-color:var(--ng-accent);box-shadow:0 0 0 4px rgba(240,68,139,.09)}
.ng-checkout select,.ng-area select,.ng-date-box select{appearance:none;-webkit-appearance:none;padding-right:44px;background-image:linear-gradient(45deg,transparent 50%,#161a37 50%),linear-gradient(135deg,#161a37 50%,transparent 50%);background-position:calc(100% - 19px) 23px,calc(100% - 13px) 23px;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.ng-qta-wrap{display:block;margin:16px 0 0;font-size:.88rem;font-weight:750}.ng-qta-wrap select{display:block;width:100%;max-width:250px;margin:7px 0 0;min-height:54px;padding:0 44px 0 16px;border:1px solid var(--ng-line);border-radius:14px;background:#fff;font:inherit}
.ng-modalita{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:14px 0 18px}.ng-modalita .ng-radio,.ng-superfici .ng-radio{display:flex!important;align-items:flex-start!important;gap:11px!important;padding:15px 16px;border:1px solid var(--ng-line);border-radius:16px;background:#fff;line-height:1.25;cursor:pointer}.ng-radio input[type=radio]{appearance:none;-webkit-appearance:none;width:20px;height:20px;min-width:20px;margin:0;border:2px solid #a6a9b5;border-radius:50%;background:#fff}.ng-radio input[type=radio]:checked{border:6px solid var(--ng-accent)}.ng-modalita .ng-radio:has(input:checked),.ng-superfici .ng-radio:has(input:checked){border-color:var(--ng-accent);box-shadow:0 0 0 4px rgba(240,68,139,.08);background:#fffafd}.ng-radio small{display:block;margin-top:3px;color:#6b6f80;opacity:1}.ng-coupon-box{margin:20px 0 17px;padding:19px;border:1px dashed rgba(240,68,139,.4);border-radius:18px;background:#fffafd}.ng-coupon-box .ng-nota-sezione{margin:0 0 4px}.ng-coupon-field{position:relative;display:block}.ng-coupon-field:after{content:'%';position:absolute;right:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#ffd54d;color:#161a37;font-size:.78rem;font-weight:900}.ng-coupon-field input{padding-right:52px!important;text-transform:uppercase;font-weight:800;letter-spacing:.04em}.ng-area{max-width:680px}.ng-area .ng-form label{display:block;width:100%}.ng-area .ng-form input{margin-top:6px}
@media(max-width:650px){.ng-modalita{grid-template-columns:1fr}.ng-qta-wrap select{max-width:none}}


/* ==================================================================
   UI v4 — sessione cliente condivisa
   ================================================================== */
.ng-session-loading{margin:0 0 18px;padding:14px 18px;border-radius:18px;background:#f7f8fb;color:#6b6f80;font-size:.88rem}.ng-session-ok{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:15px 18px;border:1px solid rgba(35,166,95,.24);border-radius:18px;background:#f2fbf6;color:#174f32;font-size:.92rem;line-height:1.4}
.ng-session-ok b{color:#126b3d}.ng-session-change{-webkit-appearance:none;appearance:none;flex:0 0 auto;border:0;background:transparent;color:#6b6f80;text-decoration:underline;font:inherit;font-size:.82rem;cursor:pointer;padding:5px}
.ng-session-change:hover{color:#161a37}.ng-session-ok.ng-nascosto{display:none!important}
@media(max-width:620px){.ng-session-ok{align-items:flex-start;flex-direction:column;gap:7px}.ng-session-change{padding-left:0}}


/* ==================================================================
   UI v5 — catalogo progressivo 60+ articoli
   ================================================================== */
.ng-catalogo--progressivo .ng-griglia{min-height:260px}
.ng-progressive-status{display:flex;align-items:center;justify-content:center;min-height:46px;margin:18px 0 0;padding:10px 14px;border-radius:999px;background:#f7f8fb;color:#6b6f80;font-size:.82rem;font-weight:650}
.ng-progressive-status b{color:#161a37}
.ng-catalogo--progressivo .ng-item{content-visibility:auto;contain-intrinsic-size:auto 390px}
@media(max-width:720px){.ng-catalogo--progressivo .ng-griglia{min-height:220px}.ng-progressive-status{margin-top:14px}}


/* UI v5.1 — checkbox responsabilita': non deve ereditare le dimensioni jumbo
   dei normali campi form, soprattutto su Safari/mobile e con temi custom. */
.ng-checkout label.ng-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:11px!important;
}
.ng-checkout label.ng-check.ng-nascosto,
.ng-checkout label.ng-check[hidden]{display:none!important}
.ng-checkout label.ng-check > input[type="checkbox"],
.ng-checkout #ng-responsabilita{
  -webkit-appearance:none!important;
  appearance:none!important;
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  padding:0!important;
  margin:2px 0 0!important;
  border:2px solid #a6a9b5!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
  position:relative!important;
}
.ng-checkout label.ng-check > input[type="checkbox"]:checked,
.ng-checkout #ng-responsabilita:checked{
  background:var(--ng-accent)!important;
  border-color:var(--ng-accent)!important;
}
.ng-checkout label.ng-check > input[type="checkbox"]:checked::after,
.ng-checkout #ng-responsabilita:checked::after{
  content:'✓';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:13px;
  line-height:1;
  font-weight:900;
}


/* ==================================================================
   UI v5.2 — audit mobile form / documento
   ================================================================== */
.ng-checkout .ng-data-it{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.ng-riga2-documento{align-items:end}
.ng-data-help{display:flex;align-items:center;min-height:54px;margin:0;padding:0 4px;line-height:1.35}
.ng-checkout input[type="file"]{
  box-sizing:border-box;width:100%;min-height:54px;padding:7px 8px;border:1px solid var(--ng-line);border-radius:14px;background:#fff;color:var(--ng-ink);font:inherit;font-size:.9rem
}
.ng-checkout input[type="file"]::file-selector-button{
  min-height:38px;margin:0 10px 0 0;padding:0 13px;border:0;border-radius:10px;background:#f1f2f6;color:var(--ng-ink);font:inherit;font-weight:750;cursor:pointer
}
.ng-checkout input[type="file"]::-webkit-file-upload-button{
  min-height:38px;margin:0 10px 0 0;padding:0 13px;border:0;border-radius:10px;background:#f1f2f6;color:var(--ng-ink);font:inherit;font-weight:750
}
/* Anche il filtro catalogo è un checkbox: nessun tema deve trasformarlo in un controllo jumbo. */
.ng-f-trasporto > input[type="checkbox"]{
  -webkit-appearance:none;appearance:none;box-sizing:border-box;position:relative;flex:0 0 18px;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;border:2px solid #a6a9b5!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important
}
.ng-f-trasporto > input[type="checkbox"]:checked{background:#f0448b!important;border-color:#f0448b!important}
.ng-f-trasporto > input[type="checkbox"]:checked::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px;line-height:1;font-weight:900}
.ng-btn[aria-busy="true"]{cursor:wait;opacity:.62}
@media(max-width:520px){
  .ng-riga2-documento{align-items:stretch}
  .ng-data-help{min-height:0;padding:0;margin:-2px 0 3px}
  .ng-checkout input[type="file"]{font-size:.84rem}
  .flatpickr-calendar{max-width:calc(100vw - 24px)}
}


/* ==================================================================
   UI v5.3 — tappeti antitrauma + visibilita responsabilita trasporto
   ================================================================== */
.ng-extra-box{margin:20px 0;padding:18px;border:1px solid rgba(22,26,55,.12);border-radius:22px;background:linear-gradient(180deg,#fff 0%,#fafafd 100%);box-shadow:0 10px 28px rgba(22,26,55,.055)}
.ng-extra-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.ng-extra-head>div{display:flex;flex-direction:column;gap:3px}.ng-extra-head strong{font-size:1rem;color:#161a37}.ng-extra-head small{color:#6b6f80;line-height:1.35}
.ng-extra-price{flex:0 0 auto;padding:6px 10px;border-radius:999px;background:rgba(240,68,139,.10);color:#c82e70;font-size:.78rem;font-weight:800;white-space:nowrap}
.ng-extra-control{display:flex;align-items:center;justify-content:space-between;gap:16px}.ng-extra-label{font-size:.86rem;font-weight:800;color:#161a37}
.ng-stepper{display:grid;grid-template-columns:44px 58px 44px;align-items:center;border:1px solid rgba(22,26,55,.15);border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(22,26,55,.045)}
.ng-stepper button{width:44px;height:44px;border:0!important;border-radius:0!important;background:#fff!important;color:#161a37!important;font-size:1.35rem!important;font-weight:700!important;line-height:1!important;padding:0!important;margin:0!important;box-shadow:none!important;cursor:pointer}.ng-stepper button:hover,.ng-stepper button:focus{background:#f7f8fb!important;color:#f0448b!important;outline:0}
.ng-checkout .ng-stepper input[type="number"]{appearance:textfield;-moz-appearance:textfield;width:58px!important;min-width:58px!important;max-width:58px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 4px!important;border:0!important;border-left:1px solid rgba(22,26,55,.11)!important;border-right:1px solid rgba(22,26,55,.11)!important;border-radius:0!important;background:#fff!important;text-align:center!important;font-size:1rem!important;font-weight:850!important;color:#161a37!important;box-shadow:none!important}.ng-checkout .ng-stepper input[type="number"]::-webkit-inner-spin-button,.ng-checkout .ng-stepper input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.ng-extra-summary{margin:12px 0 0!important;font-size:.82rem!important}.ng-extra-summary strong{color:#161a37}
@media(max-width:520px){.ng-extra-box{padding:16px;border-radius:19px}.ng-extra-head{flex-direction:column;gap:9px}.ng-stepper{grid-template-columns:42px 54px 42px}.ng-stepper button{width:42px;height:42px}.ng-checkout .ng-stepper input[type="number"]{width:54px!important;min-width:54px!important;max-width:54px!important;height:42px!important;min-height:42px!important}}
