/* v3 bonuses. Figma: Bonuses 11746:18741 (1440; Default and Variant2 = scrolled state with the left column pinned), mobile 11310:3911 (430). */
.v3-bonus {
  --bn-dash: repeating-linear-gradient(180deg, var(--v3-gray-50) 0 3px, transparent 3px 5px);
  background: var(--v3-bg-gray);
  overflow-x: clip;               /* clip, not hidden: no x-overflow, and position: sticky below keeps working */
  isolation: isolate;
}
.v3-bonus::before,
.v3-bonus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.v3-bonus::before {               /* 5 dashed guide lines + dashed bottom edge */
  max-width: var(--v3-container-max);
  margin-inline: auto;
  background:
    var(--bn-dash) 3.47% 0 / 1px 100% no-repeat,
    var(--bn-dash) 26.94% 0 / 1px 100% no-repeat,
    var(--bn-dash) 50% 0 / 1px 100% no-repeat,
    var(--bn-dash) 73.06% 0 / 1px 100% no-repeat,
    var(--bn-dash) 96.53% 0 / 1px 100% no-repeat;
}
.v3-bonus::after {
  opacity: 0.04;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 256px;
}

/* ---- layout: left column pinned while the right one scrolls (Variant2) ---- */
.v3-bonus__inner {
  display: grid;
  grid-template-columns: minmax(0, 563fr) minmax(0, 652fr);
  column-gap: clamp(40px, 7.015vw, 101px);   /* 101px at 1440: 563 + 101 + 652 = 1316 */
  row-gap: 60px;
}
.v3-bonus__left {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  position: sticky;
  top: calc(var(--v3-header-h, 62px) + 34px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.v3-bonus__photo,
.v3-bonus__how,
.v3-bonus__actions { grid-column: 2; }

/* ---- header ---- */
.v3-bonus__head { display: flex; flex-direction: column; gap: 40px; }
.v3-bonus__label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  font-size: var(--v3-fs-caption);
  font-weight: 700;
  line-height: var(--v3-lh-tight);
  text-transform: uppercase;
}
.v3-bonus__label::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--v3-primary); }
.v3-bonus__title { color: var(--v3-dark); }
.v3-bonus__muted { color: var(--v3-gray-200); }

/* ---- city picker ---- */
.v3-bonus__picker { display: flex; align-items: center; gap: 12px; }
.v3-bonus__select { position: relative; width: 280px; flex: none; }
.v3-bonus__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--v3-gray-50);
  border-radius: var(--v3-radius-sm);
  background: var(--v3-bg-light);
  color: var(--v3-gray-200);
  font: 500 16px/1.4 var(--v3-font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.v3-bonus__trigger:hover { border-color: var(--v3-primary); }
.v3-bonus__trigger:focus-visible { outline: 2px solid var(--v3-primary); outline-offset: 3px; }
.v3-bonus__trigger img { flex: none; transition: transform 0.2s ease; }
.v3-bonus__trigger[aria-expanded="true"] img { transform: rotate(180deg); }
.v3-bonus__current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-bonus__current.is-chosen { color: var(--v3-dark); }

.v3-bonus__list {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 4px) 0 auto;
  max-height: 260px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--v3-gray-50);
  border-radius: var(--v3-radius-sm);
  background: var(--v3-white);
  box-shadow: 0 8px 24px -8px rgba(10, 10, 10, 0.18);
}
.v3-bonus__list[hidden] { display: none; }
.v3-bonus__option { padding: 10px 12px; border-radius: 6px; font-size: 16px; line-height: var(--v3-lh-body-m); cursor: pointer; }
.v3-bonus__option:hover,
.v3-bonus__option.is-active { background: var(--v3-primary-10); }
.v3-bonus__option[aria-selected="true"] { color: var(--v3-primary); font-weight: 600; }

.v3-bonus__result {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--v3-radius-sm);
  background: var(--v3-primary);
  color: var(--v3-white);
  font-size: 16px;
  font-weight: 600;
  line-height: var(--v3-lh-body-m);
  white-space: nowrap;
}

/* ---- right column ---- */
.v3-bonus__photo { overflow: hidden; border-radius: var(--v3-radius-md); aspect-ratio: 652 / 367; }
.v3-bonus__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v3-bonus__how { display: flex; flex-direction: column; gap: 28px; }
.v3-bonus__intro { margin: 0; font-size: 16px; line-height: var(--v3-lh-body-m); }
.v3-bonus__intro strong { font-weight: 700; }
.v3-bonus__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.v3-bonus__step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 216px;
  padding: 32px 24px 24px;        /* 8px teal bar + 24px card padding */
  border: 1px solid var(--v3-primary-light);
  border-top: 8px solid var(--v3-primary);
  border-radius: var(--v3-radius-lg) var(--v3-radius-lg) var(--v3-radius-md) var(--v3-radius-md);
  background: var(--v3-white);
}
.v3-bonus__step-title { font-size: var(--v3-fs-h3); font-weight: 700; line-height: var(--v3-lh-tight); }
.v3-bonus__step-text { font-size: 16px; line-height: var(--v3-lh-body-m); color: var(--v3-gray-200); }
.v3-bonus__step-text p { margin: 0; }
.v3-bonus__step-text strong { font-weight: 700; }

.v3-bonus__actions { display: flex; flex-direction: column; gap: 20px; }
.v3-bonus__note { max-width: 508px; margin: 0; font-size: 12px; line-height: var(--v3-lh-tight); color: var(--v3-gray-200); }
.v3-bonus__cta { width: 320px; max-width: 100%; }

/* ---- <=1024: one column in the mobile order (head, photo, picker, how, actions) ---- */
@media (max-width: 1024px) {
  .v3-bonus::before {
    max-width: none;
    background:
      var(--bn-dash) 16px 0 / 1px 100% no-repeat,
      var(--bn-dash) calc(100% - 16px) 0 / 1px 100% no-repeat;
  }
  .v3-bonus__inner { display: flex; flex-direction: column; gap: 36px; }
  .v3-bonus__left { display: contents; }
  .v3-bonus__head { order: 1; gap: 12px; }
  .v3-bonus__label { height: 20px; }
  .v3-bonus__photo { order: 2; }
  .v3-bonus__picker { order: 3; }
  .v3-bonus__how { order: 4; margin-bottom: -4px; gap: 20px; }
  .v3-bonus__actions { order: 5; flex-direction: column-reverse; }
  .v3-bonus__note { font-size: 14px; line-height: var(--v3-lh-body-s); }
  .v3-bonus__cta { width: 100%; }
}

@media (max-width: 768px) {
  .v3-bonus__picker { gap: 8px; }
  .v3-bonus__select { width: min(220px, 55%); }
  .v3-bonus__result { flex: 1; min-width: 0; padding-inline: 12px; justify-content: center; }
  .v3-bonus__steps { gap: 8px; }
  .v3-bonus__step { gap: 32px; justify-content: flex-start; min-height: 0; padding: 16px 12px 12px; border-top-width: 4px; }
  .v3-bonus__step-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .v3-bonus__result { font-size: 14px; }
  .v3-bonus__trigger { padding-inline: 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-bonus__trigger,
  .v3-bonus__trigger img { transition: none; }
}
