.compass-3d-section {
  --compass-ink: #071a36;
  --compass-blue: #0769e6;
  --compass-orange: #f4511e;
  --compass-mint: #26cfa5;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 11%, rgba(53, 129, 255, .13), transparent 32rem),
    linear-gradient(180deg, #f5f9ff 0%, #fff 78%);
}

.compass-3d-shell {
  position: relative;
  border: 1px solid #d7e3f3;
  border-radius: 32px;
  padding: clamp(18px, 2.4vw, 34px);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 70px rgba(7, 35, 76, .12);
  isolation: isolate;
}

.compass-3d-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  right: -120px;
  top: -120px;
  border: 1px solid rgba(24, 104, 221, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(24, 104, 221, .04), 0 0 0 92px rgba(24, 104, 221, .025);
}

.compass-3d-topline,
.compass-3d-status,
.compass-3d-viewer-tools,
.compass-3d-source {
  display: flex;
  align-items: center;
}

.compass-3d-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.compass-3d-kicker,
.compass-3d-live {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.compass-3d-kicker { color: var(--compass-blue); }

.compass-3d-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(26, 164, 126, .22);
  border-radius: 999px;
  color: #08775f;
  background: #edfff9;
}

.compass-3d-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--compass-mint);
  box-shadow: 0 0 0 5px rgba(38, 207, 165, .14);
}

.compass-3d-heading {
  max-width: 850px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.compass-3d-heading h2 {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--compass-ink);
  font-size: clamp(34px, 4vw, 62px);
  line-height: .98;
  letter-spacing: -.055em;
}

.compass-3d-heading p {
  max-width: 720px;
  margin: 0;
  color: #5b6e8b;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.compass-3d-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(290px, .72fr);
  gap: 18px;
}

.compass-3d-viewer {
  position: relative;
  container-type: inline-size;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(126, 156, 197, .32);
  border-radius: 24px;
  background: linear-gradient(155deg, #eef5ff, #dce9f9 60%, #f8fbff);
}

.compass-3d-poster,
.compass-3d-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compass-3d-poster {
  display: grid;
  place-items: end center;
  padding: 22px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(238, 245, 255, .08), rgba(7, 26, 54, .1)),
    url("assets/offers/manufacturer-weekly/jeep-compass-altitude-ehybrid-145/01-copertina.webp") center/cover no-repeat;
  transition: opacity .28s ease, visibility .28s ease;
}

.compass-3d-viewer[data-loaded="true"] .compass-3d-poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.compass-3d-launch {
  display: inline-grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 470px);
  min-height: 72px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 18px;
  color: #fff;
  text-align: left;
  background: rgba(5, 28, 63, .92);
  box-shadow: 0 18px 42px rgba(6, 28, 63, .3);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.compass-3d-launch:hover { transform: translateY(-2px); }

.compass-3d-launch-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  background: linear-gradient(145deg, #0b7cff, #0750c9);
}

.compass-3d-launch strong,
.compass-3d-launch small { display: block; }
.compass-3d-launch strong { font-size: 16px; }
.compass-3d-launch small { margin-top: 3px; color: #b9cff0; font-size: 12px; }
.compass-3d-launch-arrow { font-size: 22px; }

.compass-3d-frame {
  z-index: 2;
  border: 0;
  background: #eaf2fc;
}

.compass-3d-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr);
  color: #fff;
  background: #071a36;
}

.compass-3d-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #071a36;
}

