/* ==========================================================================
   CLICK RENTAL CAR — PRODUCT PAGE STYLES
   Versione: 4.0 — Optimized & Fixed

   Indice:
   01. Layout Core
   02. Galleria & Animazioni
   03. Info Card Sinistra & HUD Specs
   04. Tipografia & Contenuto Card Sinistra
   05. Prezzi Stagionali
   06. Sidebar: Command Center
   07. Sidebar Header
   08. Plugin: Form Labels & Step Numbers
   09. DateTime Modules: Ritiro e Consegna
   10. Cockpit Quantity Control
   11. Card Moduli: Extra & Assicurazioni
   12. Checkbox: Restituzione Luogo Differente
   13. Info Box Sedi (GPS Look)
   14. Trust Badges (Sidebar Footer)
   15. Price Preview: Riepilogo Prezzi
   16. System Alerts: Status & Errors
   17. Tasto Azione Finale
   18. Cockpit Dropdown: Sedi & Orari
   19. Tasto Mobile "Configura Noleggio"
   20. WCR Info Chip
   21. Responsive
   ========================================================================== */


/* ==========================================================================
   01. LAYOUT CORE
   ========================================================================== */

.crc-single-product-container {
    padding: 60px 0 120px;
    background: var(--bg-body);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.crc-single-car-layout {
    display: flex;
    gap: 30px;
    align-items: start;
}

.single-product .hero-main-title {
    margin: 0;
}

.single-product .hero-line-mask p {
    margin: 0;
}


/* ==========================================================================
   02. GALLERIA & ANIMAZIONI
   ========================================================================== */

.crc-car-gallery-wrapper {
    flex: 0 0 60%;
    position: relative;
}

/* Stato iniziale animazione (solo con JS attivo) */
.js-enabled .crc-car-gallery-wrapper.is-animate,
.js-enabled .wcr-mobile-anchor-wrapper.is-animate {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
}

.js-enabled .crc-booking-sidebar.is-animate {
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    will-change: transform, opacity;
}

/* Layout galleria */
.woocommerce-product-gallery {
    position: relative;
    display: flex !important;
    flex-direction: row-reverse;
    gap: 12px;
    align-items: flex-start;
}

/* Pulsante fullscreen */
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 100 !important;
    width: 44px !important;
    height: 44px !important;
    background: var(--dark) !important;
    border-color: var(--dark) !important;
    backdrop-filter: blur(10px) !important;
    color: var(--dark) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-indent: -9999px;
    transition: all 0.3s ease !important;
}

.woocommerce-product-gallery__trigger::before {
    content: "\f504" !important;
    font-family: Dashicons !important;
    text-indent: 0 !important;
    font-size: 20px !important;
    color: #fff !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.woocommerce-product-gallery__trigger:hover {
    background: var(--yellow) !important;
    transform: scale(1.1);
}

.woocommerce-product-gallery__trigger:hover::before {
    color: var(--dark) !important;
}

/* Immagine principale */
.flex-viewport {
    opacity: 1 !important;
    flex: 1;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.flex-viewport img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: contain !important;
    background: #f1f5f9;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.flex-viewport::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
    pointer-events: none;
    border-radius: 28px;
    z-index: 1;
}

.flex-viewport:hover img {
    transform: scale(1.04);
}

/* Filmstrip verticale */
.woocommerce-product-gallery ol.flex-control-nav {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    width: 72px;
    flex-shrink: 0;
}

.woocommerce-product-gallery ol.flex-control-nav li {
    width: 72px;
    height: 72px;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #111;
    flex-shrink: 0;
}

.woocommerce-product-gallery ol.flex-control-nav li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.woocommerce-product-gallery ol.flex-control-nav li img.flex-active,
.woocommerce-product-gallery ol.flex-control-nav li:hover img {
    opacity: 1;
}

.woocommerce-product-gallery ol.flex-control-nav li:hover,
.woocommerce-product-gallery ol.flex-control-nav li img.flex-active {
    border-color: var(--yellow);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

/* Indicatore attivo: linea gialla a sinistra della thumbnail */
.woocommerce-product-gallery ol.flex-control-nav li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--yellow);
    border-radius: 0 3px 3px 0;
    transition: transform 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.woocommerce-product-gallery ol.flex-control-nav li:has(img.flex-active)::before {
    transform: translateY(-50%) scaleY(1);
}


/* ==========================================================================
   03. INFO CARD SINISTRA & HUD SPECS
   ========================================================================== */

