/* SolarSicily Configuratore Pergole 3D — Complete Styles */
/* Generated from configuratore.html migration */

/* === Block from lines 21-59 === */
/* === ANTI-COPY PROTECTION === */
/* user-select removed — prices are server-side, no need for anti-copy */
input, textarea, select, [contenteditable] { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
/* === LOGIN SCREEN === */
#loginOverlay {
    position:fixed; inset:0; z-index:99999;
    background:linear-gradient(135deg, #0d2248 0%, #1a3a6e 50%, #0d2248 100%);
    display:flex; align-items:center; justify-content:center;
    font-family: 'Segoe UI', Arial, sans-serif;
}
#loginOverlay.hidden { display:none; }
#loginBox {
    background:#fff; border-radius:16px; padding:44px 40px 36px;
    box-shadow:0 20px 60px rgba(0,0,0,0.4); width:380px; max-width:90vw;
    text-align:center;
}
#loginBox .login-logo { width:260px; height:auto; margin-bottom:24px; border-radius:16px; background:white; padding:16px 20px; object-fit:contain; box-shadow:0 4px 24px rgba(0,0,0,0.1); }
#loginBox h2 { margin:0 0 6px; font-size:20px; color:#0d2248; font-weight:700; }
#loginBox .login-sub { font-size:12px; color:#888; margin-bottom:22px; }
#loginBox input {
    display:block; width:100%; box-sizing:border-box;
    padding:11px 14px; margin-bottom:12px; border:1.5px solid #d0d5e0;
    border-radius:8px; font-size:14px; outline:none;
    transition:border-color 0.2s;
}
#loginBox input:focus { border-color:#1a3a6e; box-shadow:0 0 0 3px rgba(26,58,110,0.12); }
#loginBox input::placeholder { color:#aab; }
#loginBtn, #regBtn {
    display:block; width:100%; padding:12px; margin-top:6px;
    background:#0d2248; color:#fff; border:none; border-radius:8px;
    font-size:15px; font-weight:600; cursor:pointer;
    transition:background 0.2s;
}
#loginBtn:hover, #regBtn:hover { background:#1a3a6e; }
#loginBtn:active, #regBtn:active { background:#091a38; }
#loginError, #regError {
    color:#c62828; font-size:12px; margin-top:10px; min-height:16px;
    transition:opacity 0.3s;
}

/* === Block from lines 63-139 === */
#modalCampata {
    display:none; position:fixed; inset:0; z-index:9999;
    background:rgba(0,0,0,0.55); align-items:center; justify-content:center;
}
#modalCampata.open { display:flex; }
#modalCampataBox {
    background:#fff; border-radius:14px; padding:28px 30px; max-width:420px; width:94%;
    box-shadow:0 8px 40px rgba(0,0,0,0.3); font-family:inherit;
}
#modalCampataBox h3 {
    margin:0 0 6px; font-size:16px; color:#0d2248;
}
#modalCampataBox .subtitle {
    font-size:12px; color:#666; margin-bottom:18px;
}
.campata-preset-grid {
    display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:14px;
}
.campata-preset-btn {
    background:#0d2248; color:#fff; border:none; border-radius:8px;
    padding:10px 6px; font-size:13px; font-weight:700; cursor:pointer;
    transition:background 0.15s;
}
.campata-preset-btn:hover { background:#E8A000; }
.campata-preset-btn:active { background:#C78A00; transform:scale(0.96); }
.campata-custom-btn {
    width:100%; background:#f1f5f9; color:#0d2248; border:2px dashed #94a3b8;
    border-radius:8px; padding:10px; font-size:13px; font-weight:600; cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:6px;
    margin-bottom:14px; transition:background 0.15s;
}
.campata-custom-btn:hover { background:#e2e8f0; }
#modalCampataCancel {
    width:100%; background:#e5e7eb; color:#374151; border:none; border-radius:8px;
    padding:10px; font-size:13px; cursor:pointer; font-weight:600;
}
#modalCampataCancel:hover { background:#d1d5db; }

/* IVA buttons */
.iva-btn { background:#f1f5f9; color:#374151; border:1px solid #d1d5db; transition:all 0.15s; -webkit-tap-highlight-color:transparent; }
.iva-btn:hover { background:#e2e8f0; }
.iva-btn:active { background:#d1d5db; transform:scale(0.97); }
.iva-btn.active { background:#0d2248; color:#fff; border-color:#0d2248; }

/* Password prompt */
#modalPassword {
    display:none; position:fixed; inset:0; z-index:10000;
    background:rgba(0,0,0,0.55); align-items:center; justify-content:center;
}
#modalPassword.open { display:flex; }
#modalPasswordBox {
    background:#fff; border-radius:14px; padding:28px 30px; max-width:340px; width:94%;
    box-shadow:0 8px 40px rgba(0,0,0,0.3); font-family:inherit; text-align:center;
}
#modalPasswordBox h3 { margin:0 0 6px; font-size:16px; color:#0d2248; }
#modalPasswordBox p { font-size:12px; color:#666; margin-bottom:16px; }
#modalPasswordInput {
    width:100%; padding:10px 12px; border:2px solid #ddd; border-radius:8px;
    font-size:15px; text-align:center; letter-spacing:4px; margin-bottom:12px;
    box-sizing:border-box;
}
#modalPasswordInput.error { border-color:#ef4444; }
#modalPasswordConfirm {
    width:100%; background:#0d2248; color:#fff; border:none; border-radius:8px;
    padding:10px; font-size:14px; font-weight:700; cursor:pointer; margin-bottom:8px;
}
#modalPasswordCancel {
    width:100%; background:#e5e7eb; color:#374151; border:none; border-radius:8px;
    padding:10px; font-size:13px; cursor:pointer; font-weight:600;
}
/* Custom input area inside password modal */
#customCampataGroup { display:none; margin-bottom:14px; }
#customCampataGroup label { font-size:12px; color:#555; margin-bottom:4px; display:block; text-align:left; }
#customCampataValue {
    width:100%; padding:10px 12px; border:2px solid #ddd; border-radius:8px;
    font-size:15px; text-align:center; box-sizing:border-box;
}

