/* Price box frame (desktop and mobile): same 2px #1A1A1A border as the Commentaires box. */
.zip__dialog .zip__svc {
  box-sizing: border-box;
  border: 2px solid #1A1A1A;
}

/* Desktop only: V3 checker dialog layout.
   No effect under 1024 px. Colors and animations unchanged. */
@media (min-width: 1024px) {
  .zip__dialog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-flow: row;
    column-gap: 28px;
    row-gap: 8px;
    align-items: start;
    box-sizing: border-box;
    width: min(880px, calc(100vw - 48px));
    max-height: calc(100vh - 16px);
    padding: 16px 22px 14px;
    overflow: auto;
  }

  .zip__live {
    display: contents;
  }

  .zip__kicker,
  .zip__dialog h2,
  .zip__dialog h3,
  .zip__lead,
  .zip__svc,
  .zip__promo:not(.zip__outbox),
  .zip__spring-line,
  .zip__offer,
  .zip__actions,
  .zip__actions--main,
  .zip__interest-note,
  .zip__fine,
  .zip__dialog > .zip__live > .zip__fine,
  .zip__live > .zip__fine {
    grid-column: 1 / -1;
  }

  /* Visual order: title, price (+ offer), sliders, button, note, fine.
     DOM/keyboard order stays: title, sliders, price, button, note, fine. */
  .zip__kicker { order: 1; }
  .zip__dialog h2,
  .zip__dialog h3 { order: 2; }
  .zip__lead { order: 3; }
  .zip__svc { order: 4; }
  .zip__promo:not(.zip__outbox),
  .zip__offer { order: 5; }
  .zip__spring-line { order: 6; }
  .zip__dialog .zip__dogs:not(.zip__freq),
  .zip__dialog .zip__freq { order: 7; }
  .zip__actions,
  .zip__actions--main { order: 8; }
  .zip__interest-note { order: 9; }
  .zip__fine,
  .zip__dialog > .zip__live > .zip__fine,
  .zip__live > .zip__fine { order: 10; }

  .zip__kicker {
    margin: 0 0 2px;
    font-size: 14px;
  }

  .zip__dialog h2,
  .zip__dialog h3 {
    margin: 0 0 2px;
    font-size: 22px;
    line-height: 1.2;
  }

  .zip__lead {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
  }

  /* 1) Centered horizontal price box, content centered inside */
  .zip__svc {
    justify-self: center;
    align-self: center;
    width: min(560px, 100%);
    margin: 0;
    padding: 12px 26px 14px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .zip__svc-head,
  .zip__svc-head h4 {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 20px;
    line-height: 1.25;
  }

  .zip__svc-freq {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    text-align: center;
  }

  .zip__svc .zip__price,
  .zip__svc .zip__big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2px 0 0;
    text-align: center;
    gap: 2px;
  }

  .zip__svc .zip__from,
  .zip__svc--spring .zip__from,
  .zip__svc--step1 .zip__from,
  .zip__from {
    display: block;
    margin: 0;
    font-size: 15px;
    text-align: center;
  }

  .zip__per {
    font-size: 15px;
    text-align: center;
  }

  .zip__svc .zip__amt,
  .zip__svc .zip__big .zip__amt,
  .zip__svc .zip__price .zip__amt,
  .zip__svc--step2 .zip__big .zip__amt {
    font-size: 60px;
    line-height: 1;
  }

  /* Offer and spring-required note sit under the centered price box
     (same width), because they are price conditions, not part of the CTA. */
  .zip__promo:not(.zip__outbox),
  .zip__dialog .zip__promo:not(.zip__outbox) {
    justify-self: center;
    width: min(560px, 100%);
    margin: 0;
    padding: 12px 16px;
    gap: 10px;
    box-sizing: border-box;
  }

  .zip__dialog .zip__promo:not(.zip__outbox) strong {
    font-size: 16px;
    line-height: 1.3;
  }

  .zip__dialog .zip__promo:not(.zip__outbox) span {
    font-size: 14px;
    line-height: 1.4;
  }

  .zip__spring-line,
  .zip__dialog .zip__offer {
    justify-self: center;
    width: min(560px, 100%);
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
  }

  .zip__spring-line .zip__amt,
  .zip__dialog .zip__spring-line .zip__amt {
    font-size: 14px;
  }

  /* 2) Dogs and frequency sliders on one row, two equal columns */
  .zip__dialog .zip__dogs:not(.zip__freq) {
    grid-column: 1;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 0;
    border-bottom: 0;
  }

  .zip__dialog .zip__freq {
    grid-column: 2;
    margin: 0;
    margin-top: 0;
    padding: 8px 0 4px;
    border-top: 0;
    border-bottom: 0;
  }

  .zip__dialog .zip__dogs-live,
  .zip__dialog .zip__freq .zip__dogs-live,
  .zip__freq-live {
    font-size: 20px;
  }

  .zip__dogs-hint,
  .zip__dialog .zip__dogs-hint {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .zip__dialog .zip__range,
  .zip__dialog .zip__trackwrap .zip__range {
    height: 24px;
    margin: 4px 0 0;
  }

  .zip__dialog .zip__ticks,
  .zip__dialog .zip__ticks.zip__ticks--abs {
    height: auto;
    min-height: 22px;
    margin: 0;
    font-size: 13px;
  }

  /* 3) Centered button, then interest box */
  .zip__actions,
  .zip__actions--main,
  .zip__dialog .zip__live > .zip__actions--main,
  .zip__live > .zip__actions--main {
    justify-self: center;
    width: min(400px, 100%);
    position: static;
    margin: 6px 0 0;
    padding: 0;
    background: none;
    display: flex;
    justify-content: center;
  }

  .zip__cta--main,
  .zip__dialog .zip__cta--main {
    min-height: 44px;
    width: 100%;
    font-size: 15px;
  }

  .zip__interest-note {
    justify-self: center;
    width: min(560px, 100%);
    margin: 4px 0 0;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
  }

  .zip__fine,
  .zip__dialog > .zip__live > .zip__fine,
  .zip__live > .zip__fine {
    padding: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
  }
}


/* Mobile only: center the price card content. Desktop V3 is unchanged. */
@media (max-width: 1023px) {
  .zip__dialog .zip__svc {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .zip__dialog .zip__svc-head,
  .zip__dialog .zip__svc-head h4 {
    width: 100%;
    text-align: center;
  }

  .zip__dialog .zip__svc-freq {
    display: block;
    text-align: center;
  }

  .zip__dialog .zip__svc .zip__price,
  .zip__dialog .zip__svc .zip__big {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .zip__dialog .zip__svc .zip__from,
  .zip__dialog .zip__svc--spring .zip__from,
  .zip__dialog .zip__svc--step1 .zip__from,
  .zip__dialog .zip__svc .zip__per {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