.crc-car-info-card {
    margin-top: 50px;
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
}

/* HUD Dashboard specifiche */
.crc-car-specs-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.hud-item {
    background: #0f0f0f;
    border: 1px solid #222;
    padding: 25px 15px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hud-item.is-active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hud-icon svg,
.hud-icon i {
    width: 32px;
    height: 32px;
    stroke: #444;
    color: #444;
    margin-bottom: 15px;
}

.hud-item.is-active .hud-icon svg {
    stroke: var(--yellow);
    filter: drop-shadow(0 0 8px var(--yellow));
}

.hud-label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hud-value {
    font-size: 13px;
    font-weight: 800;
    color: #888;
}

.hud-item.is-active .hud-value {
    color: #fff;
}


/* ==========================================================================
   04. TIPOGRAFIA & CONTENUTO CARD SINISTRA
   ========================================================================== */

/* Short description */
.crc-car-short-description {
    color: rgba(0, 0, 0, 0.5);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 40px;
    padding-bottom: 40px;
}

/* Titoli di sezione */
.crc-section-title {
    font-size: 11px !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin: 0 0 20px 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.crc-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
    opacity: 0.2;
}

/* Sezione descrizione full */
.crc-car-description-text {
    margin-top: 50px;
    padding-top: 50px;
}

.crc-car-description-text p {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
    margin-bottom: 20px;
}

.crc-car-description-text h3,
.crc-car-description-text h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 30px 0 10px;
}

.crc-car-description-text ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crc-car-description-text li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.crc-car-description-text li::before {
    content: '';
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--yellow);
    margin-top: 8px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.crc-car-description-text li:hover {
    background: rgba(0, 0, 0, 0.04);
    border-left-color: var(--yellow);
    transform: translateX(4px);
}

/* Sezione accessori inclusi */
.crc-included-extras-section {
    margin-top: 50px;
    padding-top: 50px;
}


/* ==========================================================================
   05. PREZZI STAGIONALI
   ========================================================================== */

