/* TrueDrive Motors — Instagram palette */
html[data-td-look="modern"] body #truedrive-site{--gold:#506800;--ink:#181b19;--soft:#f2f4ef;--paper:#fafbf9;--line:#d9ded6;background:#fafbf9!important;color:#181b19!important;border-image:none!important;border-inline-color:#b4de79!important;box-shadow:none!important}
html[data-td-look="modern"] body #truedrive-site .td-showroom,html[data-td-look="modern"] body #truedrive-site .td-footer{background:#171b18!important;border-color:#343b35!important;color:white!important}
html[data-td-look="modern"] body #truedrive-site .td-footer a,html[data-td-look="modern"] body #truedrive-site .td-footer h2,html[data-td-look="modern"] body #truedrive-site .td-footer h3{color:#c3ff00!important}
html[data-td-look="modern"] body #truedrive-site .td-menu-ten a{background:#232824!important;color:white!important;border-color:#465046!important}
html[data-td-look="modern"] body #truedrive-site .td-menu-ten a:hover,html[data-td-look="modern"] body #truedrive-site .td-menu-ten a:focus-visible{background:#313b2e!important;border-color:#c3ff00!important}
html[data-td-look="modern"] body #truedrive-site .td-ten-icon,html[data-td-look="modern"] body #truedrive-site .td-ten-arrow{color:#c3ff00!important}
html[data-td-look="modern"] body #truedrive-site .td-hero,html[data-td-look="modern"] body #truedrive-site .td-language-bar{background:#fafbf9!important}
html[data-td-look="modern"] body #truedrive-site .td-filter{background:#f1f4ee!important;border-color:#d7ded4!important}
html[data-td-look="modern"] body #truedrive-site .td-cta{background:#c3ff00!important;color:#182000!important;border-color:#96c500!important}
html[data-td-look="modern"] body #truedrive-site .td-cta.secondary{background:white!important;color:#394900!important}
html[data-td-look="modern"] body #truedrive-site .td-kicker,html[data-td-look="modern"] body #truedrive-site .td-price{color:#425700!important}

.td-look-switch{display:flex;align-items:center;justify-content:center;padding:4px;direction:ltr}
body #truedrive-site .td-look-switch .td-theme-toggle{position:relative;display:block;box-sizing:border-box;width:92px;min-width:92px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid #73952d;border-radius:999px;background:linear-gradient(100deg,#b8ee39,#31492a);box-shadow:inset 0 1px 5px #18200040;cursor:pointer;direction:ltr;transition:background .25s,border-color .25s}
body #truedrive-site .td-theme-toggle .td-theme-thumb{position:absolute;display:flex;align-items:center;justify-content:center;left:4px;top:4px;width:34px;height:34px;border-radius:50%;background:#c3ff00;box-shadow:0 2px 5px #0005;transform:translateX(0);transition:transform .25s ease,background .25s;overflow:hidden;pointer-events:none}
body #truedrive-site .td-theme-toggle img{display:block;width:34px;height:34px;border-radius:50%;object-fit:cover;transition:filter .25s}
body #truedrive-site .td-theme-toggle[aria-checked=true]{background:linear-gradient(100deg,#64502d,#e5c47e);border-color:#b28b46}
body #truedrive-site .td-theme-toggle[aria-checked=true] .td-theme-thumb{transform:translateX(48px);background:#dfbb6d}
body #truedrive-site .td-theme-toggle[aria-checked=true] img{filter:hue-rotate(-30deg) saturate(.6)}
body #truedrive-site .td-theme-toggle:focus-visible{outline:3px solid #376dc7;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body #truedrive-site .td-theme-toggle,body #truedrive-site .td-theme-toggle .td-theme-thumb,body #truedrive-site .td-theme-toggle img{transition:none}}
html[data-td-look="modern"] body #truedrive-site .td-menu-ten a .td-ten-icon,
html[data-td-look="modern"] body #truedrive-site .td-menu-ten a .td-ten-arrow{background:#30402b!important;border:1px solid #617849!important;color:#c3ff00!important;border-radius:50%;box-shadow:none!important}
html[data-td-look="modern"] body #truedrive-site .td-menu-ten a .td-ten-icon svg{color:#c3ff00!important;stroke:currentColor!important}
html[data-td-look="modern"] body #truedrive-site .td-menu-ten a strong{border-bottom-color:#516347!important}
html[data-td-look="modern"] body #truedrive-site .td-menu-ten a small{color:#d2dfc8!important}

