/* --- local UI runtime for the offline copy ------------------------------- */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 84px;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* elements the original app revealed with JS */
.cv-shown {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------------------------------------------------- dropdown menu */
.cv-panel {
  position: absolute;
  z-index: 1000;
  min-width: 240px;
  max-width: 320px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  font-size: 14px;
  line-height: 1.35;
  animation: cv-in .12s ease-out;
}

@keyframes cv-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.cv-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1f1f1f;
  font-weight: 600;
  text-decoration: none;
}

.cv-panel a:hover,
.cv-panel a:focus-visible {
  background: #f2f6ff;
  color: #0073f0;
  outline: none;
}

.cv-panel .cv-note {
  padding: 8px 10px;
  color: #858585;
  font-size: 12px;
}

/* ---------------------------------------------------------- mobile drawer */
.cv-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #fff;
  overflow-y: auto;
  padding: 16px 16px 48px;
}

.cv-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cv-drawer h3 {
  margin: 20px 0 6px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #858585;
}

.cv-drawer a {
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
  color: #1f1f1f;
  font-weight: 600;
  text-decoration: none;
}

.cv-drawer a:hover { background: #f2f6ff; color: #0073f0; }

.cv-close,
.cv-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cv-close:hover,
.cv-back:hover { border-color: #1f1f1f; }

/* ------------------------------------------------------ country / language */
.cv-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 16px;
  overflow-y: auto;
}

.cv-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  padding: 24px;
}

.cv-modal h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
  text-align: center;
}

.cv-modal .cv-sub {
  margin: 0 0 16px;
  color: #858585;
  font-size: 13px;
  text-align: center;
}

.cv-modal .cv-x {
  position: absolute;
  top: 14px;
  right: 14px;
}

.cv-search {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
}

.cv-search:focus { outline: 2px solid #0073f0; border-color: transparent; }

.cv-region {
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #858585;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
}

.cv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.cv-item:hover { background: #f2f6ff; border-color: #cfe3ff; }

.cv-item.cv-current { border-color: #0073f0; box-shadow: 0 0 0 1px #0073f0 inset; }

.cv-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.cv-empty {
  padding: 24px;
  color: #858585;
  text-align: center;
}

.cv-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  color: #858585;
  font-size: 12px;
  text-align: center;
}

.cv-foot a { color: #0073f0; }

/* ------------------------------------------------------------ small fixes */
.cv-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1300;
  max-width: 92vw;
  padding: 12px 18px;
  border-radius: 12px;
  background: #1f1f1f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.cv-msg-ok { color: #0a7d32; font-weight: 700; }

.cv-form-error { color: #dc2121; font-size: 13px; margin-top: 6px; }

/* injected country / language trigger (used on locales whose header has none) */
.cv-langbtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid #d6d6d6; background: #fff; color: #1f1f1f;
  font: inherit; font-size: 13px; line-height: 1; cursor: pointer;
}
.cv-langbtn:hover { border-color: #858585; }
.cv-langbtn img { display: block; width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.cv-langcode { font-weight: 600; letter-spacing: .02em; }

/* sample-report: static caption shown instead of the external viewer frame */
.cv-frbox {
  position: absolute; inset: 0; z-index: 12;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 28px; text-align: center; background: #f5f7fa;
}
.cv-frtitle { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; color: #1f1f1f; }
.cv-frbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: #0073f0; color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; word-break: break-all;
}
.cv-frbtn:hover { background: #005cc0; color: #fff; }

/* ------------------------------------------------------------------ VIN field
   the floating hint of the site sits on top of the input; cv.js fades it out
   while the user types, these rules are the fallback and stop it eating clicks */
[class*="_placeholder"] { pointer-events: none; }
.cv-ph-off { opacity: 0 !important; visibility: hidden; }
input[name="identifier"] { text-transform: uppercase; }
input[name="identifier"]::placeholder { color: transparent; }
input[name="identifier"]:not(:placeholder-shown) ~ [class*="_placeholder"] {
  opacity: 0 !important;
  visibility: hidden;
}

/* VIN / registration segmented switch: keyboard focus and the sliding pill */
label[class*="_button"]:has(input[name="mode"]:focus-visible) {
  outline: 2px solid #aadcff;
  outline-offset: 2px;
}
span[class*="_activeIndicator"] { transition: background-color .1s ease-out; }
