/* Keep the selected-plan action available in short and in-app browser windows. */
.subscription-picker-page { --picker-dock-height: 150px; --picker-bottom-offset: 0px; }

@media (max-width: 700px), (max-height: 650px) {
  body.subscription-picker-page {
    padding-bottom: calc(var(--picker-dock-height) + var(--picker-bottom-offset) + 16px);
    scroll-padding-bottom: calc(var(--picker-dock-height) + 16px);
  }
  .subscription-picker-page .picker-header { padding: 12px 16px 0; }
  .subscription-picker-page .picker-brand { min-height: 36px; font-size: 24px; }
  .subscription-picker-page .picker-brand__icon { width: 36px; }
  .subscription-picker-page .picker-brand__icon--umbrella { width: 46px; }
  .subscription-picker-page .picker-main { width: min(820px, calc(100% - 32px)); margin: 12px auto 16px; }
  body.subscription-picker-page .picker-main h1 { font-size: clamp(26px, 6.5vw, 32px); line-height: 1.12; }
  .subscription-picker-page .picker-intro { font-size: 16px; line-height: 1.35; margin-top: 6px; }
  .subscription-picker-page .picker-form { margin-top: 14px; }
  .subscription-picker-page .picker-settings { margin: 0 0 12px; gap: 8px 10px; }
  .subscription-picker-page .picker-settings select { min-height: 44px; padding: 8px 28px 8px 12px; font-size: 16px; }
  .subscription-picker-page .picker-options { min-inline-size: 0; gap: 10px; }
  .subscription-picker-page .picker-option { min-height: 102px; padding: 12px 54px 12px 16px; gap: 4px; border-radius: 16px; }
  .subscription-picker-page .picker-option__label { font-size: 17px; line-height: 1.25; }
  .subscription-picker-page .picker-option__price { font-size: clamp(21px, 5.6vw, 25px); line-height: 1.2; }
  .subscription-picker-page .picker-option__billing { font-size: 15px; line-height: 1.3; }
  /* The card already says Annual Plan; its duplicate floating badge needs space. */
  .subscription-picker-page .picker-option__badge { display: none; }
  .subscription-picker-page .picker-option__check { right: 14px; width: 28px; height: 28px; margin-top: 0; transform: translateY(-50%); border-width: 2px; border-radius: 8px; }
  .subscription-picker-page .picker-option__check svg { width: 18px; height: 18px; }
  .subscription-picker-page .picker-legal { font-size: 14px; line-height: 1.4; margin-top: 12px; }
  .subscription-picker-page .picker-charge { font-size: 13px; line-height: 1.4; margin-top: 10px; }
  .subscription-picker-page .picker-footer { font-size: 14px; margin-top: 12px; }
  .subscription-picker-page .picker-cta {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: var(--picker-bottom-offset);
    padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-top: 1px solid #deded7;
    background: #fff;
    box-shadow: 0 -4px 18px #0000000d;
    text-align: center;
  }
  .subscription-picker-page .picker-cta .picker-renewal { max-width: 620px; margin: 0 auto; color: #595b60; font-size: 13px; line-height: 1.35; }
  .subscription-picker-page .picker-cta .picker-legal { margin-top: 4px; font-size: 13px; line-height: 1.35; }
  .subscription-picker-page .picker-cta .picker-start { width: min(420px, 100%); min-height: 48px; margin: 7px auto 0; padding: 12px 20px; font-size: 18px; line-height: 1.3; }
  .subscription-picker-page .picker-cta .picker-signin { margin: 4px 0 0; font-size: 13px; line-height: 1.35; }
  .subscription-picker-page[data-picker-density="tight"] .picker-header { padding-top: 8px; }
  .subscription-picker-page[data-picker-density="tight"] .picker-main { margin-top: 8px; }
  .subscription-picker-page[data-picker-density="tight"] .picker-form { margin-top: 10px; }
  .subscription-picker-page[data-picker-density="tight"] .picker-option { min-height: 96px; gap: 2px; padding-block: 10px; }
  /* At very large text sizes, preserve readable content and normal scrolling. */
  .subscription-picker-page[data-picker-dock="inline"] { padding-bottom: 16px; }
  .subscription-picker-page[data-picker-dock="inline"] .picker-cta { position: static; margin-top: 14px; border: 0; box-shadow: none; padding-inline: 0; }
}

@media (max-width: 650px) {
  .subscription-picker-page .picker-options { grid-template-columns: minmax(0, 1fr); }
}