html[data-td-look="modern"] body #truedrive-site button.tdfm-top-entry,
html[data-td-look="modern"] body form button.tdfm-top-entry{background:#c3ff00!important;color:#182000!important;border:1px solid #9eb878!important;box-shadow:none!important}
html[data-td-look="modern"] body button.tdfm-top-entry:focus-visible{outline:3px solid #58752a;outline-offset:2px}

/* Account screens also render outside #truedrive-site. */
html[data-td-look="modern"] body .tdca-entry a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 14px;background:#c3ff00!important;color:#182000!important;border:1px solid #96b957!important;border-radius:10px;text-decoration:none}
html[data-td-look="modern"] body .tdca-entry a svg{color:currentColor!important}
html[data-td-look="modern"] body .tdca-shell{color:#18251a}
html[data-td-look="modern"] body:has(.tdca-shell){background:#f5f8f1!important}
html[data-td-look="modern"] body .tdca-shell a{color:#425b17}
html[data-td-look="modern"] body .tdca-shell .tdca-btn,
html[data-td-look="modern"] body .tdca-shell button.tdfm-top-entry{background:#c3ff00!important;color:#182000!important;border:1px solid #96b957!important;box-shadow:none!important}
html[data-td-look="modern"] body .tdca-top{border-color:#c9dbb5}
html[data-td-look="modern"] body .tdca-card{border-color:#d4e2c7}
html[data-td-look="modern"] body .tdca-subject{background:#eef5e6;border-color:#8dbd44}
html[data-td-look="modern"] body .tdca-shell input:focus,
html[data-td-look="modern"] body .tdca-shell a:focus-visible,
html[data-td-look="modern"] body .tdca-shell button:focus-visible,
html[data-td-look="modern"] body .tdca-entry a:focus-visible{outline:3px solid #587b29;outline-offset:3px}
html[data-td-look="modern"] body .tdca-shell input[type=checkbox]{accent-color:#4c741e}

/* Shared proportions: both palettes use the same toolbar and button geometry. */
body #truedrive-site .td-language-bar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:10px 18px}
body #truedrive-site .td-language-bar>label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;line-height:1.4}
body #truedrive-site .td-language-bar select{box-sizing:border-box;width:auto;min-width:96px;height:40px;min-height:40px;margin:0;padding:6px 10px;border-radius:9px;font-size:13px;line-height:1.4}
body #truedrive-site .td-language-bar .tdca-entry{order:-1;margin-right:auto;padding:0!important}
body #truedrive-site .tdfm-account-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body #truedrive-site .tdca-entry a,
body #truedrive-site button.tdfm-top-entry,
body .tdca-shell button.tdfm-top-entry{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;gap:6px;min-height:40px;margin:0;padding:8px 14px;border:1px solid #b99750;border-radius:9px;background:#d6b876;color:#302615;font:600 13px/1.4 Vazirmatn,Tahoma,Arial,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
html[data-td-look="classic"] body #truedrive-site .tdca-entry a,
html[data-td-look="classic"] body #truedrive-site button.tdfm-top-entry{background:#d6b876!important;border:1px solid #b99750!important;color:#302615!important}
body #truedrive-site .tdca-entry a:hover,body #truedrive-site button.tdfm-top-entry:hover{filter:brightness(.96)}
body #truedrive-site .tdca-entry a:focus-visible,body #truedrive-site button.tdfm-top-entry:focus-visible{outline:3px solid #587b29;outline-offset:3px}
html[data-td-look="classic"] body #truedrive-site .tdca-entry a:focus-visible,html[data-td-look="classic"] body #truedrive-site button.tdfm-top-entry:focus-visible{outline-color:#876321}
body #truedrive-site .td-look-switch{padding:4px;margin:0;flex:none}
body #truedrive-site .td-look-switch .td-theme-toggle{width:64px;min-width:64px;height:36px;min-height:36px;isolation:isolate}
body #truedrive-site .td-theme-toggle::after{content:"";position:absolute;inset:-4px;border-radius:999px}
body #truedrive-site .td-theme-toggle .td-theme-thumb{left:4px;top:4px;width:26px;height:26px}
body #truedrive-site .td-theme-toggle img{width:26px;height:26px}
body #truedrive-site .td-theme-toggle[aria-checked=true] .td-theme-thumb{transform:translateX(28px)}
body #truedrive-site .td-hero .td-cta,
body #truedrive-site .td-filter .td-cta,
body #truedrive-site #td-stock .td-cta,
body #truedrive-site #td-instagram .td-cta{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:10px;font-size:14px;line-height:1.5;text-align:center}
@media(max-width:600px){
 body #truedrive-site .td-language-bar{gap:8px;padding:8px 12px}
 body #truedrive-site .td-language-bar .td-look-switch{margin-right:auto}
 body #truedrive-site .td-language-bar .tdca-entry{order:2;width:100%;margin:0;justify-content:flex-start!important}
 body #truedrive-site .tdfm-account-tools{width:100%;gap:8px}
 body #truedrive-site .tdca-entry a,body #truedrive-site button.tdfm-top-entry{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 body #truedrive-site .td-language-bar select{min-height:44px;height:44px;font-size:16px}
}
html[data-td-look="modern"] body #truedrive-site .tdca-entry a{background:#c3ff00!important;border:1px solid #96b957!important;color:#182000!important}
@media(max-width:600px){html[data-td-look] body #truedrive-site .td-language-bar .tdca-entry a{min-height:44px}}

/* Lightweight, static brand coverage; original logo colours are preserved. */
body #truedrive-site .td-parts-brands{margin:28px 0 32px;padding:24px 0;border-block:1px solid var(--line,#dde2d9)}
body #truedrive-site .td-parts-brands h2{font-size:clamp(21px,2.6vw,28px);margin-bottom:12px}
body #truedrive-site .td-parts-brand-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:0;margin:20px 0;list-style:none}
body #truedrive-site .td-parts-brand-grid li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:128px;padding:14px 8px;border:1px solid var(--line,#dde2d9);border-radius:12px;background:#fff;color:#202820;text-align:center;box-shadow:none}
body #truedrive-site .td-parts-brand-grid img{display:block;width:80px;height:54px;max-width:100%;object-fit:contain;filter:none}
body #truedrive-site .td-parts-brand-grid strong{font:600 13px/1.4 Arial,sans-serif}
body #truedrive-site .td-parts-brand-grid small{font-size:12px;line-height:1.5;color:#526052}
body #truedrive-site .td-parts-brands .td-parts-brand-note{font-size:12px;line-height:1.8;margin-bottom:0;color:#526052}
@media(max-width:850px){body #truedrive-site .td-parts-brand-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:520px){body #truedrive-site .td-parts-brand-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body #truedrive-site .td-parts-brand-grid li{min-height:116px;padding:12px 5px}body #truedrive-site .td-parts-brand-grid img{width:64px;height:46px}}

/* Private parts-management entry beside the existing vehicle manager. */
html[data-td-look] body #truedrive-site .tdca-entry a.tdpm-entry{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#c3ff00!important;border:1px solid #96b957!important;color:#182000!important}
body .tdpm-entry svg{flex:none;stroke:currentColor}
html[data-td-look] body #truedrive-site button.tdfm-top-entry.tdpm-entry{background:#c3ff00!important;border:1px solid #96b957!important;color:#182000!important}

/* The private vehicle panel has its own shell, outside the public showroom. */
html[data-td-look="modern"] body:has(.tdfm-shell){background:#f5f7f2!important;color:#202820!important}
html[data-td-look="modern"] body .tdfm-shell{--td-manager-accent:#c3ff00;--td-manager-line:#d5e1cd;color:#202820}
html[data-td-look="modern"] body .tdfm-shell a{color:#42621f!important}
html[data-td-look="modern"] body .tdfm-shell .tdfm-head{padding:18px;border:1px solid #344530;border-radius:14px;background:#1d261d;color:#eef4e8;gap:16px}
html[data-td-look="modern"] body .tdfm-head strong{color:#c3ff00}
html[data-td-look="modern"] body .tdfm-head .tdfm-organised-nav>div+div{border-color:#4d6245}
html[data-td-look="modern"] body .tdfm-shell .tdfm-head nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;background:#2c3b27!important;border:1px solid #5b734e!important;border-radius:9px;color:#eef4e8!important;text-decoration:none}
html[data-td-look="modern"] body .tdfm-shell .tdfm-head nav a:hover{background:#3c502f!important;border-color:#c3ff00!important}
html[data-td-look="modern"] body .tdfm-shell .button,
html[data-td-look="modern"] body .tdfm-shell button,
html[data-td-look="modern"] body .tdfm-shell .page-title-action{background:#c3ff00!important;color:#182000!important;border:1px solid #98bb54!important;border-radius:9px;box-shadow:none}
html[data-td-look="modern"] body .tdfm-shell button:disabled{background:#e1e8d9!important;border-color:#d0dbc5!important;color:#626e58!important;cursor:not-allowed;opacity:1}
html[data-td-look="modern"] body .tdfm-shell .tdfm-card button{background:#fff5f2!important;color:#843c2d!important;border-color:#d4aaa0!important}
html[data-td-look="modern"] body .tdfm-shell input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
html[data-td-look="modern"] body .tdfm-shell select,
html[data-td-look="modern"] body .tdfm-shell textarea{background:#fff!important;color:#202820!important;border-color:#c7d6bc!important}
html[data-td-look="modern"] body .tdfm-shell input[type=radio],html[data-td-look="modern"] body .tdfm-shell input[type=checkbox]{accent-color:#4e7824}
html[data-td-look="modern"] body .tdfm-shell .tdfm-card,
html[data-td-look="modern"] body .tdfm-shell .tdvm-photo{background:#fff!important;border-color:#d5e1cd!important}
html[data-td-look="modern"] body .tdfm-shell .tdfm-photo-views{background:#263d20;color:#e6ffb4}
html[data-td-look="modern"] body .tdfm-shell .notice{background:#edf6e4!important;border-inline-start:3px solid #80a94b;color:#263d20}
html[data-td-look="modern"] body .tdfm-shell :focus-visible{outline:3px solid #587b29;outline-offset:3px}
html[data-td-look="modern"] body .tdfm-shell .tdfm-head :focus-visible{outline-color:#c3ff00}

/* Uploaded journey animation, isolated from the showroom styles. */
body #truedrive-site .td-journey-embed{margin:28px 0 12px;width:100%;border:1px solid var(--line,#dde2d9);border-radius:16px;overflow:hidden;background:#f9fcf7}
body #truedrive-site #td-journey-frame{display:block;width:100%;height:840px;border:0;background:transparent;max-width:100%}
@media(max-width:640px){body #truedrive-site #td-journey-frame{height:720px}body #truedrive-site .td-journey-embed{margin-top:18px}}
