/* ══════════════════════════════════════════════
   AutoLogg Shop v2 Styles
   ══════════════════════════════════════════════ */

/* ── Reset for shop container ── */
.autologg-shop-v2 *{box-sizing:border-box}
.autologg-shop-v2{
    max-width:1180px;
    margin:0 auto;
    padding:40px 20px 80px;
    color:#2c3e50;
}

/* ── Header ── */
.alv2-header{text-align:center;margin-bottom:36px}
.alv2-header h1{
    font-size:clamp(26px,5vw,38px);font-weight:800;color:#2c3e50;margin-bottom:8px;line-height:1.2;padding-bottom:0;
}
.alv2-header h1 span{color:#1ea0f0}
.alv2-header p{font-size:17px;color:#627d98;max-width:520px;margin:0 auto;line-height:1.5}

/* ── Toggle ── */
.alv2-toggle-wrap{display:flex;justify-content:center;margin-bottom:32px}
.alv2-toggle-bar{
    display:inline-flex;background:#fff;border-radius:50px;padding:5px;
    box-shadow:0 4px 20px rgba(0,0,0,.06);border:1px solid #e2e8f0;
}
.alv2-toggle-btn{
    padding:12px 30px;border-radius:50px;font-weight:600;font-size:15px;cursor:pointer;
    transition:all .25s;color:#627d98;border:none;background:transparent;
    font-family:inherit;position:relative;
}
.alv2-toggle-btn.active{
    background:linear-gradient(135deg,#1ea0f0,#0984e3);color:#fff;
    box-shadow:0 3px 12px rgba(30,160,240,.3);
}
.alv2-badge{
    position:absolute;top:-20px;right:-10px;
    background:linear-gradient(135deg,#10b981,#059669);color:#fff;
    font-size:15px;font-weight:700;padding:4px 10px;border-radius:20px;
}

/* ── VW ID Hint ── */
.alv2-vw-id-hint{
    background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(37,99,235,.03));
    border:1px solid rgba(37,99,235,.18);border-radius:12px;padding:12px 16px;
    margin-top:12px;display:none;align-items:center;gap:10px;
    animation:alv2FadeUp .3s ease;
}
.alv2-vw-id-ico{font-size:18px;flex-shrink:0}
.alv2-vw-id-hint p{font-size:13px;color:#1e40af;font-weight:500;line-height:1.45;margin:0}
.alv2-vw-id-hint strong{font-weight:700}

/* ── Fleet Hint ── */
.alv2-fleet-hint{
    background:linear-gradient(135deg,rgba(139,92,246,.08),rgba(139,92,246,.03));
    border:1px solid rgba(139,92,246,.18);border-radius:14px;padding:14px 20px;
    margin-bottom:24px;display:none;align-items:center;gap:14px;
    animation:alv2FadeUp .3s ease;
}
.alv2-fleet-hint.show{display:flex}
.alv2-fh-ico{
    width:38px;height:38px;background:#8b5cf6;border-radius:50%;
    display:flex;align-items:center;justify-content:center;color:#fff;
    font-size:17px;flex-shrink:0;
}
.alv2-fleet-hint p{font-size:13px;color:#5b21b6;font-weight:500;line-height:1.45}
.alv2-fleet-hint strong{font-weight:700}

/* ── Grid ── */
.alv2-grid{display:grid;grid-template-columns:1fr 360px;gap:24px;align-items:start}

/* ── Vehicle Card ── */
.alv2-v-card{
    background:#fff;border-radius:20px;
    box-shadow:0 4px 24px rgba(0,0,0,.05);overflow:hidden;margin-bottom:20px;
    animation:alv2FadeUp .35s ease both;border:1px solid rgba(0,0,0,.04);
}
.alv2-v-head{
    background:linear-gradient(135deg,#2c3e50 0%,#34495e 100%);color:#fff;
    padding:16px 24px;display:flex;align-items:center;justify-content:space-between;
}
.alv2-v-head h3{font-size:16px;font-weight:600;display:flex;align-items:center;gap:10px;color:#fff;padding-bottom:0;margin-bottom:0;}
.alv2-v-num{
    background:rgba(255,255,255,.18);width:28px;height:28px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;
}
.alv2-v-remove{
    background:rgba(255,255,255,.12);border:none;color:#fff;width:30px;height:30px;
    border-radius:50%;cursor:pointer;font-size:18px;display:flex;align-items:center;
    justify-content:center;transition:background .2s;
}
.alv2-v-remove:hover{background:rgba(255,255,255,.25)}
.alv2-v-body{padding:24px 24px 28px}

/* ── Selects ── */
.alv2-v-selects{display:grid;grid-template-columns:220px 1fr 1fr;gap:14px;margin-bottom:24px}
.alv2-model-group{grid-column:1 / -1}
.alv2-sel-group label{
    display:block;font-size:12px;font-weight:600;color:#627d98;
    text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px;
}
.alv2-qty-stepper{
    display:inline-flex;
    align-items:center;
    border:2px solid #e2e8f0;
    border-radius:10px;
    background:#fff;
    overflow:hidden;
}
.alv2-qty-step-btn{
    width:36px;
    height:46px;
    border:none;
    background:#f8fafc;
    color:#334155;
    font-size:20px;
    line-height:1;
    font-weight:700;
    cursor:pointer;
    transition:background .2s;
}
.alv2-qty-step-btn:hover{background:#eef2f7}
.alv2-license-qty{
    width:72px;
    height:46px;
    padding:8px 6px;
    border:none;
    border-left:1px solid #e2e8f0;
    border-right:1px solid #e2e8f0;
    font-size:15px;
    font-weight:600;
    color:#2c3e50;
    text-align:center;
}
.alv2-license-qty:focus{
    outline:none;
    background:#f8fbff;
}
.alv2-sel-group select{
    width:100%;padding:13px 38px 13px 14px;border:2px solid #e2e8f0;border-radius:10px;
    font-size:15px;font-weight:500;color:#2c3e50;background:#fff;cursor:pointer;
    appearance:none;transition:all .2s;font-family:inherit;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 12px center;
}
.alv2-sel-group select:focus{outline:none;border-color:#1ea0f0;box-shadow:0 0 0 3px rgba(30,160,240,.1)}
.alv2-sel-group select.error{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.1)}
.alv2-req{color:#ef4444;margin-left:2px}

/* ── Section Label ── */
.alv2-section-label{
    font-size:12px;font-weight:600;color:#627d98;text-transform:uppercase;
    letter-spacing:.5px;margin-bottom:12px;
}

/* ── Connection Type Cards ── */
.alv2-conn-types{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}
.alv2-conn-card{
    border:2px solid #e2e8f0;border-radius:16px;padding:20px;cursor:pointer;
    transition:all .25s;position:relative;background:#fff;overflow:hidden;
}
.alv2-conn-card:hover{border-color:#90cdf4;transform:translateY(-1px)}
.alv2-conn-card.disabled{
    opacity:.58;
    cursor:not-allowed;
    border-color:#d1d5db;
    background:#f8fafc;
    transform:none;
    pointer-events:none;
}
.alv2-conn-card.disabled:hover{border-color:#d1d5db;transform:none}
.alv2-conn-card.disabled .alv2-cc-badge{
    background:#fee2e2;
    color:#991b1b;
}
.alv2-conn-card.sel{
    border-color:#1ea0f0;
    background:linear-gradient(135deg,rgba(30,160,240,.03),rgba(30,160,240,.07));
}
.alv2-conn-card.sel::after{
    content:'✓';position:absolute;top:10px;right:10px;background:#1ea0f0;color:#fff;
    width:22px;height:22px;border-radius:50%;display:flex;align-items:center;
    justify-content:center;font-size:11px;font-weight:700;
}
.alv2-cc-badge{
    display:inline-block;background:#d1fae5;color:#059669;font-size:10px;font-weight:700;
    padding:3px 8px;border-radius:6px;text-transform:uppercase;letter-spacing:.3px;margin-bottom:10px;
}
.alv2-cc-ico{
    width:48px;height:48px;border-radius:12px;display:flex;align-items:center;
    justify-content:center;font-size:24px;margin-bottom:12px;
}
.alv2-cc-ico.type-conn{background:#e8f4fd}
.alv2-cc-ico.type-dongle{background:#fce7f3}
.alv2-conn-card h4{font-size:16px;font-weight:700;color:#2c3e50;margin-bottom:4px}
.alv2-conn-card[data-type="dongle"] h4{margin-top:26px}
.alv2-cc-desc{font-size:13px;color:#627d98;line-height:1.45;margin-bottom:12px}
.alv2-cc-price{font-size:22px;font-weight:700;color:#1ea0f0}
.alv2-cc-price small{font-size:13px;font-weight:500;color:#627d98}
.alv2-cc-note{font-size:11px;color:#94a3b8;margin-top:3px}
.alv2-dongle-img{
    position:absolute;bottom:-4px;right:-4px;width:72px;height:auto;
    pointer-events:none;
}

/* ── PRO Global Upgrade ── */
.alv2-pro-global{
    border:2px solid #e2e8f0;border-radius:20px;padding:22px 24px;background:#fff;
    position:relative;cursor:pointer;transition:all .25s;margin-bottom:20px;
    box-shadow:0 4px 24px rgba(0,0,0,.05);
}
.alv2-pro-global:hover{border-color:#c4b5fd}
.alv2-pro-global.sel{
    border-color:#8b5cf6;
    background:linear-gradient(135deg,rgba(139,92,246,.04),rgba(139,92,246,.08));
}
/* more than 1 license → PRO is mandatory, the box can't be deselected */
.alv2-pro-global.locked{cursor:default}
.alv2-pro-global.locked:hover{border-color:#8b5cf6}
.alv2-pro-global.sel::after{
    content:'✓';position:absolute;top:14px;right:14px;background:#8b5cf6;color:#fff;
    width:24px;height:24px;border-radius:50%;display:flex;align-items:center;
    justify-content:center;font-size:12px;font-weight:700;
}
.alv2-pro-head{
    display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;
}
.alv2-pro-left{display:flex;align-items:center;gap:12px}
.alv2-pro-ico{
    width:44px;height:44px;background:#ede9fe;border-radius:12px;
    display:flex;align-items:center;justify-content:center;font-size:22px;
}
.alv2-pro-title{font-size:17px;font-weight:700;color:#2c3e50}
.alv2-pro-badge{
    display:inline-block;background:#8b5cf6;color:#fff;font-size:10px;font-weight:700;
    padding:2px 8px;border-radius:6px;margin-left:8px;text-transform:uppercase;
    vertical-align:middle;
}
.alv2-pro-price-tag{
    font-size:15px;font-weight:700;color:#8b5cf6;white-space:nowrap;
}
.alv2-pro-price-tag small{font-weight:400;color:#627d98;font-size:12px}
.alv2-pro-features{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;
}
.alv2-pf{
    position:relative;padding-left:20px;line-height:1.4;
}
.alv2-pf strong{display:block;font-size:13px;font-weight:700;color:#2c3e50}
.alv2-pf span{display:block;font-size:12px;color:#627d98;margin-top:2px}
.alv2-pf::before{content:'✓';position:absolute;left:0;top:0;color:#8b5cf6;font-weight:700;font-size:13px}
.alv2-pro-rec-text{
    font-size:12px;color:#8b5cf6;font-weight:600;margin-top:12px;
    padding-top:10px;border-top:1px solid rgba(139,92,246,.12);
}

/* ── Add Vehicle ── */
.alv2-add-btn{
    width:100%;padding:16px;border:2px dashed #cbd5e1;border-radius:16px;
    background:transparent;color:#1ea0f0;font-size:15px;font-weight:600;
    cursor:pointer;transition:all .25s;display:flex;align-items:center;
    justify-content:center;gap:8px;font-family:inherit;margin-bottom:20px;
}
.alv2-v-body > .alv2-add-btn{margin-top:6px;margin-bottom:0}
.alv2-add-btn:hover{border-color:#1ea0f0;background:rgba(30,160,240,.04)}

/* ── Summary Sidebar ── */
.alv2-summary{
    background:#fff;border-radius:20px;box-shadow:0 4px 24px rgba(0,0,0,.05);
    position:sticky;top:20px;overflow:hidden;border:1px solid rgba(0,0,0,.04);
}
.alv2-sum-head{
    background:linear-gradient(135deg,#1ea0f0,#0984e3);color:#fff;
    padding:22px 24px;text-align:center;
}
.alv2-sum-head h3{font-size:17px;font-weight:700;margin-bottom:2px;color:#fff;padding-bottom:0;}
.alv2-sum-head p{font-size:13px;opacity:.9}
.alv2-sum-body{padding:24px}

.alv2-si{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 0;border-bottom:1px solid #f1f5f9}
.alv2-si:last-child{border-bottom:none}
.alv2-si-name{font-size:14px;color:#627d98; font-weight: bold;}
.alv2-si-name span{display:block;font-size:12px;color:#94a3b8}
.alv2-si-pro{color:#8b5cf6;font-weight:600}
.alv2-si-price{font-weight:600;color:#2c3e50;font-size:14px;white-space:nowrap}

.alv2-sum-div{height:2px;background:linear-gradient(90deg,#e2e8f0,#1ea0f0,#e2e8f0);margin:14px 0;border-radius:2px}

.alv2-sum-total{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.alv2-sum-total-label{font-size:16px;font-weight:700}
.alv2-sum-total-price{font-size:28px;font-weight:800;color:#1ea0f0}
.alv2-sum-tax{font-size:12px;color:#94a3b8;text-align:right;margin-bottom:18px}

.alv2-sum-savings{
    background:linear-gradient(135deg,rgba(5,150,105,.08),rgba(16,185,129,.08));
    border:1px solid rgba(16,185,129,.18);border-radius:10px;padding:12px 14px;
    margin-bottom:18px;display:flex;align-items:center;gap:10px;
}
.alv2-ss-ico{
    width:30px;height:30px;background:#059669;border-radius:50%;
    display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;flex-shrink:0;
}
.alv2-sum-savings-text{font-size:13px;color:#065f46;font-weight:500}
.alv2-sum-savings-text strong{display:block;font-size:14px}

.alv2-checkout-btn{
    width:100%;
    margin-top:10px;
    padding:14px;
    background:#fff;
    border:2px solid #1ea0f0;
    border-radius:10px;
    color:#1ea0f0;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:all .2s;
    font-family:inherit;
    box-shadow:none;
}
.alv2-checkout-btn:hover{background:#eff6ff;border-color:#0984e3;color:#0984e3;transform:none;box-shadow:none}

.alv2-checkout-pro-btn{
    width:100%;
    padding:17px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,#8b5cf6,#7c3aed);
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:all .25s;
    font-family:inherit;
    box-shadow:0 4px 16px rgba(124,58,237,.38);
}
.alv2-checkout-pro-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(124,58,237,.45);
}

.alv2-trial-note{
    text-align:center;margin-top:14px;padding:10px;background:#f0fdf4;
    border-radius:8px;font-size:13px;color:#059669;font-weight:600;
}

.alv2-enterprise-box{
    margin-top:18px;padding:18px;background:#f8fafc;border-radius:12px;
    text-align:center;border:1px solid #e2e8f0;
}
.alv2-enterprise-box h4{font-size:14px;font-weight:700;color:#2c3e50;margin-bottom:4px}
.alv2-enterprise-box p{font-size:13px;color:#627d98;margin-bottom:10px}
.alv2-ent-features{
    display:inline-flex;flex-direction:column;gap:6px;text-align:left;margin:2px 0 14px;
}
.alv2-ent-f{
    position:relative;padding-left:20px;font-size:13px;line-height:1.4;color:#2c3e50;
}
.alv2-ent-f::before{content:'✓';position:absolute;left:0;top:0;color:#1ea0f0;font-weight:700}
.alv2-enterprise-box a{color:#1ea0f0;font-weight:600;text-decoration:none;font-size:14px}
.alv2-enterprise-box a:hover{text-decoration:underline}


/* ── Trust Bar ── */
.alv2-trust-bar{
    display:flex;justify-content:center;gap:32px;flex-wrap:wrap;
    margin-top:40px;padding:24px;background:#fff;border-radius:16px;
    box-shadow:0 2px 12px rgba(0,0,0,.04);max-width:800px;margin-left:auto;margin-right:auto;
}
.alv2-trust-item{display:flex;align-items:center;gap:8px;font-size:14px;color:#627d98;font-weight:500}
.alv2-ti{font-size:18px}

/* ── Responsive ── */
@media(max-width:1024px){
    .alv2-grid{grid-template-columns:1fr}
    .alv2-summary{position:static}
}
@media(max-width:640px){
    .alv2-v-selects{grid-template-columns:1fr}
    .alv2-conn-types{grid-template-columns:1fr}
    .alv2-pro-features{grid-template-columns:1fr;gap:10px}
    .autologg-shop-v2{padding:20px 14px 60px}
    .alv2-trust-bar{gap:18px;padding:18px}
    .alv2-trust-item{font-size:13px}
    .alv2-pro-head{flex-direction:column;gap:10px;align-items:flex-start}
    .alv2-fleet-hint{flex-direction:column;text-align:center}
}

/* ── Mobile Sticky Price Bar ── */
.alv2-mobile-bar{
    display:none;
    position:fixed;bottom:0;left:0;right:0;z-index:99999;
    background:#fff;
    border-top:1px solid #e2e8f0;
    box-shadow:0 -4px 20px rgba(0,0,0,.1);
    padding:12px 16px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.alv2-mb-info{
    display:flex;flex-direction:column;line-height:1.2;
}
.alv2-mb-label{
    font-size:11px;font-weight:600;color:#627d98;text-transform:uppercase;letter-spacing:.3px;
}
.alv2-mb-price{
    font-size:22px;font-weight:800;color:#1ea0f0;
}
.alv2-mb-sub{
    font-size:11px;color:#94a3b8;
}
.alv2-mb-btns{
    display:flex;flex-direction:column;gap:6px;flex-shrink:0;margin-right:70px;
}
.alv2-mb-btn{
    padding:10px 18px;
    border:none;border-radius:8px;
    font-size:13px;font-weight:700;
    cursor:pointer;font-family:inherit;
    transition:all .2s;white-space:nowrap;
}
.alv2-mb-btn-pro{
    background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;
    box-shadow:0 3px 12px rgba(139,92,246,.35);
}
.alv2-mb-btn-pro:hover{box-shadow:0 5px 16px rgba(139,92,246,.45)}
.alv2-mb-btn-basic{
    background:#fff;color:#1ea0f0;
    border:1.5px solid #1ea0f0;
}
.alv2-mb-btn-basic:hover{background:#eff6ff}

@media(max-width:1024px){
    .alv2-mobile-bar{display:flex}
    .autologg-shop-v2{padding-bottom:100px}
}

@keyframes alv2FadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* ══════════════════════════════════════════════
   General Theme Overrides (kept from v1)
   ══════════════════════════════════════════════ */

@media (min-width: 981px) {
    .et_pb_row_6_tb_header {
        display: none;
    }
}

@media (max-width: 980px) {
    .et_pb_menu__logo img {
        max-height: 45px !important;
        width: auto !important;
    }

    .et_pb_row {
        width: 87% !important;
    }

    header {
        padding: 10px 0;
    }

    header .fwidget {
        margin: 0 !important;
    }

    header .et_pb_column {
        margin-bottom: 20px !important;
    }
}