.crc-seasonal-pricing-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Indicatore tariffa attuale */
.current-rate-status {
    background: var(--dark);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.status-live {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: hsf-blink 2s infinite;
}

.status-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-price .season-tag {
    font-size: 9px;
    color: var(--yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 900;
}

.status-price .price-big {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

/* Grid tariffe */
.seasonal-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.rate-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.rate-card:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.rate-card.is-active {
    border-color: var(--yellow);
    background: #fffdf0;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.1);
    z-index: 2;
}

.rate-card.is-active::after {
    content: 'ATTIVA ORA';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 8px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
}

.rate-period {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rate-season-title {
    display: inline-block;
    background: var(--primary);
    color: var(--yellow) !important;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 10px !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    box-shadow: 2px 2px 0px var(--yellow);
}

.rate-dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-tag {
    font-size: 13px;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    white-space: nowrap;
}

.date-sep {
    color: var(--primary);
    font-weight: 900;
    opacity: 0.5;
}

.rate-year {
    font-size: 10px;
    font-weight: 900;
    color: var(--gray);
    letter-spacing: 1px;
}

.rate-value {
    text-align: right;
}

.rate-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2px;
}

.rate-value strong {
    font-size: 20px;
    color: var(--primary);
    font-weight: 900;
}

.seasonal-notice {
    margin-top: 20px;
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
}


/* ==========================================================================
   06. SIDEBAR: COMMAND CENTER
   ========================================================================== */

.crc-booking-sidebar {
    flex: 0 0 40%;
    position: sticky;
    top: 130px;
}

.crc-sticky-booking-card {
    background: #171717 !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    border-radius: 40px;
    padding: 0;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Texture a punti */
.crc-sticky-booking-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}


/* ==========================================================================
   07. SIDEBAR HEADER
   ========================================================================== */

.crc-booking-card-header h3 {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 !important;
    align-items: center;
}

.action-label {
    font-size: 9px !important;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--yellow);
    letter-spacing: 3px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.product-dynamic-name {
    font-size: 27px !important;
    font-weight: 900;
    color: var(--yellow) !important;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

.product-dynamic-name span {
    color: #fff;
}

.location-label {
    font-size: 12px !important;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.header-tech-line {
    height: 1px;
    width: 100%;
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.header-connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.header-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #10b981;
}

.header-status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #10b981;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}


/* ==========================================================================
   08. PLUGIN: FORM LABELS & STEP NUMBERS
   ========================================================================== */

.single .wcr-main-label {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
}

.single .wcr-sub-label {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.wcr-step-subtitle {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    gap: 10px;
}

.wcr-step-subtitle::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.2), transparent);
    margin-left: 15px;
}

/* Step Numbers */
.wcr-step-number {
    background: var(--dark-soft) !important;
    border: 1px solid var(--yellow) !important;
    color: var(--yellow) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    font-weight: 900 !important;
}

.wcr-header.step-completed .wcr-step-number {
    background-color: var(--yellow) !important;
    color: var(--dark-soft) !important;
}

/* Cleanup WooCommerce defaults */
.product-type-car_rental .price,
.product-type-car_rental .woocommerce-product-rating,
.product-type-car_rental div.quantity:not(.wcr-quantity-step-container .quantity),
.product-type-car_rental .single_add_to_cart_button:not(.wcr-add-to-cart-wrapper .single_add_to_cart_button),
.single_add_to_cart_button,
.quantity {
    display: none !important;
}

.wcr-single-qty-display {
    color: #fff;
}

.wcr-quantity-step-container .quantity {
    display: block !important;
}

/* Padding sezioni interne booking card */
.wcr-step-config,
.wcr-step-locations,
.wcr-summary-section,
.wcr-add-to-cart-container {
    padding: 10px 20px !important;
}

/* ==========================================================================
   09. DATETIME MODULES: RITIRO E CONSEGNA (COCKPIT UNIFIED)
   ========================================================================== */

/* Griglia Principale: 2 colonne affiancate */
.wcr-grid-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* La singola Card Nera (Contenitore Ritiro o Consegna) */
.wcr-input-card {
    background: #141414 !important;
    border: 1px solid #222 !important;
    padding: 18px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.wcr-input-card:hover { 
    border-color: #444 !important; 
}

/* Stato Focus: quando l'utente clicca dentro i campi */
.wcr-input-card:focus-within {
    border-color: var(--yellow) !important;
    background: #181818 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Etichetta Tecnica Gold/Gray */
.wcr-card-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 12px !important;
}

.wcr-card-label svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
}

/* RIGA CONTENITORE (Data + Ora) */
.wcr-datetime-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Proporzioni: Data (65%) e Orario (35%) */
.wcr-date-input-wrapper {
    flex: 0 0 65% !important;
    min-width: 0 !important;
}

.wcr-time-select-wrapper {
    flex: 0 0 35% !important;
    min-width: 80px !important;
}

/* INPUT FISICI (Stile Unificato tra Home e Prodotto) */
.wcr-date-picker-input, 
.wcr-flat-input-select,
.wcr-main-select {
    width: 100% !important;
    height: 50px !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

/* Select Orario: Freccia Gialla Click Rental */
.wcr-flat-input-select,
.wcr-main-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FFD700' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px !important;
    text-align: left !important;
    cursor: pointer !important;
}

/* Fix per input data cliccabile */
.wcr-date-picker-input {
    cursor: pointer !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE TABLET & MOBILE
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .wcr-grid-layout {
        grid-template-columns: 1fr !important; /* Stack verticale */
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .wcr-datetime-row {
        gap: 8px !important;
    }
    
    .wcr-time-select-wrapper {
        flex: 0 0 42% !important; /* Leggermente più largo per orari lunghi */
    }
    
    .wcr-date-input-wrapper {
        flex: 0 0 58% !important;
    }

    /* Prevenzione Zoom iOS Safari */
    .wcr-date-picker-input, 
    .wcr-flat-input-select {
        font-size: 16px !important; 
        height: 54px !important;
    }
}


/* ==========================================================================
   10. COCKPIT QUANTITY CONTROL
   ========================================================================== */

.wcr-quantity-step-container {
    background: #141414 !important;
    border: 1px solid #222 !important;
    border-radius: 24px !important;
    padding: 25px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wcr-quantity-step-container label {
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.wcr-quantity-control {
    display: flex;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 5px;
}

.qty-control-btn {
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    color: var(--yellow);
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.qty-control-btn:hover  { background: rgba(255, 215, 0, 0.1); transform: scale(1.1); }
.qty-control-btn:active { transform: scale(0.9); }

.qty-input-wrapper .quantity {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.qty-input-wrapper .quantity input.qty {
    width: 60px !important;
    height: 45px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    text-align: center !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif;
    -moz-appearance: textfield;
}

.qty-input-wrapper .quantity input::-webkit-outer-spin-button,
.qty-input-wrapper .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ==========================================================================
   11. CARD MODULI: EXTRA & ASSICURAZIONI (VERSIONE COCKPIT 5.0)
   ========================================================================== */

/* Input reali nascosti: gestiscono la logica ma non si vedono */
.wcr-insurance-real-input,
.wcr-service-check,
#wcr_under_25_fee.wcr-insurance-real-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* La Card Principale (Label) */
.wcr-insurance-box {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 30px 20px 20px 20px !important; /* Aumentato padding top per far spazio al chip */
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 18px !important;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative; /* Necessario per il posizionamento assoluto del chip */
    overflow: hidden;
    will-change: transform, background, border-color;
}

/* --- IL CHIP INFORMATIVO (Dettagli in alto a destra) --- */
.wcr-info-chip {
    position: absolute !important;
    top: 5px;      /* Posizionato millimetricamente in alto */
    right: 10px;    /* Posizionato millimetricamente a destra */
    margin: 0 !important;
    z-index: 10;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 215, 0, 0.1) !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    height: auto !important;
}

.wcr-info-chip:hover {
    background: var(--primary) !important;
    border-color: var(--yellow) !important;
}

.wcr-info-chip-label {
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
}

.wcr-info-chip:hover .wcr-info-chip-label {
    opacity: 1;
    color: var(--white);
}

/* Selettore tondo/quadrato (Il pallino a sinistra) */
.wcr-ins-selector {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 2px solid #444 !important;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

/* Variante squadrata per i servizi (checkbox) */
.wcr-service-check + .wcr-insurance-box .wcr-ins-selector {
    border-radius: 6px;
}

/* Icona dell'elemento */
.wcr-ins-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcr-ins-icon svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #626262;
    transition: all 0.3s ease;
}

.wcr-icon-svg {
    width: 28px!important;
    height: 28px!important;
}

/* Contenitore Testi (Titolo e Descrizione) */
.wcr-ins-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcr-ins-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.wcr-ins-description {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 11px !important;
    margin: 4px 0 0 0 !important;
    line-height: 1.4;
    font-weight: 500;
}

/* Blocco Prezzo a destra */
.wcr-ins-price-tag {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-left: 15px;
    margin: 10px 0 0 0;
}

.wcr-ins-amount {
    color: var(--yellow) !important;
    font-weight: 900 !important;
    font-size: 17px !important;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.wcr-ins-unit {
    display: block;
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 8px !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* --- STATI INTERATTIVI --- */

/* Hover sulla Card */
.wcr-insurance-box:hover {
    background: #222 !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    transform: translateY(-3px);
}

.wcr-insurance-box:hover .wcr-ins-icon svg {
    stroke: #fff;
    transform: scale(1.1);
}

/* Stato Selezionato (Checked) */
.wcr-insurance-real-input:checked + .wcr-insurance-box,
#wcr_under_25_fee:checked + .wcr-insurance-box {
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%) !important;
    border-color: var(--yellow) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05) !important;
}

.wcr-insurance-real-input:checked + .wcr-insurance-box .wcr-ins-selector,
#wcr_under_25_fee:checked + .wcr-insurance-box .wcr-ins-selector {
    background-color: var(--yellow) !important;
    border-color: var(--yellow) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23181818' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    box-shadow: 0 0 15px var(--yellow);
}

.wcr-insurance-real-input:checked + .wcr-insurance-box .wcr-ins-icon svg {
    stroke: var(--yellow);
}

/* --- OTTIMIZZAZIONE MOBILE --- */
@media (max-width: 600px) {
    .wcr-insurance-box {
        padding: 35px 15px 15px 15px !important; /* Più spazio in alto su mobile */
    }

    .wcr-info-chip-label {
        display: none; /* Nasconde la scritta "Dettagli" per risparmiare spazio */
    }

    .wcr-info-chip {
        padding: 5px !important; /* Diventa un quadratino con solo l'icona "i" */
        border-radius: 6px !important;
    }

    .wcr-ins-title {
        font-size: 13px !important;
    }

    .wcr-ins-price-tag {
        padding-left: 10px;
    }
}

/* ==========================================================================
   12. CHECKBOX: RESTITUZIONE LUOGO DIFFERENTE
   ========================================================================== */

.wcr-checkbox-wrapper {
    margin: 15px 0 20px;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    padding: 0 !important;
    border-radius: 18px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative;
    overflow: hidden;
}

.wcr-checkbox-wrapper label {
    display: block !important;
    padding: 22px !important;
    cursor: pointer !important;
    width: 100%;
}

#wcr_diff_dropoff {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wcr-checkbox-wrapper span {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcr-checkbox-wrapper span::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #444 !important;
    border-radius: 6px;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wcr-checkbox-wrapper:hover {
    background: #222 !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.wcr-checkbox-wrapper:hover span {
    color: var(--yellow) !important;
}

.wcr-checkbox-wrapper:has(#wcr_diff_dropoff:checked) {
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%) !important;
    border-color: var(--yellow) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05) !important;
    transform: scale(1.02);
}

#wcr_diff_dropoff:checked + span::before {
    background-color: var(--yellow) !important;
    border-color: var(--yellow) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23181818' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 0 15px var(--yellow);
}


/* ==========================================================================
   13. INFO BOX SEDI (GPS LOOK)
   ========================================================================== */

.wcr-loc-mini-info {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 50, 113, 0.15);
    border-left: 3px solid var(--primary);
    border-radius: 15px;
    animation: slideDownInfo 0.4s ease forwards;
}

.wcr-loc-mini-info:hover {
    background: rgba(0, 50, 113, 0.2);
    border-color: var(--yellow);
    transition: all 0.3s ease;
}

.wcr-loc-address {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.wcr-loc-label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.wcr-loc-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
}

.wcr-loc-mini-info strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcr-loc-mini-info em {
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
    font-size: 12px;
    display: block;
}

.wcr-loc-mini-info img.emoji {
    width: 14px !important;
    height: 14px !important;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes slideDownInfo {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   14. TRUST BADGES (SIDEBAR FOOTER)
   ========================================================================== */

.crc-booking-card-footer {
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 25px 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.trust-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.trust-badge:hover .badge-icon-wrap {
    border-color: var(--yellow);
    background: rgba(255, 215, 0, 0.05);
}

.badge-icon-wrap {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-icon-wrap img.emoji {
    width: 18px !important;
    height: 18px !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.badge-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.badge-txt strong {
    font-size: 10px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-txt span {
    font-size: 8.5px !important;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* ==========================================================================
   15. PRICE PREVIEW: RIEPILOGO PREZZI
   ========================================================================== */

/* Placeholder — stili specifici del plugin possono essere aggiunti qui */


/* ==========================================================================
   16. SYSTEM ALERTS: STATUS & ERRORS
   ========================================================================== */

.wcr-availability-status {
    margin-top: 20px;
    padding: 18px 25px;
    border-radius: 15px;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    animation: statusPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wcr-availability-status.status-error {
    background: rgba(236, 25, 32, 0.1) !important;
    border: 1px solid var(--red) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(236, 25, 32, 0.2), inset 0 0 10px rgba(236, 25, 32, 0.1);
    position: relative;
    overflow: hidden;
    animation: statusPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), errorShake 0.4s linear 0.4s;
}

.wcr-availability-status.status-error::before {
    content: '⚠️';
    font-size: 16px;
    filter: drop-shadow(0 0 5px var(--red));
}

.wcr-availability-status.status-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.wcr-availability-status.status-success::before {
    content: '✓';
    font-weight: 900;
    color: #10b981;
    font-size: 16px;
}

@keyframes statusPopIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    50%       { transform: translateX(5px); }
    75%       { transform: translateX(-5px); }
}


/* ==========================================================================
   17. TASTO AZIONE FINALE (START ENGINE)
   ========================================================================== */

.wcr-add-to-cart-wrapper .single_add_to_cart_button {
    background-color: var(--yellow) !important;
    color: var(--dark) !important;
    height: 80px !important;
    border-radius: 20px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    animation: wcr-pulse-infinite 2s infinite !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
}

@keyframes wcr-hover-glow {
    0%   { box-shadow: 0 10px 30px rgba(255, 180, 0, 0.4); transform: scale(1.04) translateY(-2px); }
    50%  { box-shadow: 0 15px 40px rgba(255, 180, 0, 0.75); transform: scale(1.06) translateY(-4px); }
    100% { box-shadow: 0 10px 30px rgba(255, 180, 0, 0.4); transform: scale(1.04) translateY(-2px); }
}

.wcr-add-to-cart-wrapper .single_add_to_cart_button:hover {
    animation: wcr-hover-glow 1.2s ease-in-out infinite !important;
    background: linear-gradient(135deg, #ffe033 0%, #ffc200 100%) !important;
    letter-spacing: 3px !important;
    transition: 
        background 0.3s ease,
        letter-spacing 0.3s ease !important;
}

/* ==========================================================================
   18. COCKPIT DROPDOWN: SEDI & ORARI
   ========================================================================== */

.wcr-main-select {
    appearance: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #181818 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FFD700' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 14px !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 18px !important;
    height: 65px !important;
    padding: 0 50px 0 25px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

.wcr-main-select:hover { border-color: var(--yellow) !important; background-color: #222 !important; box-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }
.wcr-main-select:focus { border-color: var(--yellow) !important; box-shadow: 0 0 25px rgba(255, 215, 0, 0.2); }

.wcr-main-select option {
    background: #181818;
    color: #fff;
    padding: 15px;
    font-weight: 600;
}

/* Input data */
.wcr-date-picker-input {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    flex: 1.6;
    width: 100%;
    transition: all 0.3s ease;
    outline: none !important;
    -webkit-appearance: none;
}

/* Select ora */
.wcr-flat-input-select {
    appearance: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #1a1a1a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FFD700' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 11px !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    height: 48px !important;
    border-radius: 12px !important;
    padding: 0 35px 0 15px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none !important;
    color-scheme: dark;
}

.wcr-flat-input-select:hover    { border-color: var(--yellow) !important; background-color: #222 !important; }
.wcr-flat-input-select:focus    { border-color: var(--yellow) !important; box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); }
.wcr-flat-input-select:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(1); }

.wcr-flat-input-select option {
    background: #181818;
    color: #fff;
}


/* ==========================================================================
   19. TASTO MOBILE "CONFIGURA NOLEGGIO"
   ========================================================================== */

/* Nascosto di default su desktop */
.wcr-mobile-anchor-wrapper {
    display: none;
}

@keyframes pulse-attention {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); box-shadow: 0 15px 45px rgba(255, 215, 0, 0.6); }
    100% { transform: scale(1); }
}


/* ==========================================================================
   20. WCR INFO CHIP
   ========================================================================== */

.wcr-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    margin-left: 10px;
    user-select: none;
}

.wcr-info-chip-icon svg {
    width: 14px;
    height: 14px;
    color: var(--yellow);
    display: block;
}

.wcr-info-chip-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wcr-info-chip-led {
    width: 4px;
    height: 4px;
    background: var(--yellow);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--yellow);
    opacity: 0.5;
}

.wcr-info-chip:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--yellow);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wcr-info-chip:hover .wcr-info-chip-label {
    color: var(--white);
}

.wcr-info-chip:hover .wcr-info-chip-led {
    opacity: 1;
    animation: wcr-led-blink 0.8s infinite;
}

@keyframes wcr-led-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.5); }
}


/* Stile Link Termini nella Sidebar */
.wcr-sidebar-terms-link-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
}

