/**
 * auction-detail-v3.css — Scheda Veicolo V3 (Override su Base V2/Base AC)
 * Caricato DOPO /public/auction-detail-base.css per le pagine e il modale V3.
 * Contiene ESCLUSIVAMENTE gli override e le feature specifiche della V3.
 */

/* ==========================================================================
   1. GALLERY FOTOGRAFICA: NESSUNO ZOOM SU HOVER E FRECCE AUTO-HIDE
   ========================================================================== */
.auction-v3-wrapper .ac-detail-gallery-main-frame,
.auction-v3-wrapper .v2-gallery-main-frame {
    cursor: pointer;
}
.auction-v3-wrapper .ac-detail-gallery-main-img,
.auction-v3-wrapper .v2-gallery-main-img {
    z-index: 1;
    will-change: transform;
}
.auction-v3-wrapper .ac-detail-gallery-main-frame:hover .ac-detail-gallery-main-img:not(.ac-slide-incoming),
.auction-v3-wrapper .v2-gallery-main-frame:hover .v2-gallery-main-img:not(.ac-slide-incoming) {
    transform: none;
}

/* Badge superiori V3 compatti. I controlli inferiori mantengono le misure
   della galleria originale, così “Tutto schermo” e il contatore foto non
   risultano schiacciati. */
.auction-v3-wrapper .ac-detail-gallery-badge-status,
.auction-v3-wrapper .ac-detail-gallery-views-overlay {
    box-sizing: border-box;
    height: 26px;
    min-height: 26px;
    padding-block: 4px;
}