/* === Block from lines 181-210 === */
#modalReset {
    display:none; position:fixed; inset:0; z-index:9999;
    background:rgba(0,0,0,0.55); align-items:center; justify-content:center;
}
#modalReset.open { display:flex; }
#modalResetBox {
    background:#fff; border-radius:16px; padding:32px 28px 24px; max-width:360px; width:94%;
    box-shadow:0 12px 48px rgba(0,0,0,0.25); font-family:inherit; text-align:center;
}
#modalResetBox .reset-icon {
    width:56px; height:56px; background:#fef2f2; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 16px;
}
#modalResetBox h3 { margin:0 0 8px; font-size:18px; color:#0d2248; font-weight:700; }
#modalResetBox p { font-size:13px; color:#6b7280; margin:0 0 24px; line-height:1.5; }
.reset-btn-row { display:flex; gap:10px; }
#btnResetConfirm {
    flex:1; background:linear-gradient(135deg,#ef4444,#b91c1c);
    color:#fff; border:none; border-radius:10px; padding:12px;
    font-size:14px; font-weight:700; cursor:pointer;
    box-shadow:0 3px 12px rgba(239,68,68,0.3); transition:opacity 0.15s;
}
#btnResetConfirm:hover { opacity:0.88; }
#btnResetCancel {
    flex:1; background:#f1f5f9; color:#374151; border:none;
    border-radius:10px; padding:12px; font-size:14px; font-weight:600;
    cursor:pointer; transition:background 0.15s;
}
#btnResetCancel:hover { background:#e2e8f0; }

