.dc-veh-noscroll{overflow:hidden}
.dc-veh-drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:9998}
.dc-veh-drawer-overlay.is-open{opacity:1;pointer-events:auto}
.dc-veh-drawer{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.95);background:#fff;border-radius:16px;z-index:9999;box-shadow:0 15px 50px rgba(0,0,0,.2);width:90%;max-width:1050px;opacity:0;pointer-events:none;transition:all .25s cubic-bezier(0.25,0.8,0.25,1);max-height:90vh;display:flex;flex-direction:column}
.dc-veh-drawer.is-open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
.dc-veh-head{display:flex;gap:14px;padding:18px 18px 8px 18px;align-items:flex-start}
.dc-veh-icon{width:54px;height:54px;border:1px solid #eee;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.dc-veh-title{font-size:20px;font-weight:700;margin:0;line-height:1.2}
.dc-veh-sub{margin:6px 0 0 0;color:#555;line-height:1.35}
.dc-veh-close{margin-left:auto;border:0;background:transparent;font-size:28px;cursor:pointer;line-height:1;padding:0 6px;color:#222;outline:none;}
.dc-veh-body{padding:10px 18px 18px 18px;overflow:visible;flex:1;}
.dc-veh-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px; align-items:end;}

.dc-veh-field label{display:block;font-weight:600;margin:0 0 6px 2px}
.dc-veh-field select{width:100%;padding:12px 12px;border-radius:12px;border:1px solid #ddd;background:#fff}
.dc-veh-field input.dc-veh-make-search{width:100%;padding:12px 12px;border-radius:12px;border:1px solid #ddd;background:#fff}

/* CUSTOM PREDICTIVE SELECT */
.dc-cs-wrapper { position: relative; width: 100%; }
.dc-cs-wrapper.is-open { z-index: 999999; }
.dc-cs-display { padding: 10px 14px; border-radius: 12px; border: 1px solid #ddd; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: all 0.2s ease; font-size: 14.5px; color:#555; min-height: 46px; box-sizing: border-box; }
.dc-cs-wrapper.has-value .dc-cs-display { border-color: #999; color: #111; }
.dc-cs-wrapper.is-open .dc-cs-display { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.dc-cs-wrapper.is-disabled .dc-cs-display { background: transparent; border: 1px dashed #cfcfcf; color: #a1a1aa; cursor: not-allowed; opacity: 1; box-shadow: none; }
input.dc-cs-combo-input { border: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; outline: none !important; width: 100% !important; font-size: 14.5px !important; color: #111 !important; box-shadow: none !important; line-height: 1.5 !important; text-align: left !important; }
input.dc-cs-combo-input::placeholder { color: #555 !important; text-align: left !important; font-weight: 500; }
.dc-cs-wrapper.has-value input.dc-cs-combo-input::placeholder { color: #888 !important; font-weight: normal; }
.dc-cs-wrapper.is-disabled input.dc-cs-combo-input::placeholder { color: #a1a1aa !important; font-weight: normal; }
.dc-cs-arrow { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #888; transition: transform 0.2s; margin-left: 8px; flex-shrink: 0; }
.dc-cs-wrapper.has-value .dc-cs-arrow { border-top-color: #444; }
.dc-cs-wrapper.is-disabled .dc-cs-arrow { border-top-color: #d4d4d8; }
.dc-cs-wrapper.is-open .dc-cs-arrow { transform: rotate(180deg); }
.dc-cs-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #dfdfdf; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 100000; overflow: hidden; display: flex; flex-direction: column; }
.dc-cs-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.dc-cs-item { padding: 10px 14px; font-size: 14px; color: #333; cursor: pointer; transition: background 0.15s; }
.dc-cs-item:hover { background: #f0f4f8; color: #1e40af; }
.dc-cs-item-empty { padding: 10px 14px; font-size: 14px; color: #888; font-style: italic; }
.dc-veh-home .dc-cs-display { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); color: #fff; }
.dc-veh-home .dc-cs-wrapper.is-open .dc-cs-display { background: rgba(255,255,255,0.12); border-color: #5d9cec; box-shadow: 0 0 0 4px rgba(93,156,236,0.15); }
.dc-veh-home .dc-cs-arrow { border-top-color: #fff; }
.dc-veh-home .dc-cs-wrapper.is-disabled .dc-cs-display { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.5); }
.dc-veh-home .dc-cs-wrapper.is-disabled .dc-cs-arrow { border-top-color: rgba(255,255,255,0.4); }

.dc-veh-actions{display:flex;gap:14px;justify-content:flex-end;align-items:center;margin-top:16px;flex-wrap:wrap}
.dc-veh-clear{color:#3483fa;text-decoration:none;font-weight:600}
.dc-veh-submit{padding:12px 16px;border-radius:12px;border:0;background:#e6e6e6;color:#999;font-weight:700;cursor:not-allowed; transition: all 0.2s; font-size: 14.5px;}
.dc-veh-submit:not(:disabled){background:#3483fa;color:#fff !important;cursor:pointer}
.dc-veh-submit:not(:disabled):hover{background:#2563eb;}

@media (max-width:980px){.dc-veh-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:600px){.dc-veh-grid{grid-template-columns:1fr;}.dc-veh-actions{justify-content:stretch}}

.dc-fitment-box { 
  border-radius: 16px; 
  padding: 18px 22px; 
  background: #ffffff; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.04); 
  border: 1px solid rgba(0,0,0,0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.dc-fitment-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.dc-fitment-ok { 
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%); 
  border-left: 6px solid #22c55e;
}
.dc-fitment-bad { 
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%); 
  border-left: 6px solid #ef4444;
}
.dc-fitment-warn { 
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%); 
  border-left: 6px solid #f59e0b;
}
.dc-fitment-title { 
  font-weight: 700; 
  font-size: 17px; 
  margin-bottom: 6px; 
  display: flex; 
  align-items: center; 
  gap: 8px;
  letter-spacing: -0.3px;
}
.dc-fitment-ok .dc-fitment-title { color: #166534; }
.dc-fitment-bad .dc-fitment-title { color: #991b1b; }
.dc-fitment-warn .dc-fitment-title { color: #92400e; }

.dc-fitment-sub { color: #52525b; font-size: 14.5px; line-height: 1.4; }
.dc-fitment-note { margin-top: 10px; color: #71717a; font-size: 13px; font-style: italic; }
.dc-fitment-info { 
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%); 
  border-left: 6px solid #3483fa;
}
.dc-fitment-info .dc-fitment-title { color: #1e40af; }

.dc-fitment-actions { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.dc-fitment-actions a { color: #3b82f6; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: all 0.15s ease; }
.dc-fitment-actions a:hover { color: #2563eb; text-decoration: underline; }

.dc-fitment-btn-primary { 
  display: inline-block;
  background: #3483fa; 
  color: #fff !important; 
  padding: 8px 16px; 
  border-radius: 8px; 
  border: 0;
  cursor: pointer;
  font-size: 14.5px; 
  font-weight: 600; 
  text-decoration: none !important; 
  text-align: center; 
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(52,131,250,.2);
  transition: all 0.2s ease;
}
.dc-fitment-actions .dc-fitment-btn-primary {
  width: 100%;
}
.dc-fitment-btn-primary:hover {
  background: #2968c8;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(52,131,250,.3);
}
.dc-fitment-engines { display: none; margin-top: 10px; color: #333; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }

/* Home Selector Premium UI */
.dc-veh-home { background: linear-gradient(135deg, #161e29 0%, #20354b 100%); border-radius: 16px; padding: 28px 32px; box-shadow: 0 16px 40px rgba(0,0,0,.2); color: #fff; position: relative; overflow: hidden; margin: 30px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.dc-veh-home::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%); pointer-events: none; }
.dc-veh-home .dc-veh-title { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 6px 0; letter-spacing: -0.5px;}
.dc-veh-home .dc-veh-sub { color: #9fb3c8; font-size: 15px; margin: 0 0 24px 0;}
.dc-veh-home .dc-veh-grid { position: relative; z-index: 1;}
.dc-veh-home label { color: #d0e1f9; font-size: 13px; margin: 0 0 8px 2px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8;}
.dc-veh-home input.dc-veh-make-search, .dc-veh-home input.dc-veh-model-search, .dc-veh-home select { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #fff; border-radius: 12px; padding: 14px; font-size: 15px; transition: all 0.25s ease; box-sizing: border-box;}
.dc-veh-home input.dc-veh-make-search::placeholder, .dc-veh-home input.dc-veh-model-search::placeholder { color: rgba(255,255,255,0.4); }
.dc-veh-home select option { color: #222; background: #fff;}
.dc-veh-home .dc-veh-actions { position: relative; z-index: 1; align-items: center; justify-content: flex-end;}
.dc-veh-home .dc-veh-clear { color: #8a9cae; text-decoration: none; font-size: 14px; transition: color 0.2s;}
.dc-veh-home .dc-veh-clear:hover { color: #fff; text-decoration: underline;}
.dc-veh-home .dc-veh-submit { background: linear-gradient(90deg, #3483fa, #5d9cec); box-shadow: 0 6px 16px rgba(52,131,250,.3); color: #fff; border: 0; padding: 14px 28px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); letter-spacing: 0.5px;}
.dc-veh-home .dc-veh-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(52,131,250,.4); }
.dc-veh-home .dc-veh-submit:disabled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3); box-shadow: none; cursor: not-allowed; }
.dc-veh-home .dc-veh-make-suggestions, .dc-veh-home .dc-veh-model-suggestions { background: #fff; color: #333; border: 0; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); margin-top: 8px;}

/* CSS Custom Spinner */
.dc-loader-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: dc-spin 0.8s ease-in-out infinite; margin-right: 8px; vertical-align: text-bottom; }
@keyframes dc-spin { to { transform: rotate(360deg); } }

/* Global Update State for Fitment Box & Home Selector */
.dc-fitment-box.dc-is-updating, .dc-veh-home.dc-is-updating {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.8;
}
.dc-fitment-box.dc-is-updating::after, .dc-veh-home.dc-is-updating::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, #3483fa, transparent);
  animation: dc-scan 1.2s infinite ease-in-out;
  z-index: 10;
}
@keyframes dc-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Garage Active Bar */
.dc-gar-bar-wrap {
  width: 100%;
  box-sizing: border-box;
  display: block;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0; 
  z-index: 8000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.dc-gar-bar-inner {
  width: 100%;
  max-width: var(--container-width, var(--e-container-max-width, 1140px));
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: opacity 0.3s ease;
}
.dc-gar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dc-gar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eefdf4;
  color: #22c55e;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dc-gar-text {
  font-size: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.dc-gar-label {
  color: #666;
}
.dc-gar-vehicle {
  color: #111;
  font-weight: 600;
}
.dc-gar-edit {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  cursor: pointer;
  color: #555 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  transition: all 0.2s ease !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  gap: 6px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
  margin-left: 8px !important;
  font-family: inherit;
}
.dc-gar-edit:hover {
  background: #f8f9fa !important;
  border-color: rgba(0,0,0,0.15) !important;
  color: #3483fa !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05) !important;
  transform: translateY(-1px);
}
.dc-gar-edit svg {
  flex-shrink: 0;
}
.dc-gar-edit-text {
  display: inline-block;
}
.dc-gar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dc-gar-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

/* iOS Toggle Switch */
.dc-gar-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
}
.dc-gar-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.dc-gar-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}
.dc-gar-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .dc-gar-slider {
  background-color: #3483fa;
}
input:checked + .dc-gar-slider:before {
  transform: translateX(20px);
}

@media (max-width: 768px) {
  .dc-gar-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dc-gar-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #eee;
  }
}
.dc-veh-field-make .dc-cs-wrapper:not(.is-disabled) .dc-cs-display {
    border-color: #999; 
}
.dc-veh-field-make .dc-cs-wrapper:not(.is-disabled) input.dc-cs-combo-input::placeholder {
    color: #111 !important;
    font-weight: 500;
}
.dc-veh-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px; align-items:end;}
.dc-veh-actions-inline { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dc-veh-actions-inline .dc-veh-submit { width: 100%; padding: 12px 10px; font-size: 13.5px; }
@media (max-width:980px){
  .dc-veh-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .dc-veh-actions-inline { grid-column: 1 / -1; align-items: stretch; margin-top: 10px; }
  .dc-veh-actions-inline .dc-veh-clear { text-align: center; margin-top: 8px; }
}
@media (max-width:600px){
  .dc-veh-grid{grid-template-columns:1fr;}
  .dc-veh-actions-inline { grid-column: 1 / -1; }
}
.dc-veh-btn-disabled { background: #e6e6e6 !important; color: #999 !important; cursor: not-allowed !important; box-shadow: none !important; }
.dc-veh-btn-red { background: #dc2626 !important; color: #fff !important; cursor: pointer !important; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important; }
.dc-veh-btn-red:hover { background: #b91c1c !important; transform: translateY(-1px); }
.dc-veh-btn-blue { background: #3483fa !important; color: #fff !important; cursor: pointer !important; }
.dc-veh-btn-blue:hover { background: #2563eb !important; }