/* Frecce navigazione gallery: invisibili su desktop di default, visibili solo all'hover del frame */
.auction-v3-wrapper .ac-detail-gallery-nav-arrow,
.auction-v3-wrapper .v2-gallery-nav-arrow {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.auction-v3-wrapper .ac-detail-gallery-main-frame:hover .ac-detail-gallery-nav-arrow,
.auction-v3-wrapper .v2-gallery-main-frame:hover .v2-gallery-nav-arrow,
.auction-v3-wrapper .ac-detail-gallery-nav-arrow:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1.08);
}
@media (max-width: 768px) {
    .auction-v3-wrapper .ac-detail-gallery-nav-arrow,
    .auction-v3-wrapper .v2-gallery-nav-arrow {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ==========================================================================
   2. COUNTDOWN DIGITALE RETRO-ILLUMINATO V1 (ORANGE/GOLD GLOW)
   ========================================================================== */
@font-face {
    font-family: 'Digital';
    src: url('/public/fonts/digital-7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Riquadro countdown V3 */
.auction-v3-wrapper .ac-detail-countdown-tile,
.auction-v3-wrapper .v2-countdown-tile,
.auction-modal-overlay--v3 .ac-detail-countdown-tile {
    padding: 8px 4px 6px;
    border-radius: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Numero digitale countdown V3: Tutte le cifre grandi e uniformi (32px desktop, 26px mobile) */
.auction-v3-wrapper .ac-detail-tile-number,
.auction-v3-wrapper #acDays,
.auction-v3-wrapper #acHours,
.auction-v3-wrapper #acMins,
.auction-v3-wrapper #acSecs,
.auction-v3-wrapper #v2Days,
.auction-v3-wrapper #v2Hours,
.auction-v3-wrapper #v2Mins,
.auction-v3-wrapper #v2Secs,
.ac-detail-wrapper.auction-v3-wrapper .ac-detail-tile-number,
.ac-detail-wrapper.auction-v3-wrapper #acDays,
.ac-detail-wrapper.auction-v3-wrapper #acHours,
.ac-detail-wrapper.auction-v3-wrapper #acMins,
.ac-detail-wrapper.auction-v3-wrapper #acSecs,
.auction-modal-overlay--v3 .ac-detail-tile-number,
.auction-modal-overlay--v3 #acDays,
.auction-modal-overlay--v3 #acHours,
.auction-modal-overlay--v3 #acMins,
.auction-modal-overlay--v3 #acSecs,
.auction-modal-overlay--v3 #v2Days,
.auction-modal-overlay--v3 #v2Hours,
.auction-modal-overlay--v3 #v2Mins,
.auction-modal-overlay--v3 #v2Secs {
    font-family: 'Digital', 'Courier New', monospace !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
    font-variant-numeric: tabular-nums;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
}

@media (max-width: 768px) {
    .auction-v3-wrapper .ac-detail-tile-number,
    .auction-v3-wrapper #acDays,
    .auction-v3-wrapper #acHours,
    .auction-v3-wrapper #acMins,
    .auction-v3-wrapper #acSecs,
    .ac-detail-wrapper.auction-v3-wrapper .ac-detail-tile-number,
    .auction-modal-overlay--v3 .ac-detail-tile-number,
    .auction-modal-overlay--v3 #acDays,
    .auction-modal-overlay--v3 #acHours,
    .auction-modal-overlay--v3 #acMins,
    .auction-modal-overlay--v3 #acSecs {
        font-size: 26px !important;
        letter-spacing: 1px !important;
    }
}

/* Tema Dark V3: arancio oro caldo con bagliore */
.auction-v3-wrapper .ac-detail-container.theme-dark .ac-detail-tile-number,
.auction-v3-wrapper .ac-detail-container.theme-dark .v2-tile-number,
.auction-v3-wrapper .theme-dark .ac-detail-tile-number,
.auction-v3-wrapper .theme-dark .v2-tile-number,
.auction-modal-overlay--v3 .ac-detail-container.theme-dark .ac-detail-tile-number,
.auction-modal-overlay--v3 .theme-dark .ac-detail-tile-number {
    color: #f59e0b !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
}

/* Tema Light V3: blu navy AstaCerta, più leggibile su fondo chiaro */
.auction-v3-wrapper .ac-detail-container.theme-light .ac-detail-tile-number,
.auction-v3-wrapper .ac-detail-container.theme-light .v2-tile-number,
.auction-v3-wrapper .theme-light .ac-detail-tile-number,
.auction-v3-wrapper .theme-light .v2-tile-number,
.auction-modal-overlay--v3 .ac-detail-container.theme-light .ac-detail-tile-number,
.auction-modal-overlay--v3 .theme-light .ac-detail-tile-number {
    color: #071d36 !important;
    text-shadow: none !important;
}

/* Pulsante Toggle Dark/Light nella meta row (solo Modale V3) */
.ac-detail-btn-theme-toggle--meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    height: 26px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    margin-left: 4px !important;
}
.ac-detail-btn-theme-toggle--meta .material-icons-outlined {
    font-size: 14px !important;
}
.theme-dark .ac-detail-btn-theme-toggle--meta {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
}
.theme-dark .ac-detail-btn-theme-toggle--meta:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}
.theme-light .ac-detail-btn-theme-toggle--meta {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.theme-light .ac-detail-btn-theme-toggle--meta:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}


/* ==========================================================================
   3. MODALE FULLSCREEN V3 DA CATALOGO (/aste/)
   ========================================================================== */
.auction-modal-overlay.auction-modal-overlay--v3 {
    background: #080e18;
    padding: 0 !important;
    align-items: center;
    justify-content: flex-start;
}
.auction-modal-overlay.auction-modal-overlay--v3.theme-light,
.auction-modal-overlay.auction-modal-overlay--v3:has(.theme-light),
#auction-fullscreen-modal.theme-light,
body.theme-light .auction-modal-overlay.auction-modal-overlay--v3 {
    background: #ffffff !important;
}
.auction-v3-wrapper.theme-light,
body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper.theme-light,
body.ac-detail-active.theme-light,
body.ac-detail-active:has(.auction-v3-wrapper.theme-light) {
    background: #ffffff !important;
}
.auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-wrapper,
.auction-modal-overlay.auction-modal-overlay--v3 .auction-v2-wrapper {
    flex-shrink: 0;
    min-height: auto;
    padding: 0;
    background: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible !important;
}
.auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-container,
.auction-modal-overlay.auction-modal-overlay--v3 .auction-v2-container {
    margin: 0 auto;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    overflow: visible !important;
}
.auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-header,
.auction-modal-overlay.auction-modal-overlay--v3 .v2-header {
    border-radius: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ==========================================================================
   5. RESPONSIVE / MODALE FULL WIDTH PER SCHERMI MOBILI (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .auction-modal-overlay.auction-modal-overlay--v3 {
        padding: 0 !important;
    }
    .auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-wrapper,
    .auction-modal-overlay.auction-modal-overlay--v3 .auction-v2-wrapper {
        padding: 0 !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    .auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-container,
    .auction-modal-overlay.auction-modal-overlay--v3 .auction-v2-container {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    .auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-container.theme-light .ac-detail-body-container {
        background: transparent !important;
    }
    .auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-header,
    .auction-modal-overlay.auction-modal-overlay--v3 .v2-header {
        border-radius: 0 !important;
    }
    .auction-modal-overlay.auction-modal-overlay--v3 .ac-detail-title,
    .auction-modal-overlay.auction-modal-overlay--v3 .v2-title {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .auction-v3-wrapper .ac-detail-countdown-tile .ac-detail-tile-number,
    .auction-v3-wrapper .v2-countdown-tile .v2-tile-number {
        font-size: 26px !important;
    }
}

/* ==========================================================================
   6. TITOLO E SFONDO AZIONI (PREFERITI/AVVISO/CONDIVIDI)
   ========================================================================== */
.auction-modal-overlay--v3 .ac-detail-title,
.auction-modal-overlay--v3 .v2-title {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* Sfondo scuro omogeneo per il blocco 3 icone nel modale e in SSR */
.ac-detail-container.theme-dark .ac-detail-modal-desc-actions,
.ac-detail-container.theme-dark .modal-desc-actions,
.ac-detail-container.theme-dark .v2-modal-desc-actions,
.auction-v2-container.theme-dark .v2-modal-desc-actions,
.auction-v2-container.theme-dark .modal-desc-actions,
.auction-modal-overlay--v3 .theme-dark .ac-detail-modal-desc-actions,
.auction-modal-overlay--v3 .theme-dark .modal-desc-actions,
.auction-modal-overlay--v3 .theme-dark .v2-modal-desc-actions {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}
.ac-detail-container.theme-dark .ac-detail-modal-desc-actions .btn-card-action,
.ac-detail-container.theme-dark .modal-desc-actions .btn-card-action,
.ac-detail-container.theme-dark .v2-modal-desc-actions .btn-card-action,
.auction-v2-container.theme-dark .v2-modal-desc-actions .btn-card-action,
.auction-v2-container.theme-dark .modal-desc-actions .btn-card-action,
.auction-modal-overlay--v3 .theme-dark .ac-detail-modal-desc-actions .btn-card-action,
.auction-modal-overlay--v3 .theme-dark .modal-desc-actions .btn-card-action,
.auction-modal-overlay--v3 .theme-dark .v2-modal-desc-actions .btn-card-action {
    background: transparent !important;
}

/* 1. Preferiti: Rosso Fuoco vivido */
.ac-detail-modal-desc-actions .btn-preferito,
.modal-desc-actions .btn-preferito,
.ac-detail-btn-preferito {
    color: #ef4444 !important;
}
.ac-detail-modal-desc-actions .btn-preferito .material-icons-outlined,
.modal-desc-actions .btn-preferito .material-icons-outlined,
.ac-detail-modal-desc-actions .btn-preferito .heart-icon,
.modal-desc-actions .btn-preferito .heart-icon {
    color: #ef4444 !important;
}
.ac-detail-modal-desc-actions .btn-preferito:hover,
.modal-desc-actions .btn-preferito:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    transform: scale(1.12);
}
.ac-detail-modal-desc-actions .btn-preferito.is-saved,
.modal-desc-actions .btn-preferito.is-saved {
    background: rgba(239, 68, 68, 0.2) !important;
}

/* 2. Campanella Avviso: Arancio Ambra vivido */
.ac-detail-modal-desc-actions .btn-avviso,
.modal-desc-actions .btn-avviso,
.ac-detail-btn-avviso {
    color: #f59e0b !important;
}
.ac-detail-modal-desc-actions .btn-avviso .material-icons-outlined,
.modal-desc-actions .btn-avviso .material-icons-outlined {
    color: #f59e0b !important;
}
.ac-detail-modal-desc-actions .btn-avviso:hover,
.modal-desc-actions .btn-avviso:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    transform: scale(1.12);
}

/* 3. Condividi: Azzurro / Blu Elettrico vivido */
.ac-detail-modal-desc-actions .btn-condividi,
.modal-desc-actions .btn-condividi,
.ac-detail-btn-condividi {
    color: #0d6efd !important;
}
.ac-detail-modal-desc-actions .btn-condividi .material-icons-outlined,
.modal-desc-actions .btn-condividi .material-icons-outlined {
    color: #0d6efd !important;
}
.ac-detail-modal-desc-actions .btn-condividi:hover,
.modal-desc-actions .btn-condividi:hover {
    background: rgba(13, 110, 253, 0.15) !important;
    transform: scale(1.12);
}

/* ===========================================================================
   MAXI-LOTTO: VEICOLI COMPRESI NELL'OFFERTA
   ========================================================================== */
.ac-detail-multi-lot-block {
    padding: 0;
}
.ac-detail-bento-col-left > .ac-clean-carvertical-detail {
    width: 100%;
    margin-bottom: 0 !important;
}
@media (min-width: 769px) {
    /* La GET V3 mantiene il corpo centrale contenuto dentro un guscio leggero
       che separa la scheda dal fondo della pagina. */
    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper > .ac-detail-container {
        border: none !important;
        border-radius: 0 0 18px 18px !important;
        box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
        overflow: visible !important;
    }
    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper > .ac-detail-container.theme-light {
        border: 1px solid var(--border-subtle) !important;
    }
    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper > .ac-detail-container.theme-dark {
        /* Separazione appena visibile sul fondo navy, senza bordo bianco. */
        border: 1px solid rgba(30, 41, 59, 0.65) !important;
    }
    .auction-modal-overlay--v3 .ac-detail-container {
        max-width: none;
        width: 100%;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    /* Il modale usa già il fondo dell'overlay: il guscio esterno non deve
       aggiungere una seconda superficie grigia né una striscia arrotondata
       visibile soltanto alla fine del contenuto. Restano inalterate le card
       interne e la larghezza centrale del body. */
    .auction-modal-overlay--v3 .ac-detail-container.theme-light {
        background: #ffffff !important;
    }
    .auction-modal-overlay--v3 .ac-detail-container.theme-light .ac-detail-body-container {
        background: transparent !important;
    }
    .auction-modal-overlay--v3 .ac-detail-body-container,
    .auction-modal-overlay--v3 .ac-detail-footer-action-bar {
        width: 100%;
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Il footer è una barra separatrice di pagina: solo il corpo resta
       centrato a 1140px, il bordo del footer deve attraversare tutta la riga. */
    .auction-modal-overlay--v3 .ac-detail-footer-action-bar {
        max-width: none;
    }
}

/* Nessuna fascia vuota sotto il footer della GET V3. */
body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper {
    padding-bottom: 0 !important;
}

/* Nella GET la linea superiore del footer resta confinata al contenitore
   centrale, con il pulsante centrato al suo interno. */
body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper > .ac-detail-container > .ac-detail-footer-action-bar {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* In V3 desktop la griglia ha spazio sufficiente per tenere identificatore e
   CTA in una tile normale. La tile Documentazione (duplicata dai documenti
   ufficiali nella colonna destra) viene nascosta; mobile resta invariato. */
@media (min-width: 901px) {
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double,
    body.ac-detail-active .ac-detail-spec-tile--double {
        grid-column: auto !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 8px 10px !important;
        gap: 6px !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-spec-tile-left,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-spec-tile-left {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: visible !important;
        gap: 6px !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-spec-tile-content,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-spec-tile-content {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: visible !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-it-plate-wrapper,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-it-plate-wrapper {
        flex: 0 0 auto !important;
        width: 96px !important;
        max-width: 96px !important;
        overflow: visible !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-it-plate-svg,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-it-plate-svg {
        width: 96px !important;
        max-width: 96px !important;
        height: auto !important;
        aspect-ratio: 240 / 50 !important;
        display: block !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-spec-tile-right,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-spec-tile-right {
        display: flex !important;
        align-items: center !important;
        align-self: flex-end !important;
        margin-bottom: 2px !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-spec-cv-action-btn,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-spec-cv-action-btn {
        flex-shrink: 0 !important;
        gap: 3px !important;
        padding: 4px 7px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-spec-cv-action-icon,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-spec-cv-action-icon {
        font-size: 13px !important;
        line-height: 1 !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-spec-cv-action-arrow,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-spec-cv-action-arrow {
        font-size: 11px !important;
        line-height: 1 !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-spec-value-muted,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-spec-value-muted {
        white-space: nowrap !important;
        font-size: 12px !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--documentation,
    body.ac-detail-active .ac-detail-spec-tile--documentation {
        display: none !important;
    }
}

/* Anche la V3 mobile/tablet deve lasciare spazio reale all'identificatore:
   il vecchio width:0 del contenuto generico comprimiva la mini-targa fino a
   renderla quasi illeggibile quando il CTA era presente. */
@media (max-width: 900px) {
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-spec-tile-content,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-spec-tile-content {
        width: auto !important;
        flex: 0 1 auto !important;
        overflow: visible !important;
    }
}
@media (min-width: 481px) and (max-width: 900px) {
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-it-plate-wrapper,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-it-plate-wrapper {
        flex: 0 0 auto !important;
        width: 96px !important;
        max-width: 96px !important;
    }
    .auction-modal-overlay--v3 .ac-detail-spec-tile--double .ac-detail-it-plate-svg,
    body.ac-detail-active .ac-detail-spec-tile--double .ac-detail-it-plate-svg {
        width: 96px !important;
        max-width: 96px !important;
        height: auto !important;
        aspect-ratio: 240 / 50 !important;
    }
}
.ac-detail-multi-lot-card {
    border-radius: 18px;
    overflow: hidden;
}
.ac-detail-multi-lot-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
}
.ac-detail-multi-lot-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.ac-detail-multi-lot-title .material-icons-outlined {
    color: #0d6efd;
    font-size: 23px;
}
.ac-detail-multi-lot-subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
}
.ac-detail-multi-lot-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.ac-detail-multi-lot-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.ac-detail-multi-lot-table th,
.ac-detail-multi-lot-table td {
    padding: 12px 14px;
    vertical-align: middle;
    text-align: left;
}
.ac-detail-multi-lot-table th {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ac-detail-multi-lot-table td {
    border-top: 1px solid transparent;
}
.ac-detail-multi-lot-index {
    width: 34px;
    font-weight: 800;
}
.ac-detail-multi-lot-name {
    min-width: 195px;
    font-weight: 700;
}
.ac-detail-multi-lot-plate {
    display: inline-block;
    min-width: 52px;
    padding: 3px 7px;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: nowrap;
}
.ac-detail-multi-lot-docs {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.ac-detail-multi-lot-docs.is-present::before {
    content: '✓';
    margin-right: 4px;
}
.ac-detail-multi-lot-docs.is-absent::before {
    content: '×';
    margin-right: 4px;
}
.ac-detail-multi-lot-mobile-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    text-align: center;
}
.ac-detail-container.theme-dark .ac-detail-multi-lot-card {
    background: #0f1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.ac-detail-container.theme-dark .ac-detail-multi-lot-title { color: #ffffff; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-subtitle { color: #94a3b8; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-table th { background: rgba(255, 255, 255, 0.045); color: #94a3b8; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-table td { border-top-color: rgba(255, 255, 255, 0.07); color: #e2e8f0; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-index { color: #94a3b8; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-plate { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-docs.is-present { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-docs.is-absent { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-docs.is-unknown { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }
.ac-detail-container.theme-dark .ac-detail-multi-lot-mobile-hint { border-top: 1px solid rgba(255, 255, 255, 0.07); color: #94a3b8; }
.ac-detail-container.theme-light .ac-detail-multi-lot-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 6px 18px rgba(15, 34, 56, 0.07);
}
.ac-detail-container.theme-light .ac-detail-multi-lot-title { color: #0f2238; }
.ac-detail-container.theme-light .ac-detail-multi-lot-subtitle { color: #64748b; }
.ac-detail-container.theme-light .ac-detail-multi-lot-table th { background: #f1f5f9; color: #475569; }
.ac-detail-container.theme-light .ac-detail-multi-lot-table td { border-top-color: #e2e8f0; color: #1e293b; }
.ac-detail-container.theme-light .ac-detail-multi-lot-index { color: #94a3b8; }
.ac-detail-container.theme-light .ac-detail-multi-lot-plate { background: #f1f5f9; color: #334155; }
.ac-detail-container.theme-light .ac-detail-multi-lot-docs.is-present { background: #dcfce7; color: #15803d; }
.ac-detail-container.theme-light .ac-detail-multi-lot-docs.is-absent { background: #fee2e2; color: #b91c1c; }
.ac-detail-container.theme-light .ac-detail-multi-lot-docs.is-unknown { background: #e2e8f0; color: #475569; }
.ac-detail-container.theme-light .ac-detail-multi-lot-mobile-hint { border-top: 1px solid #e2e8f0; color: #64748b; }

@media (max-width: 768px) {
    .ac-detail-multi-lot-block { order: 3 !important; width: 100%; min-width: 0; }
    .ac-detail-bento-col-left > .ac-clean-carvertical-detail { order: 4 !important; min-width: 0; }
    .ac-detail-multi-lot-header { align-items: flex-start; flex-direction: column; gap: 4px; padding: 15px 15px 12px; }
    .ac-detail-multi-lot-title { font-size: 16px; }
    .ac-detail-multi-lot-subtitle { text-align: left; }
    .ac-detail-multi-lot-table th,
    .ac-detail-multi-lot-table td { padding: 11px 12px; }
    .ac-detail-multi-lot-mobile-hint { display: flex; }
}

/* V3 mobile: nessun guscio esterno grigio o ombreggiato. La pagina resta
   bianca in chiaro e mostra soltanto le card interne dei contenuti. */
@media (max-width: 768px) {
    body.ac-detail-active:has(.auction-v3-wrapper.theme-light),
    body.ac-detail-active.theme-light,
    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper.theme-light,
    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper.theme-light .ac-detail-body-container,
    .auction-modal-overlay--v3:has(.theme-light),
    .auction-modal-overlay--v3.theme-light {
        background: #ffffff !important;
    }

    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper,
    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper > .ac-detail-container,
    .auction-modal-overlay--v3 .ac-detail-wrapper,
    .auction-modal-overlay--v3 .ac-detail-container {
        box-shadow: none !important;
    }

    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper > .ac-detail-container {
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper.theme-light .ac-detail-container,
    body.ac-detail-active .ac-detail-wrapper.auction-v3-wrapper.theme-light .ac-detail-body-container,
    .auction-modal-overlay--v3 .ac-detail-container.theme-light,
    .auction-modal-overlay--v3 .ac-detail-container.theme-light .ac-detail-body-container {
        background: #ffffff !important;
    }
}