/* === Block from lines 720-1849 === */
        /* ===========================
           SEZIONE CSS
           =========================== */
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent; /* no flash blu tap iOS */
        }
        /* Faster taps on all interactive elements */
        button, a, .btn, .color-swatch, .iva-btn, .campata-preset-btn, .btn-preset, select, label[onclick] {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        /* Minimum tap target for accessibility (44px Apple HIG) */
        @media (pointer: coarse) {
            button, .btn, .color-swatch, .iva-btn { min-height: 44px; min-width: 44px; }
            select { min-height: 44px; }
        }

        html {
            overflow-x: hidden; /* previene scroll orizzontale */
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%; /* previene resize testo su iOS */
        }

        /* Accessibilità: focus visibile solo da tastiera */
        :focus-visible {
            outline: 2px solid #0d6efd;
            outline-offset: 2px;
        }
        :focus:not(:focus-visible) {
            outline: none;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background: #f5f6f9;
            min-height: 100vh;
            min-height: 100dvh;
            padding: 0;
            margin: 0;
            overscroll-behavior-x: none; /* previene swipe-back su mobile */
        }

        .container {
            max-width: 100%;
            margin: 0;
            background: #f5f6f9;
            border-radius: 0;
            box-shadow: none;
            overflow: clip;
        }

        .header {
            background: linear-gradient(135deg, #0a1a3a 0%, #0d2248 50%, #142d5c 100%);
            color: white;
            padding: 6px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border-bottom: 2px solid #E8A000;
        }
        .header-left { display: flex; align-items: center; gap: 10px; }
        .header-icon {
            width: 44px; height: 44px;
            background: rgba(232,160,0,0.18);
            border: 2px solid rgba(232,160,0,0.35);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px; flex-shrink: 0;
        }
        .header h1 {
            font-size: 15px;
            font-weight: 700;
            letter-spacing: -0.3px;
            margin: 0;
            white-space: nowrap;
        }
        .header-subtitle {
            font-size: 10px;
            opacity: 0.55;
            white-space: nowrap;
        }
        .header p {
            font-size: 12px;
            opacity: 0.75;
            margin: 0;
            display: none;
        }
        .header-badge {
            background: rgba(232,160,0,0.25);
            border: 1px solid rgba(232,160,0,0.5);
            border-radius: 20px;
            padding: 2px 8px;
            font-size: 10px;
            font-weight: 600;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .main-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0;
        }

        @media (min-width: 1024px) {
            .main-layout {
                grid-template-columns: 300px 1fr;
                align-items: start;
            }
            .main-layout > * { min-width: 0; }
        }

        /* PANNELLO CONTROLLI */
        .controls-panel {
            background: #f5f6f9;
            padding: 10px;
            border-right: 1px solid #e0e2e8;
        }

        @media (min-width: 1024px) {
            .controls-panel {
                position: sticky;
                top: 0;
                max-height: 100vh;
                max-height: 100dvh;
                overflow-y: auto;
                scrollbar-width: none; /* Firefox */
                -ms-overflow-style: none; /* IE */
            }
            .controls-panel::-webkit-scrollbar { display: none; } /* Chrome/Safari */
        }

        .control-section {
            background: white;
            border-radius: 10px;
            padding: 14px 16px;
            margin-bottom: 8px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.03);
            border: 1px solid #e8eaef;
            border-left: 3px solid #E8A000;
            transition: box-shadow 0.2s;
        }
        .control-section:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        /* Accent colors per sezione — palette SolarSicily */
        .control-section:nth-child(1) { border-left-color: #E8A000; } /* dimensioni — oro */
        .control-section:nth-child(2) { border-left-color: #0d2248; } /* campate — navy */
        .control-section:nth-child(3) { border-left-color: #D48A00; } /* colori — ambra scuro */
        .control-section:nth-child(4) { border-left-color: #1a3a6a; } /* sfondo — blu scuro */
        .control-section:nth-child(5) { border-left-color: #C07000; } /* tetto — bronzo */
        .control-section#exportSection { border-left-color: #E8A000; }
        .control-section#statsSection  { border-left-color: #0d2248; }
        .control-section#videoMontaggioSection { border-left-color: #E8A000; }
        #videoMontaggioThumb:hover div:first-child div:first-child {
            transform: scale(1.1);
        }

        .control-section h3 {
            color: #0d2248;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eef0f5;
            letter-spacing: 0.1px;
            text-transform: uppercase;
        }

        .input-group {
            margin-bottom: 15px;
        }

        .input-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
        }

        .input-group input {
            width: 100%;
            padding: 9px 10px;
            border: 1.5px solid #d8dbe3;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
        }
        /* Nascondi spinner number inputs */
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            -moz-appearance: textfield;
        }
        
        .input-group select {
            width: 100%;
            padding: 10px 12px;
            border: 1.5px solid #d8dbe3;
            border-radius: 8px;
            font-size: 15px;
            background: white;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .input-group input:focus {
            outline: none;
            border-color: #E8A000;
        }

        .campate-container {
            margin-bottom: 10px;
        }

        .campata-row {
            background: #fafbfc;
            border: 1px solid #e8eaef;
            border-radius: 8px;
            padding: 8px 10px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
        }

        .campata-row label {
            min-width: 56px;
            font-size: 12px;
            font-weight: bold;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .campata-row input {
            flex: 1;
            min-width: 50px;
            max-width: 80px;
            padding: 7px 5px;
            border: 1.5px solid #d8dbe3;
            border-radius: 6px;
            font-size: 13px;
            box-sizing: border-box;
        }
        
        .campata-unit {
            flex-shrink: 0;
            font-size: 12px;
            color: #555;
        }
        
        .btn-remove-campata {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 5px;
            background: #f1f5f9;
            color: #94a3b8;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .btn-remove-campata:hover {
            background: #fee2e2;
            color: #dc2626;
        }

        .btn {
            padding: 11px 16px;
            border: none;
            border-radius: 9px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
        }
        .btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
        .btn:active { transform: translateY(0) scale(0.98); filter: brightness(0.96); }

        .btn-primary {
            background: linear-gradient(135deg, #E8A000 0%, #D48A00 100%);
            color: white;
            box-shadow: 0 4px 18px rgba(232,160,0,0.45);
        }
        
        .btn-preset {
            flex: 1;
            padding: 9px 10px;
            border: 1.5px solid #E8A000;
            border-radius: 8px;
            background: white;
            color: #B07800;
            font-size: 12.5px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s;
        }
        .btn-preset:hover {
            background: #E8A000;
            color: white;
            box-shadow: 0 3px 10px rgba(232,160,0,0.3);
        }
        
        .color-swatch {
            width: 36px;
            height: 36px;
            border: 3px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            padding: 0;
        }
        .color-swatch:hover {
            transform: scale(1.1);
        }
        .color-swatch:active {
            transform: scale(0.95);
        }
        .color-swatch.active {
            border-color: #0d2248;
            box-shadow: 0 0 0 2px rgba(13, 34, 72, 0.3);
        }

        .btn-success {
            background: linear-gradient(135deg, #0d2248, #142d5c);
            color: white;
        }

        .btn-export {
            background: #f8f9fb;
            border: 1.5px solid #d0d4de;
            color: #374151;
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 600;
        }
        .btn-export:hover { background: #eef0f5; border-color: #b0b4be; }

        /* Bottone filled navy */
        .btn-navy {
            background: linear-gradient(135deg, #0d2248, #142d5c);
            color: white;
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(13,34,72,0.25);
        }
        .btn-navy:hover { box-shadow: 0 4px 16px rgba(13,34,72,0.35); }

        /* Bottone filled arancione (solo per CTA secondarie) */
        .btn-amber {
            background: linear-gradient(135deg, #E8A000, #D48A00);
            color: white;
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(232,160,0,0.25);
        }
        .btn-amber:hover { box-shadow: 0 4px 16px rgba(232,160,0,0.35); }

        /* Divider dentro export */
        .export-divider {
            height: 1px;
            background: #e0e2e8;
            margin: 10px 0;
        }
        .export-label {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: #8892a4;
            margin-bottom: 6px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 15px;
        }

        .stat-box {
            background: #f8f9fb;
            color: #0d2248;
            padding: 10px 8px;
            border-radius: 10px;
            text-align: center;
            border: 1.5px solid #e0e4ec;
        }

        .stat-value {
            font-size: 18px;
            font-weight: 800;
            letter-spacing: -0.5px;
            color: #0d2248;
        }

        .stat-label {
            font-size: 10px;
            margin-top: 2px;
            color: #64748b;
            font-weight: 500;
        }

        .alert {
            padding: 12px;
            border-radius: 8px;
            margin-top: 12px;
            font-size: 12px;
        }

        .alert-success {
            background: #eef2ff;
            border-left: 4px solid #0d2248;
        }

        .alert-warning {
            background: #fff3cd;
            border-left: 4px solid #ffc107;
        }

        /* AREA DISEGNO */
        .canvas-area {
            background: white;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding: 0;
            min-width: 0;
        }

        @media (min-width: 1024px) {
            .canvas-area {
                position: sticky;
                top: 0;
                height: 100vh;
                height: 100dvh; /* Modern browsers: real viewport height */
                overflow-x: hidden;
                overflow-y: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .canvas-area::-webkit-scrollbar { display: none; }
        }

        .canvas-wrapper {
            width: 100%;
            min-width: 0;
            display: block;
            touch-action: none;
        }

        #mainCanvas {
            border: none;
            display: block;
            background: white;
            touch-action: none;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
            cursor: grab;
        }
        #mainCanvas:active {
            cursor: grabbing;
        }

        /* CARTIGLIO HTML (desktop) */
        .html-cartiglio {
            width: 100%;
            background: #f8faff;
            border: 1.5px solid #0d2248;
            border-radius: 0;
            font-family: Arial, sans-serif;
            flex: 0 0 auto;
        }
        .html-cartiglio .ct-header {
            background: #0d2248;
            color: white;
            text-align: center;
            font-weight: bold;
            font-size: 11px;
            letter-spacing: 1.5px;
            padding: 3px 0;
        }
        .html-cartiglio .ct-body {
            display: flex;
            border-top: 1px solid #c0c8e0;
        }
        .html-cartiglio .ct-section {
            flex: 1;
            padding: 4px 8px;
            border-right: 1px solid #c0c8e0;
            min-width: 0;
        }
        .html-cartiglio .ct-section:last-child { border-right: none; }
        .html-cartiglio .ct-section-title {
            font-size: 9px;
            font-weight: bold;
            color: #0d2248;
            letter-spacing: 0.8px;
            margin-bottom: 2px;
            white-space: nowrap;
        }
        .html-cartiglio .ct-section.ct-solar .ct-section-title {
            color: #e65100;
        }
        .html-cartiglio .ct-row {
            font-size: 10px;
            color: #333;
            line-height: 1.5;
            white-space: nowrap;
        }
        .html-cartiglio .ct-row .ct-label {
            color: #6878c0;
            font-size: 9px;
        }
        .html-cartiglio .ct-row .ct-val {
            font-weight: 600;
            color: #111;
        }
        .html-cartiglio .ct-row .ct-highlight {
            color: #e65100;
            font-weight: bold;
            font-size: 12px;
        }

        /* LEGENDA - una riga su desktop */
        .legend {
            flex-shrink: 0;
            margin-top: 2px;
            padding: 3px 8px;
            background: #f8f9fa;
            border-radius: 6px;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2px 8px;
            box-sizing: border-box;
        }

        @media (min-width: 1024px) {
            .legend { flex-wrap: nowrap; overflow: hidden; }
        }

        /* ===== LEGENDA RIDISEGNATA ===== */
        .legend {
            flex-shrink: 0;
            margin-top: 2px;
            padding: 3px 8px;
            background: rgba(240,242,248,0.97);
            border-radius: 6px;
            border: 1px solid #d0d4e0;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px 14px;
            box-sizing: border-box;
        }
        .legend-group {
            display: flex;
            align-items: center;
            gap: 4px 10px;
            flex-wrap: wrap;
        }
        .legend-sep {
            width: 1px;
            height: 18px;
            background: #c4c8d8;
            flex-shrink: 0;
        }
        .legend-title {
            font-weight: 800;
            color: #0d2248;
            white-space: nowrap;
            font-size: 10px;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            background: #fdf0d0;
            padding: 2px 6px;
            border-radius: 4px;
            flex-shrink: 0;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 10.5px;
            white-space: nowrap;
            flex-shrink: 0;
            color: #0d2248;
        }
        .legend-item b { color: #0d2248; font-size: 11px; }
        .legend-color {
            width: 16px;
            height: 11px;
            border-radius: 3px;
            border: 1px solid rgba(0,0,0,0.22);
            flex-shrink: 0;
        }
        @media (max-width: 1023px) {
            .legend-sep { display: none; }
            .legend-item { font-size: 9.5px; }
        }

        /* COSTI CANVAS — dentro canvas-area */
        #costiCanvasWrap {
            box-sizing: border-box;
            width: 100%;
        }
        #costiCanvasWrap canvas {
            max-width: 100%;
            height: auto;
        }

        .footer-credit {
            background: #0a1a3a;
            color: white;
            text-align: center;
            padding: 15px;
            font-size: 13px;
        }

        /* ========== RESPONSIVE — TABLET (768px–1023px) ========== */
        @media (max-width: 1023px) and (min-width: 768px) {
            body { padding: 0; }

            .container { border-radius: 0; }

            .main-layout {
                display: grid;
                grid-template-columns: 260px 1fr;
                align-items: start;
            }
            .main-layout > * { min-width: 0; }

            .controls-panel {
                position: sticky;
                top: 0;
                max-height: 100vh;
                max-height: 100dvh;
                overflow-y: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
                padding: 8px;
            }
            .controls-panel::-webkit-scrollbar { display: none; }

            .canvas-area {
                position: sticky;
                top: 0;
                height: 100vh;
                height: 100dvh;
                overflow-x: hidden;
                overflow-y: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
                justify-content: flex-start;
                padding: 4px;
            }
            .canvas-area::-webkit-scrollbar { display: none; }

            .header h1 { font-size: 14px; }
            .header p { display: none; }
            .header-subtitle { font-size: 9px; }
            .header-badge { font-size: 9px; padding: 2px 6px; }

            .control-section { padding: 10px 12px; margin-bottom: 8px; }
            .control-section h3 { font-size: 12.5px; margin-bottom: 8px; padding-bottom: 6px; }

            .input-group label { font-size: 12px; }
            .input-group input,
            .input-group select { padding: 9px 10px; font-size: 13px; }

            .btn { padding: 10px 12px; font-size: 13px; }
            .btn-export { font-size: 12px; padding: 8px 10px; }

            .campata-row { padding: 8px 10px; gap: 6px; }
            .campata-row label { font-size: 12px; min-width: 58px; }
            .campata-row input { padding: 6px; font-size: 13px; }

            .stats-grid { gap: 6px; margin-top: 10px; }
            .stat-value { font-size: 15px; }
            .stat-box { padding: 8px 6px; }

            .legend { padding: 4px 8px; gap: 3px 8px; }
            .legend-item { font-size: 9.5px; }
            .legend-title { font-size: 9px; padding: 2px 5px; }
        }

        /* ========== RESPONSIVE — MOBILE (<768px) ========== */
        @media (max-width: 767px) {
            body { padding: 0; }

            .container {
                border-radius: 0;
                box-shadow: none;
            }

            .header {
                padding: 5px 10px;
                gap: 6px;
                flex-wrap: wrap;
            }
            .header h1 { font-size: 13px; }
            .header p { display: none; }
            .header-subtitle { display: none; }
            .header-badge { font-size: 9px; padding: 2px 6px; }
            .header-left .header-logo {
                height: 22px !important;
                padding: 2px 4px !important;
            }

            /* Disegno SOPRA, controlli SOTTO */
            .main-layout {
                display: flex;
                flex-direction: column-reverse;
            }

            .controls-panel {
                border-right: none;
                border-top: 3px solid #ddd;
                padding: 10px;
            }

            .control-section {
                padding: 12px;
                margin-bottom: 8px;
                border-radius: 10px;
            }
            .control-section h3 {
                font-size: 13px;
                margin-bottom: 10px;
                padding-bottom: 6px;
            }

            .canvas-area {
                padding: 6px 6px 4px;
                width: 100%;
            }

            #mainCanvas {
                max-width: 100%;
            }

            /* Input e select più grandi per touch */
            .input-group input,
            .input-group select {
                padding: 11px 10px;
                font-size: 16px; /* previene zoom iOS */
                border-radius: 8px;
            }
            .input-group label { font-size: 12.5px; margin-bottom: 5px; }

            /* Slider thumb più grosso per touch */
            input[type=range] { height: 8px; }
            input[type=range]::-webkit-slider-thumb {
                width: 24px;
                height: 24px;
            }
            input[type=range]::-moz-range-thumb {
                width: 24px;
                height: 24px;
            }

            /* Campate */
            .campata-row {
                padding: 10px;
                gap: 6px;
                flex-wrap: wrap;
            }
            .campata-row label { min-width: 55px; font-size: 12px; }
            .campata-row input { flex: 1; min-width: 60px; padding: 8px; font-size: 14px; }
            .btn-remove-campata { width: 32px; height: 32px; font-size: 16px; }

            /* Bottoni */
            .btn {
                padding: 12px 14px;
                font-size: 14px;
                border-radius: 10px;
            }
            .btn-export {
                padding: 10px 12px;
                font-size: 13px;
                margin-bottom: 8px;
            }
            .btn-success { padding: 10px; font-size: 13px; }

            /* Color swatches più grandi per touch */
            .color-swatch { width: 44px; height: 44px; border-radius: 10px; }

            /* Stats grid */
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
                margin-top: 10px;
            }
            .stat-value { font-size: 16px; }
            .stat-box { padding: 8px 6px; border-radius: 8px; }

            /* Legenda compatta */
            .legend {
                margin-top: 4px;
                padding: 5px 8px;
                gap: 3px 8px;
                flex-wrap: wrap;
            }
            .legend-sep { display: none; }
            .legend-item { font-size: 9.5px; }
            .legend-item span { font-size: 9px; }
            .legend-title { font-size: 9px; }

            /* Toast mobile */
            #toastContainer {
                top: 0;
                bottom: auto;
                right: 0;
                left: 0;
                padding-top: 10px;
            }
            .toast {
                max-width: 96%;
                font-size: 14px;
                padding: 14px 18px;
                min-width: auto;
            }

            /* IVA buttons */
            .iva-btn { padding: 10px 12px; font-size: 13px; min-height: 44px; }

            /* Footer */
            .footer-credit { padding: 12px; font-size: 12px; }

            /* BG swatch grid */
            .bg-swatch-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 6px !important; }
        }

        /* ========== RESPONSIVE — SMALL MOBILE (<480px) ========== */
        @media (max-width: 479px) {
            .header {
                padding: 4px 8px;
                flex-wrap: wrap;
            }
            .header h1 { font-size: 12px; }
            .header p { display: none; }
            .header-badge { display: none; }
            .header-left .header-logo {
                height: 20px !important;
                padding: 2px 3px !important;
            }

            .controls-panel { padding: 8px; }

            .control-section {
                padding: 10px;
                margin-bottom: 6px;
            }
            .control-section h3 { font-size: 12.5px; }

            /* Grid preset campate: 3 colonne su mobile */
            .campata-preset-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 6px !important;
            }
            .campata-preset-btn { padding: 12px 6px; font-size: 13px; min-height: 44px; }

            /* Bottoni preset inline */
            .btn-preset { padding: 10px 8px; font-size: 12px; min-height: 44px; }

            /* Stats: 3 colonne strette */
            .stats-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 4px;
            }
            .stat-value { font-size: 14px; }
            .stat-label { font-size: 9px; }
            .stat-box { padding: 6px 4px; }

            /* Legenda nascosta su schermi molto piccoli */
            .legend { display: none; }

            /* Mobile stats visibile */
            #mobileStats { display: block !important; }
        }

        /* ========== MOBILE LANDSCAPE ========== */
        @media (max-width: 900px) and (orientation: landscape) {
            .main-layout {
                display: grid !important;
                grid-template-columns: 240px 1fr !important;
                flex-direction: unset !important;
            }
            .controls-panel {
                border-right: 2px solid #ddd;
                border-top: none;
                max-height: 100vh;
                max-height: 100dvh;
                overflow-y: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .controls-panel::-webkit-scrollbar { display: none; }
            .canvas-area {
                height: 100vh;
                height: 100dvh;
                overflow-y: auto;
                scrollbar-width: none;
            }
            .canvas-area::-webkit-scrollbar { display: none; }
            #mobileStats { display: none !important; }
            .legend { display: flex !important; }
        }

        /* ========== RESPONSIVE — TINY MOBILE (<360px) ========== */
        @media (max-width: 359px) {
            .header h1 { font-size: 13px; }
            .campata-preset-grid { grid-template-columns: repeat(2, 1fr) !important; }
            .control-section { padding: 8px; }
            .btn { font-size: 13px; padding: 10px; }
        }

        /* ========== CANVAS SCALING FIX ========== */
        /* Previene overflow orizzontale su qualsiasi schermo */

        /* iOS safe area support */
        @supports (padding: env(safe-area-inset-bottom)) {
            .controls-panel {
                padding-bottom: calc(12px + env(safe-area-inset-bottom));
            }
            .header {
                padding-left: calc(12px + env(safe-area-inset-left));
                padding-right: calc(12px + env(safe-area-inset-right));
            }
            .footer-credit {
                padding-bottom: calc(15px + env(safe-area-inset-bottom));
            }
        }

        /* ========== SEZIONI COLLASSABILI ========== */
        .control-section h3 {
            cursor: pointer;
            user-select: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .control-section h3::after {
            content: '';
            width: 16px; height: 16px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
            transition: transform 0.25s ease;
            flex-shrink: 0;
        }
        .control-section.collapsed h3::after {
            transform: rotate(180deg);
        }
        .control-section .cs-body {
            transition: opacity 0.2s ease;
        }
        .control-section.collapsed .cs-body {
            display: none;
        }

        /* ========== TOAST ========== */
        #toastContainer {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 99999999;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            pointer-events: none;
            padding-top: 20px;
        }
        .toast {
            background: #0d2248;
            color: white;
            padding: 18px 32px;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 700;
            box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.15), 0 0 80px rgba(0,0,0,0.3);
            opacity: 0;
            transform: translateY(-30px) scale(0.9);
            transition: opacity 0.35s ease, transform 0.35s ease;
            pointer-events: auto;
            max-width: 620px;
            min-width: 320px;
            text-align: center;
            cursor: pointer;
            line-height: 1.5;
            letter-spacing: 0.2px;
            backdrop-filter: blur(8px);
        }
        .toast.show   { opacity: 1; transform: translateY(0) scale(1); }
        .toast-ok     { background: linear-gradient(135deg, #1e8e3e, #2e7d32); border: 3px solid #4caf50; }
        .toast-warn   { background: linear-gradient(135deg, #e65100, #bf360c); border: 3px solid #ff9800; }
        .toast-err    { background: linear-gradient(135deg, #c62828, #b71c1c); border: 3px solid #ef5350; }
        .toast-info   { background: linear-gradient(135deg, #1565c0, #0d47a1); border: 3px solid #42a5f5; }

        /* ========== SLIDER ========== */
        .slider-group { margin-bottom: 14px; }
        .slider-group .slider-label {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
        }
        .slider-group .slider-label span {
            font-weight: 400;
            color: #D48A00;
        }
        input[type=range] {
            width: 100%;
            -webkit-appearance: none;
            height: 6px;
            background: #ddd;
            border-radius: 3px;
            outline: none;
            cursor: pointer;
            touch-action: none; /* previene scroll durante drag su mobile */
        }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: linear-gradient(135deg,#E8A000,#C07000);
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(232,160,0,0.45);
        }
        input[type=range]::-moz-range-thumb {
            width: 18px; height: 18px;
            border-radius: 50%;
            background: linear-gradient(135deg,#E8A000,#C07000);
            cursor: pointer; border: none;
        }

        /* ========== COLOR MINI PICKER ========== */
        .color-mini-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 2px;
        }
        .color-mini-wrap label {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            margin: 0;
        }
        input[type=color].color-mini {
            width: 40px;
            height: 32px;
            border: 2px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            padding: 2px 3px;
            background: white;
        }

        /* ========== EXTRA BUTTON ========== */
        .btn-print {
            background: #f8f9fb;
            border: 1.5px solid #d0d4de;
            color: #374151;
            margin-bottom: 0;
            font-size: 13px;
            font-weight: 600;
        }
        .btn-print:hover { background: #eef0f5; border-color: #b0b4be; }

        /* ========== INPUT SELECT FOCUS ========== */
        .input-group select:focus,
        .input-group input:focus {
            outline: none;
            border-color: #E8A000;
            box-shadow: 0 0 0 3px rgba(232,160,0,0.15);
        }

        /* ========== BG SWATCHES ========== */
        .bg-swatch-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 6px;
            margin-top: 8px;
        }
        .bg-swatch {
            width: 100%;
            aspect-ratio: 1;
            border: 3px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
            padding: 0;
            position: relative;
        }
        .bg-swatch:hover { transform: scale(1.12); }
        .bg-swatch.active {
            border-color: #0d2248;
            box-shadow: 0 0 0 2px rgba(26,35,126,0.35);
        }
        .bg-swatch[title]::after {
            content: attr(title);
            position: absolute;
            bottom: calc(100% + 5px);
            left: 50%;
            transform: translateX(-50%);
            background: #2c3e50;
            color: #fff;
            font-size: 10px;
            white-space: nowrap;
            padding: 3px 7px;
            border-radius: 5px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.15s;
            z-index: 100;
        }
        .bg-swatch:hover::after { opacity: 1; }

        /* ========== BG PREVIEW STRIP ========== */
        #bgPreviewStrip {
            width: 100%;
            height: 24px;
            border-radius: 6px;
            margin-top: 8px;
            border: 2px solid #e0e0e0;
            display: none;
        }

/* === Block from lines 8336-8442 === */
#modalPreventivo { display:none; position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,0.6); overflow-y:auto; padding:20px; -webkit-overflow-scrolling: touch; }
#modalPreventivo.open { display:flex; align-items:flex-start; justify-content:center; }
#prevBox { background:#fff; border-radius:16px; max-width:960px; width:100%; margin:20px auto; box-shadow:0 20px 60px rgba(0,0,0,0.3); font-family:inherit; }
#prevBox .prev-header { background:#2563eb; color:#fff; padding:18px 24px; border-radius:16px 16px 0 0; display:flex; justify-content:space-between; align-items:center; }
#prevBox .prev-header h2 { margin:0; font-size:18px; font-weight:700; }
#prevBox .prev-body { padding:20px 24px; max-height:72vh; max-height:72dvh; overflow-y:auto; -webkit-overflow-scrolling: touch; }
#prevBox .prev-footer { padding:14px 24px; border-top:1px solid #e5e7eb; display:flex; gap:8px; flex-wrap:wrap; }

/* Sezioni */
.prev-section { margin-bottom:18px; }
.prev-section h4 { margin:0 0 10px; font-size:13px; color:#1e3a5f; border-bottom:2px solid #e5e7eb; padding-bottom:6px; font-weight:700; }

/* Campi cliente */
.prev-row { display:flex; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.prev-row input, .prev-row select, .prev-row textarea { border:1.5px solid #d1d5db; border-radius:6px; padding:6px 10px; font-size:12px; font-family:inherit; }
.prev-row input:focus, .prev-row textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,0.15); }
.prev-row label { font-size:11px; color:#555; display:block; margin-bottom:2px; }
.prev-field { flex:1; min-width:140px; }

/* Tabella prodotti */
.prev-table { width:100%; border-collapse:collapse; font-size:12px; }
.prev-table thead th { background:#f1f5f9; color:#374151; font-size:11px; font-weight:700; padding:8px 6px; text-align:left; border-bottom:2px solid #d1d5db; white-space:nowrap; }
.prev-table thead th.num { text-align:right; }
.prev-table thead th.center { text-align:center; }
.prev-table tbody tr { border-bottom:1px solid #e5e7eb; }
.prev-table tbody tr:hover { background:#f8fafc; }
.prev-table tbody tr.auto-row { background:#f0f7ff; }
.prev-table tbody td { padding:6px; vertical-align:middle; }
.prev-table tbody td input { border:1.5px solid #d1d5db; border-radius:5px; padding:6px 8px; font-size:12px; font-family:inherit; width:100%; box-sizing:border-box; }
.prev-table tbody td input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,0.12); }
.prev-table tbody td input.num-input { text-align:right; }
.prev-table tbody td .row-total { font-weight:800; font-size:13px; color:#111; text-align:right; white-space:nowrap; }
.prev-table .col-codice { width:90px; }
.prev-table .col-nome { min-width:180px; }
.prev-table .col-qty { width:55px; }
.prev-table .col-prezzo { width:100px; }
.prev-table .col-sconto { width:70px; }
.prev-table .col-iva { width:65px; }
.prev-table .col-totale { width:100px; text-align:right; }
.prev-table .col-del { width:36px; text-align:center; }
.prev-del-btn { background:#ef4444; color:#fff; border:none; border-radius:6px; width:30px; height:30px; font-size:14px; cursor:pointer; font-weight:700; line-height:1; display:flex; align-items:center; justify-content:center; transition:background 0.15s; }
.prev-del-btn:hover { background:#dc2626; }

/* Bottone aggiungi */
.prev-add-btn { display:inline-flex; align-items:center; gap:4px; padding:10px 20px; background:#f59e0b; color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:700; cursor:pointer; transition:background 0.15s; float:right; margin-top:8px; }
.prev-add-btn:hover { background:#d97706; }

/* Totali */
.prev-total-line { display:flex; justify-content:space-between; padding:4px 0; font-size:13px; }
.prev-total-line.bold { font-weight:700; font-size:18px; color:#E8A000; background:#0d2248; padding:10px 14px; margin:8px -14px 0; border-radius:6px; border-top:none; }
.prev-total-line.discount { color:#c62828; }

/* Bottoni footer */
.prev-btn { padding:10px 18px; border:none; border-radius:8px; font-size:13px; font-weight:700; cursor:pointer; transition:all 0.15s; }
.prev-btn-email { background:#2563eb; color:#fff; }
.prev-btn-email:hover { background:#1d4ed8; }
.prev-btn-wa { background:#25d366; color:#fff; }
.prev-btn-wa:hover { background:#1da851; }
.prev-btn-pdf { background:#E8A000; color:#fff; }
.prev-btn-pdf:hover { background:#c98a00; }
.prev-btn-close { background:#e5e7eb; color:#374151; }
.prev-btn-close:hover { background:#d1d5db; }
.prev-btn-print { background:#6366f1; color:#fff; }
.prev-btn-print:hover { background:#4f46e5; }

/* Autocomplete dropdown */
.prev-ac-wrap { position: relative; }
.prev-ac-list { position:fixed; min-width:360px; max-height:260px; overflow-y:auto; background:#fff; border:1.5px solid #cbd5e1; border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,0.2); z-index:100000; display:none; }
.prev-ac-list.show { display:block; }
.prev-ac-item { padding:8px 12px; cursor:pointer; border-bottom:1px solid #f1f5f9; display:flex; flex-direction:column; gap:1px; transition:background 0.1s; }
.prev-ac-item:last-child { border-bottom:none; }
.prev-ac-item:hover, .prev-ac-item.active { background:#eff6ff; }
.prev-ac-name { font-size:13px; font-weight:600; color:#1e293b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.prev-ac-meta { font-size:11px; color:#64748b; display:flex; gap:10px; }
.prev-ac-meta .sku { color:#2563eb; font-weight:600; }
.prev-ac-meta .price { color:#059669; font-weight:600; }
.prev-ac-meta .brand { color:#9333ea; }
.prev-ac-empty { padding:10px 12px; font-size:12px; color:#94a3b8; text-align:center; font-style:italic; }
.prev-ac-loading { padding:10px 12px; font-size:12px; color:#64748b; text-align:center; }
.prev-ac-loading::after { content:''; display:inline-block; width:12px; height:12px; border:2px solid #cbd5e1; border-top-color:#2563eb; border-radius:50%; animation:acSpin 0.6s linear infinite; margin-left:6px; vertical-align:middle; }
@keyframes acSpin { to { transform:rotate(360deg); } }

/* Mobile */
@media (max-width: 767px) {
    #modalPreventivo { padding: 6px; }
    #prevBox { margin: 6px auto; border-radius: 12px; max-width: 100%; }
    #prevBox .prev-header { padding: 14px 16px; border-radius: 12px 12px 0 0; }
    #prevBox .prev-header h2 { font-size: 16px; }
    #prevBox .prev-body { padding: 12px; max-height: 68vh; max-height: 68dvh; }
    #prevBox .prev-footer { padding: 12px; }
    .prev-row input, .prev-row select, .prev-row textarea { font-size: 16px; padding: 10px; border-radius: 8px; }
    .prev-field { min-width: 100%; }
    .prev-btn { padding: 12px 16px; font-size: 14px; width: 100%; text-align: center; }

    /* Tabella responsive: card layout */
    .prev-table thead { display: none; }
    .prev-ac-list { min-width:280px; max-width:calc(100vw - 40px); }
    .prev-table tbody tr { display: block; border: 1.5px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; padding: 10px; position: relative; }
    .prev-table tbody tr.auto-row { border-color: #93c5fd; }
    .prev-table tbody td { display: flex; align-items: center; gap: 6px; padding: 4px 0; border: none; }
    .prev-table tbody td::before { content: attr(data-label); font-size: 11px; font-weight: 600; color: #6b7280; min-width: 70px; flex-shrink: 0; }
    .prev-table tbody td input { font-size: 16px; padding: 10px; }
    .prev-table tbody td.td-del { position: absolute; top: 8px; right: 8px; }
    .prev-table tbody td.td-del::before { display: none; }
    .prev-table tbody td.td-total { border-top: 1px solid #e5e7eb; padding-top: 8px; margin-top: 4px; }
    .prev-table tbody td.td-total::before { font-size: 12px; font-weight: 700; color: #111; }
}

/* ═══ FULLSCREEN CANVAS ═══ */
.canvas-area:fullscreen,
.canvas-area:-webkit-full-screen,
.canvas-area:-moz-full-screen,
.canvas-area:-ms-fullscreen {
    background: #1a1a2e !important;
    padding: 0 !important;
    overflow: hidden !important;
}
/* Hide everything except canvas wrapper in fullscreen */
.canvas-area.cfg-fullscreen > * {
    display: none !important;
}
.canvas-area.cfg-fullscreen > .canvas-wrapper {
    display: block !important;
    width: 100vw;
    height: 100vh;
}
.canvas-area.cfg-fullscreen #mainCanvas {
    display: block !important;
    background: white;
}

/* ═══ SHIPPING BREAKDOWN CARD ═══ */
.shipping-breakdown-card {
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: #fafbfc;
    font-size: 13px;
}
.shipping-breakdown-section {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.shipping-breakdown-section:last-child {
    border-bottom: none;
}
.shipping-section-label {
    flex: 1;
    min-width: 0;
}
.shipping-section-title {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.shipping-section-detail {
    font-size: 11px;
    color: #64748b;
}
.shipping-section-value {
    text-align: right;
    white-space: nowrap;
    min-width: 90px;
}
.shipping-section-value-gross {
    font-weight: 700;
    color: #0d2248;
    font-size: 14px;
}
.shipping-section-value-net {
    font-size: 10px;
    color: #94a3b8;
}
.shipping-breakdown-total {
    background: #e8edf4;
    color: #0d2248;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    border-top: 1.5px solid #cbd5e1;
}
.shipping-breakdown-total .shipping-section-title {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}
.shipping-breakdown-total .shipping-section-value-gross {
    color: #0d2248;
    font-size: 13px;
    font-weight: 700;
}
.shipping-breakdown-total .shipping-section-value-net {
    color: #94a3b8;
    font-size: 9px;
}
.shipping-zavorre-warning {
    background: #fffbeb;
    color: #92400e;
    padding: 8px 12px;
    border-left: 3px solid #f59e0b;
    font-size: 12px;
    font-style: italic;
    border-bottom: 1px solid #e5e7eb;
}
.shipping-empty-msg {
    padding: 12px 14px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    font-style: italic;
}
.shipping-ritiro-msg {
    padding: 14px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 767px) {
    .shipping-breakdown-section {
        flex-direction: column;
        gap: 4px;
    }
    .shipping-section-value {
        align-self: flex-end;
    }
}

