.ace-dealer-nav,
.ace-dealer-nav * { box-sizing: border-box; }

.ace-dealer-nav[hidden] { display: none !important; }

.ace-dealer-nav {
  --ace-nav-navy: #061321;
  --ace-nav-navy-2: #092b46;
  --ace-nav-orange: #ff6417;
  --ace-nav-amber: #ffb14a;
  --ace-nav-cyan: #68e1ed;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.ace-dealer-nav.is-open { opacity: 1; visibility: visible; }

.ace-dealer-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 18, .82);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
}

.ace-dealer-nav__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(820px, calc(100dvh - 40px));
  overflow: auto;
  padding: clamp(30px, 4.8vw, 54px);
  border: 1px solid rgba(104, 225, 237, .35);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(104,225,237,.18), transparent 27%),
    radial-gradient(circle at 5% 100%, rgba(255,100,23,.18), transparent 30%),
    linear-gradient(145deg, #061321, #0a2c47);
  box-shadow: 0 45px 100px -36px rgba(0,0,0,.95), 0 0 0 7px rgba(104,225,237,.035);
  outline: none;
  transform: translateY(14px) scale(.985);
  transition: transform .25s ease;
}

.ace-dealer-nav__dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--ace-nav-orange), var(--ace-nav-amber), var(--ace-nav-cyan));
}

.ace-dealer-nav.is-open .ace-dealer-nav__dialog { transform: translateY(0) scale(1); }

.ace-dealer-nav__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.07);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.ace-dealer-nav__close:hover,
.ace-dealer-nav__close:focus-visible { border-color: var(--ace-nav-cyan); background: rgba(104,225,237,.12); }

.ace-dealer-nav__close:focus-visible,
.ace-dealer-nav__choice:focus-visible,
.ace-dealer-nav-launcher:focus-visible,
.ace-dealer-nav__help a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.ace-dealer-nav__intro { max-width: 760px; padding-right: 52px; }

.ace-dealer-nav__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  color: #ffd18d !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ace-dealer-nav__eyebrow span {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--ace-nav-orange), var(--ace-nav-amber));
  box-shadow: 0 0 14px rgba(255,100,23,.65);
}

.ace-dealer-nav__intro h2 {
  margin: 0 !important;
  color: #fff !important;
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif !important;
  font-size: clamp(38px, 6vw, 66px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -.045em;
}

.ace-dealer-nav__intro > p:last-child {
  margin: 14px 0 0 !important;
  color: #c1d2de !important;
  font-size: clamp(17px, 2vw, 21px) !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

.ace-dealer-nav__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 30px;
}

.ace-dealer-nav__choice {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  color: #fff !important;
  background: rgba(255,255,255,.065);
  text-decoration: none !important;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ace-dealer-nav__choice::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ace-nav-orange), var(--ace-nav-amber));
}

.ace-dealer-nav__choice--credit::after { background: linear-gradient(90deg, #1eb8d0, var(--ace-nav-cyan)); }
.ace-dealer-nav__choice--pos::after { background: linear-gradient(90deg, var(--ace-nav-amber), var(--ace-nav-cyan)); }

.ace-dealer-nav__choice:hover,
.ace-dealer-nav__choice:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(104,225,237,.55);
  background: rgba(255,255,255,.105);
  box-shadow: 0 25px 46px -30px rgba(104,225,237,.6);
}

.ace-dealer-nav__number { color: rgba(255,255,255,.28); font-size: 34px; font-weight: 950; line-height: 1; }
.ace-dealer-nav__label { margin-top: 28px; color: #fff; font-size: 20px; font-weight: 950; line-height: 1.2; }
.ace-dealer-nav__detail { margin-top: 10px; color: #e0edf3; font-size: 14px; font-weight: 650; line-height: 1.55; }
.ace-dealer-nav__action { margin-top: auto; padding-top: 22px; color: #ffd18d; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ace-dealer-nav__action b { color: var(--ace-nav-cyan); font-size: 16px; }

.ace-dealer-nav__badge {
  position: absolute;
  top: 17px;
  right: 17px;
  padding: 6px 9px;
  border: 1px solid rgba(255,177,74,.45);
  border-radius: 999px;
  color: #ffe2b6;
  background: rgba(255,177,74,.1);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ace-dealer-nav__help { margin: 23px 0 0 !important; color: #9fb5c3 !important; font-size: 12px !important; line-height: 1.5 !important; text-align: center; }
.ace-dealer-nav__help a { color: #fff !important; font-weight: 900; text-decoration: underline; text-decoration-color: rgba(104,225,237,.6); text-underline-offset: 4px; }

.ace-dealer-nav-launcher {
  position: fixed;
  z-index: 2147482000;
  right: 22px;
  bottom: 22px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid #ffb14a;
  border-radius: 999px;
  color: #071522;
  background: linear-gradient(135deg, #ff6417, #ffb14a);
  box-shadow: 0 18px 35px -17px rgba(255,100,23,.95);
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
}

.ace-dealer-nav-launcher span { width: 8px; height: 8px; border-radius: 50%; background: #0a3653; box-shadow: 0 0 0 4px rgba(10,54,83,.13); }
.ace-dealer-nav-launcher:hover { transform: translateY(-2px); }
.ace-dealer-nav-open .ace-dealer-nav-launcher { opacity: 0; pointer-events: none; }
.ace-dealer-nav-open { overflow: hidden !important; }

/* The sitewide mobile call bar otherwise covers the dialog's final help line. */
body.ace-dealer-nav-open #callnowbutton.cnb-full-bottom { display: none !important; }

@media (max-width: 760px) {
  .ace-dealer-nav { align-items: end; padding: 10px; }
  .ace-dealer-nav__dialog { max-height: calc(100dvh - 20px); padding: 30px 18px 22px; border-radius: 19px; }
  .ace-dealer-nav__dialog::before { border-radius: 19px 19px 0 0; }
  .ace-dealer-nav__close { top: 13px; right: 13px; width: 42px; height: 42px; }
  .ace-dealer-nav__intro { padding-right: 42px; }
  .ace-dealer-nav__intro h2 { font-size: 38px !important; }
  .ace-dealer-nav__intro > p:last-child { font-size: 16px !important; }
  .ace-dealer-nav__choices { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .ace-dealer-nav__choice { min-height: 0; padding: 18px 18px 17px; }
  .ace-dealer-nav__number { font-size: 24px; }
  .ace-dealer-nav__label { margin-top: 14px; font-size: 18px; }
  .ace-dealer-nav__detail { margin-top: 7px; font-size: 13px; }
  .ace-dealer-nav__action { padding-top: 14px; }
  .ace-dealer-nav__help { margin-top: 16px !important; }
  .ace-dealer-nav-launcher { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); min-height: 46px; padding: 10px 14px; }
}

@media (max-width: 380px) {
  .ace-dealer-nav__dialog { padding-top: 27px; }
  .ace-dealer-nav__eyebrow { max-width: 240px; font-size: 9px !important; }
  .ace-dealer-nav__intro h2 { font-size: 34px !important; }
  .ace-dealer-nav__choice { padding: 15px 16px; }
  .ace-dealer-nav__label { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .ace-dealer-nav,
  .ace-dealer-nav__dialog,
  .ace-dealer-nav__choice,
  .ace-dealer-nav-launcher { transition: none !important; }
}