.compass-3d-modal-bar span,
.compass-3d-modal-bar b,
.compass-3d-modal-bar small { display: block; }
.compass-3d-modal-bar b { color: #73aaff; font-size: 10px; letter-spacing: .14em; }
.compass-3d-modal-bar small { margin-top: 3px; color: #fff; font-size: 13px; font-weight: 700; }

.compass-3d-modal-bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  font: 300 28px/1 Arial, sans-serif;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.compass-3d-modal-stage { position: relative; min-height: 0; background: #eef5ff; }
.compass-3d-modal-stage .compass-3d-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.compass-3d-modal-open { overflow: hidden; }

.compass-3d-viewer-tools {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  gap: 8px;
  pointer-events: none;
}

.compass-3d-viewer-tools span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  background: rgba(5, 28, 63, .76);
  backdrop-filter: blur(8px);
}

.compass-3d-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compass-3d-panel {
  padding: 18px;
  border: 1px solid #dbe6f4;
  border-radius: 20px;
  background: #f8fbff;
}

.compass-3d-panel.is-offer {
  color: #fff;
  border-color: rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 100% 0, rgba(35, 116, 235, .34), transparent 52%),
    #071e42;
}

.compass-3d-panel-label {
  display: block;
  margin-bottom: 11px;
  color: #7890b2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.is-offer .compass-3d-panel-label { color: #8ebdff; }

.compass-3d-panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.compass-3d-panel p {
  margin: 0;
  color: #657894;
  font-size: 13px;
  line-height: 1.45;
}

.is-offer p { color: #b7c8e1; }

.compass-3d-choice-list {
  display: grid;
  gap: 8px;
}

.compass-3d-choice {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 38px 9px 10px;
  border: 1px solid #d6e3f3;
  border-radius: 14px;
  color: #29405f;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.compass-3d-choice:hover { border-color: #86b5f8; }

.compass-3d-choice[aria-checked="true"] {
  color: #fff;
  border-color: #0e66d7;
  background: linear-gradient(135deg, #096fe9, #0757c6);
  box-shadow: 0 10px 24px rgba(5, 94, 211, .2);
}

.compass-3d-choice-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #0c62cc;
  font-size: 11px;
  font-weight: 900;
  background: #edf5ff;
}

.compass-3d-choice[aria-checked="true"] .compass-3d-choice-index {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.compass-3d-choice strong,
.compass-3d-choice small { display: block; }
.compass-3d-choice strong { font-size: 13px; line-height: 1.2; }
.compass-3d-choice small { margin-top: 3px; color: #71839e; font-size: 10px; }
.compass-3d-choice[aria-checked="true"] small { color: #c6dcfb; }

.compass-3d-choice::after {
  content: "→";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e8eb9;
  font-weight: 800;
}
.compass-3d-choice[aria-checked="true"]::after { color: #fff; }

.compass-3d-trims {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compass-3d-trim {
  padding: 8px 11px;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  color: #1f4d86;
  font-size: 11px;
  font-weight: 800;
  background: #fff;
}

.compass-3d-colors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.compass-3d-swatch {
  aspect-ratio: 1;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cadaed, 0 4px 10px rgba(21, 55, 96, .12);
}

.compass-3d-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f3d9c8;
  border-radius: 16px;
  color: #6e3b22;
  font-size: 12px;
  line-height: 1.45;
  background: #fff8f3;
}

.compass-3d-note::before {
  content: "i";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: var(--compass-orange);
}

.compass-3d-source {
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dbe5f1;
  color: #6e8098;
  font-size: 11px;
}

.compass-3d-source a {
  color: #075ecf;
  font-weight: 800;
  text-decoration: none;
}

/*
 * When the viewer becomes narrower inside the two-column desktop layout,
 * reserve a dedicated lower row for the decorative interaction labels.
 * This prevents them from covering the launch CTA at intermediate widths.
 */
@container (max-width: 900px) {
  .compass-3d-poster { padding-bottom: 78px; }
}

@media (max-width: 1060px) {
  .compass-3d-layout { grid-template-columns: 1fr; }
  .compass-3d-viewer { min-height: 500px; }
  .compass-3d-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .compass-3d-shell { border-radius: 22px; }
  .compass-3d-topline { align-items: flex-start; flex-direction: column; }
  .compass-3d-heading h2 { font-size: 37px; }
  .compass-3d-viewer { min-height: 430px; border-radius: 18px; }
  .compass-3d-poster { padding: 12px; background-size: 126% auto; background-position: center 34%; }
  .compass-3d-launch { grid-template-columns: 42px 1fr auto; min-height: 66px; }
  .compass-3d-launch-icon { width: 42px; height: 42px; }
  .compass-3d-viewer-tools { display: none; }
  .compass-3d-choice-list { grid-template-columns: 1fr; }
  .compass-3d-source { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .compass-3d-launch,
  .compass-3d-poster { transition: none; }
}