.wcr-sidebar-terms-link-wrapper a {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wcr-sidebar-terms-link-wrapper a .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--yellow);
}

.wcr-sidebar-terms-link-wrapper a:hover {
    color: var(--yellow) !important;
    transform: translateY(-1px);
}

/* Fix per assicurarci che il modale sia leggibile sopra lo sfondo scuro della pagina */
.wcr-modal-content.modal-type-info {
    border-radius: 30px !important;
    border: 2px solid var(--yellow) !important;
}

/* Box Fast Track nella colonna sinistra */
.wcr-info-card-fast-track {
    background: #f0f7ff; /* Un blu molto tenue, rassicurante */
    border: 1px solid #d0e3ff;
    border-left: 5px solid var(--primary);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.ft-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ft-visual .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.ft-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.ft-text p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.ft-text strong {
    color: var(--yellow);
}

.ft-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 9px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Ottimizzazione Mobile */
@media (max-width: 768px) {
    .wcr-info-card-fast-track {
        flex-direction: column;
        text-align: center;
        padding-top: 35px;
    }
    .ft-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Fix sticky bar product — DESKTOP */
.wcr-sticky-active .f-progress-wrap {
    bottom: 190px;
    transition: bottom 0.4s ease;
}

.wcr-sticky-active .f-wa-floating {
    bottom: 120px;
    transition: bottom 0.4s ease;
}

/* Fix sticky bar product — MOBILE */
@media (max-width: 768px) {
    .wcr-sticky-active .f-progress-wrap {
        bottom: 155px; /* barra mobile ~80px + margine ridotto */
    }

    .wcr-sticky-active .f-wa-floating {
        bottom: 90px; /* barra mobile ~80px + 10px margine */
    }
}

/* Se il box finisce nella sidebar (sfondo scuro) */
.crc-sticky-booking-card .wcr-info-card-fast-track {
    background: rgba(255, 255, 255, 0.03); /* Sfondo quasi trasparente */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Bordo oro delicato */
    border-left: 4px solid var(--yellow);
    margin: 20px; /* Margine per non toccare i bordi della card nera */
}

.crc-sticky-booking-card .wcr-info-card-fast-track h4 {
    color: var(--yellow); /* Titolo in giallo per risaltare */
}

.crc-sticky-booking-card .wcr-info-card-fast-track p {
    color: rgba(255, 255, 255, 0.6); /* Testo grigio chiaro leggibile */
}

.crc-sticky-booking-card .wcr-info-card-fast-track .dashicons {
    color: var(--yellow);
}

/* Tooltip per Orari Disabilitati */
.wcr-time-select-wrapper {
    position: relative;
}

/* Forza il wrapper a ricevere i click anche se dentro è tutto disabilitato */
.wcr-time-select-wrapper:has(select:disabled) {
    cursor: not-allowed;
}

/* Disabilita i pointer-events sul select quando è spento, 
   così il click "cade" sul wrapper e il JS lo sente */
.wcr-time-select-wrapper select:disabled {
    pointer-events: none;
}

.wcr-disabled-notice {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0%;
    transform: translateX(-50%) translateY(10px);
    
    /* Impedisce di uscire dal contenitore padre */
    max-width: 250px;
    white-space: normal;  /* <-- permette il testo a capo invece di nowrap */
    text-align: center;
    
    background: #003271; 
    color: #FFD700;    
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99999;
    border: 2px solid #FFD700;
}

/* La freccetta segue il centro */
.wcr-disabled-notice::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #FFD700 transparent transparent transparent;
}

.wcr-disabled-notice.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* --- SISTEMA FEEDBACK ERRORI BOOKING --- */

/* Classe di errore per le card di input (Sedi e Date) */
.wcr-input-card.wcr-field-error {
    border-color: #ec1920 !important; /* Rosso brand */
    background: rgba(236, 25, 32, 0.05) !important;
    box-shadow: 0 0 15px rgba(236, 25, 32, 0.2) !important;
}

/* Animazione Shake (Vibrazione) */
.wcr-shake-anim {
    animation: wcr-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes wcr-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Stato "Waiting" per il box dei messaggi */
.wcr-availability-status.status-waiting {
    background: rgba(255, 215, 0, 0.1) !important;
    border: 1px dashed var(--yellow) !important;
    color: #fff !important;
}

.wcr-availability-status.status-waiting::before {
    content: '📍';
    font-size: 16px;
    animation: hsf-pulse 2s infinite;
}

/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */

/* --- Tablet landscape: menu compatto --- */
@media (max-width: 1400px) and (min-width: 1151px) {
    .main-navigation li a {
        font-size: 12px !important;
        padding: 10px 12px !important;
        letter-spacing: 0.5px !important;
    }

    .main-navigation ul li:last-child a {
        padding: 10px 20px !important;
        margin-left: 10px !important;
    }

    .custom-logo-link img {
        max-height: 55px !important;
    }
}

/* --- 1350px: trust badge a colonna singola --- */
@media (max-width: 1350px) {
    .trust-badge-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 1200px: layout verticale e tasto mobile sticky --- */
@media (max-width: 1200px) {

    .pswp__button--close {
        top: 70px !important;
        right: -24px !important;
    }

    .crc-single-car-layout {
        flex-direction: column;
    }

    .crc-car-main-content {
        order: 1;
        width: 100%;
    }

    .crc-car-gallery-wrapper {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .flex-viewport img {
        aspect-ratio: 3 / 2;
        max-height: 400px;
    }

    .crc-booking-sidebar {
        order: 2;
        flex-basis: 100%;
        width: 100%;
        position: relative;
        top: 0;
        margin-top: 40px;
        /* FIX: margine bottom aumentato per non finire sotto il tasto sticky */
        margin-bottom: 80px;
    }

    /* FIX: hero lead text visibile tutta su mobile — reset animazione se JS non avvia */
    .hero-lead-text {
        overflow: visible !important;
    }

    .js-enabled .hero-lead-text.is-animate {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }

    /* RIMOSSO position:fixed — il wrapper ora è nel flusso normale */
    .wcr-mobile-anchor-wrapper {
        display: block;
        position: static;       /* ← torna nel flusso */
        width: 100%;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
        box-sizing: border-box;
    }

    /* Annulla gli stati JS (is-sticky, body.at-bottom) su desktop */
    .wcr-mobile-anchor-wrapper.is-sticky,
    body.at-bottom .wcr-mobile-anchor-wrapper {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .wcr-mobile-anchor-wrapper #wcr-jump-to-config {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        height: 60px;
        font-size: 16px;
        font-weight: 900;
        border-radius: 18px;   /* FIX: arrotondato perché ora è staccato dal bordo */
        text-transform: uppercase;
        letter-spacing: 1px;
        background: var(--yellow);
        color: var(--dark);
        border: none;
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35);
        animation: pulse-attention 2s infinite ease-in-out;
        cursor: pointer;
    }

    .crc-hero-master {
        min-height: auto !important;
        padding: 115px 0 20px !important;
    }
}

/* --- 768px: galleria verticale, datetime a colonna singola, card info compatta --- */
@media (max-width: 768px) {

    /* Galleria: thumbnail orizzontali */
    .woocommerce-product-gallery {
        flex-direction: column !important;
    }

    .woocommerce-product-gallery ol.flex-control-nav {
        flex-direction: row !important;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px !important;
    }

    .woocommerce-product-gallery ol.flex-control-nav li {
        flex-shrink: 0;
    }

    .flex-viewport img {
        height: 280px;
    }

    .woocommerce-product-gallery__trigger {
        top: 15px !important;
        right: 15px !important;
        width: 38px !important;
        height: 38px !important;
    }

    /* Info card */
    .crc-car-info-card {
        padding: 20px;
    }

    .crc-car-short-description,
    .crc-car-description-text,
    .crc-included-extras-section {
        margin: 20px 0;
        padding: 0;
    }

    /* DateTime a colonna singola */
    .wcr-grid-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wcr-input-card {
        padding: 12px;
    }

    .wcr-main-select {
        font-size: 14px !important;
        padding-left: 15px !important;
        height: 50px !important;
    }

    .wcr-header {
        margin-bottom: 15px;
    }
}

/* --- 600px: HUD 2 colonne, booking card ottimizzata, assicurazioni compatte --- */
@media (max-width: 600px) {


    .crc-single-product-container {
        margin-top: -25px;
    }

    /* HUD */
    .crc-car-specs-hud {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hud-item {
        padding: 20px 10px;
    }

    .hud-icon svg {
        width: 24px;
        height: 24px;
        margin-bottom: 10px;
    }

    /* Booking card */
    .crc-sticky-booking-card {
        border-radius: 24px;
        padding: 6px;
    }

    .wcr-step-config,
    .wcr-step-locations,
    .wcr-summary-section,
    .wcr-add-to-cart-container {
        padding: 8px 14px !important;
    }

    .crc-booking-card-footer {
        padding: 18px 16px !important;
    }

    /* Assicurazioni: nascondi icona per guadagnare spazio */
    .wcr-insurance-box {
        padding: 14px !important;
        gap: 12px;
    }

    .wcr-ins-icon {
        display: none;
    }

    .wcr-ins-title       { font-size: 13px !important; }
    .wcr-ins-amount      { font-size: 15px !important; }
    .wcr-ins-description { font-size: 10px !important; }

    .wcr-ins-price-tag {
        border-left: none;
        padding-left: 0;
    }

    /* Totale */
    .wcr-total-amount {
        font-size: 36px !important;
        letter-spacing: -1px;
    }

    .wcr-total-label {
        font-size: 20px;
    }

    .wcr-total-display {
        gap: 10px;
    }

    #wcr-final-price-value {
        font-size: 34px !important;
    }

    /* Trust badges */
    .trust-badge-grid {
        grid-template-columns: 1fr;
    }

    /* Prezzi stagionali */
    .rate-card {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rate-value {
        text-align: left;
    }

    .rate-value strong {
        font-size: 17px;
    }

    /* Tariffa attuale */
    .current-rate-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .status-price {
        align-items: flex-start;
    }

    .status-price .price-big {
        font-size: 26px;
    }
}