@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body{
    padding: 0;
    margin: 0;
    font-family: Montserrat;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container{
    max-width: 520px;
    margin: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: calc(100% - 48px);
}

.onboarding_header{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
}

.onboardig_title{
    font-family: Montserrat;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 18px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #111727;
    padding: 13px 0;
}

input[type="radio"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.onboarding_close{
    position: absolute;
    right: 0;
    top: 10px;
    height: 24px;
    width: 24px;
}
.onboarding_back{
    position: absolute;
    left: 0;
    top: 10px;
    height: 24px;
    width: 24px;
}

.onboarding_item{
    display: none;
    width: 100%;
}

.onboarding_item.active{
    display: block;
}

.vsa-sport-chooser-radio label{
    position: relative;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0px 1px 10px 0px #0000001F;
    margin-top: 16px;
    display: block;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 52px;
}

.vsa-sport-chooser-radio label:first-child{
    margin-top: 0;
}

/* First-screen / sport-chooser loading and error states */
.vsa-screen-loading {
  padding: 32px 24px;
  text-align: center;
  font-family: Montserrat, system-ui, sans-serif;
}

.vsa-screen-loading__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid rgba(48, 143, 255, 0.2);
  border-top-color: #308FFF;
  border-radius: 50%;
  animation: vsa-preloader-spin 0.9s linear infinite;
}

.vsa-screen-loading__text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(17, 23, 39, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .vsa-screen-loading__spinner {
    animation: none;
    border-top-color: #308FFF;
    border-style: solid;
    opacity: 0.85;
  }
}

.vsa-sport-chooser__loading--hidden,
.vsa-sport-chooser__list--hidden,
.vsa-sport-chooser__error-state--hidden {
  display: none !important;
}

.vsa-sport-chooser__error-state {
  padding: 24px 20px;
  text-align: center;
  background: rgba(17, 23, 39, 0.03);
  border-radius: 12px;
  margin-bottom: 16px;
}

.vsa-sport-chooser__error-state-message {
  margin: 0 0 6px;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #111727;
}

.vsa-sport-chooser__error-state-sub {
  margin: 0 0 16px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  color: rgba(17, 23, 39, 0.7);
}

.vsa-sport-chooser__retry {
  margin: 0;
  min-width: 140px;
}

.vsa-plc__row label{
    position: relative;
    border-radius: 12px;
    padding: 16px;
    font-weight: 500;
    box-shadow: 0px 1px 10px 0px #0000001F;
    margin-bottom: 16px;
    display: block;
    width: calc(100% - 68px);
    display: flex;
    align-items: center;
    padding-left: 52px;
}

.vsa-sport-chooser-radio label img{
    margin-right: 12px;
    width: 32px;
    height: 32px;
}

.vsa-sport-chooser-radio label span{
    font-family: Montserrat;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #111727;
}

input[type="radio"] + label::before  {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    background-image: url('../items/radio.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

input[type="radio"]:checked + label::before{
    background-image: url('../items/radio_active.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}



.vsa-wrapper__continue{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: #fff;
    width: 100%;
    box-shadow: 0px 1px 10px 0px #0000001F;
    padding: 16px 24px calc(20px + env(safe-area-inset-bottom));
}

/* Make room for the fixed Continue button so list items don't hide behind it */
.vsa-sport-chooser{
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
#set-submit{
  margin-top: 16px;
}

.vsa__continue{
    position: relative;
    width: 100% ;
    background-color: #308FFF;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    padding: 16px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0px 1px 10px 0px #0000001F;
    min-height: 48px;
    box-sizing: border-box;
}

.vsa__continue:disabled{
    background-color: #DADADB;
}

/* Subscribe shimmer is clipped to pill; keeps ::before overlay inside rounded rect */
.vsa__continue.btn--loading{
  overflow: hidden;
}

.btn--loading{
  pointer-events: none;
  opacity: .95;
}

.btn--loading:disabled{
    background-color: #308FFF!important;
}

.btn--loading::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    linear-gradient(110deg,
      transparent 0%,
      rgba(255,255,255,.08) 35%,
      rgba(255,255,255,.22) 50%,
      rgba(255,255,255,.08) 65%,
      transparent 100%);
  transform: translateX(-120%);
  animation: btn-shimmer 1.15s ease-in-out infinite;
}

.btn--loading{
  animation: btn-pulse 1.2s ease-in-out infinite;
}

@keyframes btn-shimmer{
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes btn-pulse{
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.06); }
}

@media (prefers-reduced-motion: reduce){
  .btn--loading,
  .btn--loading::before{
    animation: none;
  }
}

.vsa-plc__avatar{
    width: 32px;
    height: 32px;
    border: 1px solid #fff;
}

/* CHOOSER */
.vsa-plc {
    font-family: Montserrat;
}

.vsa-plc__levels { 
    display: grid; gap: 16px; 
}

.vsa-plc-item { 
    position: relative; 
}

.vsa-plc-card{
    display:block;
    cursor:pointer;
    user-select:none;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    border-radius:12px;
    padding: 16px 12px;
    padding-left: 52px;
    min-height: 48px;
    box-sizing: border-box;
    background:#fff;
    box-shadow: 0px 1px 10px 0px #0000001F;
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.vsa-plc-item input[type="radio"] + label::before{
    top: 16px;
    bottom: unset;
    margin: unset;
}
.vsa-option-radio input[type="radio"] + label::before{
    top: 16px;
    bottom: unset;
    margin: unset;
}

.vsa-option-radio input[type="radio"] + label.has-savebar::before{
    top: 40px; /* aligns radio with the title area under the save bar */
    bottom: unset;
    margin: unset;
}

.vsa-option-radio input[type="radio"] + label.is-popular::before{
    top: 48px; /* aligns radio with the title area under "Most Popular" header */
    bottom: unset;
    margin: unset;
}


/* Header row inside card */
.vsa-plc-row{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-top: 4px;
}

/* Preview area (hidden by default) */
.vsa-plc-preview{
  margin-top:10px;

  max-height:0;
  opacity:0;
  transform: translateY(-6px);
  overflow:hidden;

  transition: max-height .28s ease, opacity .22s ease, transform .22s ease;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-left: -52px;
  margin-right: -12px;
}

.vsa-plc-avatar{
    display: flex;
    align-items: center;
}

.vsa-plc-preview-wrapper{
    padding: 16px 12px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #DADADB;
    margin-top: 16px;
}
/* Open preview when checked (CSS only) */
.vsa-plc-radio:checked + .vsa-plc-card .vsa-plc-preview{
  max-height:120px;
  opacity:1;
  transform: translateY(0);
}

/* Avatars stack */
.vsa-plc-avatars{
  display:flex;
  align-items:center;
  padding-left:2px; /* prevents clipping */
}
.vsa-plc-avatar{
  width:32px; height:32px;
  border-radius:999px;
  border:2px solid #fff;
  background:#e5e7eb;
  overflow:hidden;
  margin-left:-10px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:700;
  color:#0f172a;
}
.vsa-plc-avatar:first-child{ margin-left:0; }
.vsa-plc-avatar img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.vsa-plc-avatar--more{
  background:#d1d5db;
}

/* Preview right side */
.vsa-plc-meta{
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}
.vsa-plc-count{
    font-family: Montserrat;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-left: 8px;
    color: #111727;
}
.vsa-plc-view{
  font-size:14px;
  color:#308FFF;
  text-decoration:none;
  font-weight:500;
}
.vsa-plc-view:hover{ text-decoration: underline; }


/* Error */
.vsa-plc-error{
  display:none;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(220,38,38,.10);
  color: rgba(220,38,38,.95);
  font-size:13px;
  line-height:1.35;
}
.vsa-plc-error.is-visible{ display:block; }

/* ---------------- Bottom sheet ---------------- */
.vsa-plc-sheet{
  position:fixed;
  inset:0;
  z-index: 9999;
  pointer-events:none;
}
.vsa-plc-sheet.is-open{ pointer-events:auto; }

.vsa-plc-sheet__backdrop{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.32);
  opacity:0;
  transition: opacity .22s ease;
}
.vsa-plc-sheet.is-open .vsa-plc-sheet__backdrop{ opacity:1; }

.vsa-plc-sheet__panel{
  position:absolute;
  left:0; right:0; bottom:0;
  background:#fff;
  box-shadow: 0 -18px 40px rgba(0,0,0,.18);
  transform: translateY(104%);
  transition: transform .28s ease;
  /* Cap height to viewport so header stays visible; scroll lives in __content */
  max-height: 100vh;
  max-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
  display:flex;
  flex-direction:column;
  min-height: 0;
}
.vsa-plc-sheet.is-open .vsa-plc-sheet__panel{ transform: translateY(0); }

.vsa-plc-sheet__header{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: calc(10px + env(safe-area-inset-top)) 24px 10px;
  position: relative;
  flex-shrink: 0;
}
.vsa-plc-sheet__title{
  font-size:18px;
  font-weight:700;
  color:#0f172a;
}
.vsa-plc-sheet__close{
    position: absolute;
    text-decoration:none;
    left: 12px;
    top: 0;
    bottom: 0;
    margin: auto;
}
.vsa-plc-sheet__close{
    width:24px; height:24px;
}
.vsa-plc-sheet__close:hover{ background: rgba(15,23,42,.06); }

.vsa-plc-sheet__content{
  padding:14px 16px 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Loading */
.vsa-plc-loading{
  font-size:13px;
  color: rgba(15,23,42,.60);
  margin-bottom:10px;
}

/* Coach card — cut-out portrait left (PNG/WebP with transparency), full card height */
.vsa-coach{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0px 1px 10px 0px #0000001F;
    margin-bottom: 16px;
    overflow: hidden;
    min-height: 148px;
}

.vsa-coach__avatar-col{
  flex: 0 0 auto;
  width: min(42%, 168px);
  min-width: 112px;
  max-width: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #f3f4f6;
  align-self: stretch;
}

.vsa-coach__avatar-col--empty{
  display: none;
}

.vsa-coach__avatar{
  width: 100%;
  height: auto;
  max-height: min(320px, 55vh);
  object-fit: contain;
  object-position: bottom center;
  display: block;
  border-radius: 0;
  background: transparent;
}

.vsa-coach__body{
  flex: 1;
  min-width: 0;
  padding: 16px 16px 16px 14px;
  display: flex;
  flex-direction: column;
}

.vsa-coach__name{
    font-family: Montserrat;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    margin-bottom: 8px;
}
.vsa-coach__tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.vsa-coach__tag{
  font-size:11px;
  padding:1px 4px;
  border-radius:4px;
  background: #E9E9E9;
  color: #70747D;
}
.vsa-coach__desc{
    font-family: Montserrat;
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    color: #414552;
    margin-top: 10px;
}

@media (max-width: 480px){
  .vsa-coach{
    flex-direction: column;
    min-height: 0;
  }
  .vsa-coach__avatar-col{
    width: 100%;
    max-width: none;
    min-height: 160px;
    max-height: 220px;
    align-items: flex-end;
  }
  .vsa-coach__avatar{
    max-height: 220px;
    width: auto;
    max-width: 100%;
  }
  .vsa-coach__body{
    padding: 14px 16px 16px;
  }
}

/* =========================================================
   PackageOptionChooser styles (packages-payment module)
   ========================================================= */

/* Reserve space so content doesn't hide behind fixed bottom */
.vsa-has-fixed-bottom{
  padding-bottom: calc(290px + env(safe-area-inset-bottom));
}

/* Root */
.vsa-option-chooser{
  width: 100%;
}

/* List */
.vsa-option-chooser__list{
  margin-top: 6px;
}

/* Option radio wrapper (keeps your existing radio-icon system) */
.vsa-option-radio{
  position: relative;
}

/*
  IMPORTANT:
  Your project already styles radios with:
    input[type="radio"] + label::before { background-image: url(items/radio.svg) }
    input[type="radio"]:checked + label::before { background-image: url(items/radio_active.svg) }

  So we keep the same structure: <input> + <label>
  and we align padding to match your other cards.
*/

.vsa-option-radio label{
  position: relative;
  display: block;

  border-radius: 12px;
  padding: 16px;
  box-shadow: 0px 1px 10px 0px #0000001F;
  margin-bottom: 16px;

  /* left room for your ::before radio icon */
  width: 100%;
  padding-left: 52px;

  background: #fff;
  overflow: hidden;
}

/* Checked outline (matches style language) */
.vsa-option-radio input[type="radio"]:checked + label{
  outline: 2px solid rgba(48, 143, 255, .35);
}

/* Popular card adds top padding because header strip overlays the top */
.vsa-option-radio label.is-popular{
  padding-top: 50px; /* 32 header + spacing */
  background: linear-gradient(0deg, #FFFFFF, #FFFFFF),linear-gradient(125.73deg, rgba(255, 186, 48, 0.06) 0%, rgba(255, 55, 48, 0.06) 110.46%);
}

.vsa-option-radio label.has-savebar{
  padding-top: 42px; /* 26 bar + spacing */
}

/* Radio icons for package cards (Figma MCP) */
.vsa-option-radio input[type="radio"] + label::before{
  background-image: url('../items/radio.svg');
}

.vsa-option-radio input[type="radio"]:checked + label::before{
  background-image: url('../items/radio_active.svg');
}

/* Most popular header strip (exact "header" style instead of a badge) */
.vsa-popular-header{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;

  font-family: Montserrat;
  font-weight: 700;
  font-size: 12px;
  line-height: 12px;
  color: #ffffff;

  background: linear-gradient(101.33deg, #FF8725 1.4%, #FF304F 101.7%);
}

.vsa-popular-header span.vsa-popular-header__save-text{
  color: #ffffff!important;
}

.vsa-popular-header__left{
  white-space: nowrap;
}

.vsa-popular-header__right{
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.vsa-popular-header__icon{
  width: 9.33px;
  height: 12px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

.vsa-popular-header__save-text{
  white-space: nowrap;
}

.vsa-option-savebar{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26px;
  box-sizing: border-box;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  background: #FFE5EB;
  z-index: 1;
}

.vsa-option-savebar__icon{
  width: 9.33px;
  height: 12px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

.vsa-option-savebar__text{
  font-family: Montserrat;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  color: #FF334E;
  white-space: nowrap;
}

/* Header row */
.vsa-option-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
}

.vsa-option-title{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 4px;
}

.vsa-option-title-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 6px;
  width: 100%;
}

.vsa-option-benefit span{
  display: inline-block;
}

.vsa-option-name{
    font-family: Montserrat;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
}

.vsa-option-label{
  font-family: Montserrat;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: #A0A2A9;
  margin-top: 0;
}

/* Price block */
.vsa-option-price{
  text-align:right;
  white-space:nowrap;
}

.vsa-option-old{
    font-family: Montserrat;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0%;
    text-decoration: line-through;
    color: #A0A2A9;
}

.vsa-option-new{
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    color: #308FFF;
}

.vsa-option-unit{
    font-family: Montserrat;
    font-weight: 500;
    font-size: 11px;
    color: #308FFF;
    display: block;
}

.vsa-option-benefit{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-family: Montserrat;
  font-weight: 600;
  font-size: 12px;
  line-height: 100%;
  color: #FF8725;

  white-space: nowrap;
  margin-top: 0;
}

/* Bullets */
.vsa-option-bullets{
  margin: 9.5px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;

   max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;

  transition:
    max-height .28s ease,
    opacity .22s ease,
    transform .22s ease;
}

.vsa-option-radio input[type="radio"]:checked + label .vsa-option-bullets{
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
}

.vsa-option-bullets li{
  display:flex;
  gap: 8px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  padding-left: 0;
  color: #414552 !important;
  align-items: flex-start;
}

.vsa-option-bullets li::before{ display:none; content:none; }

.vsa-option-bullet-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  object-fit: contain;
}

.vsa-option-bullet-text{
  flex: 1 1 auto;
}

/* ---------------- Fixed bottom area (FAQ + button + disclaimer) ---------------- */

.vsa-bottom-fixed{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 50;

  display: flex;
  justify-content: center;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom));

  /* Slight gradient overlay so content behind looks nice (optional) */
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 30%, rgba(255,255,255,1) 100%);
}

.vsa-bottom-fixed .vsa__continue{
    width: 100%;
    margin-top: 8px;
}

.vsa-bottom-fixed__inner{
  width: 100%;
  max-width: 520px; /* match widened layout */
}

.vsa-bottom-fixed__faq{
    width: 100%;
}

.vsa-wrapper__continue--with-text{
  background: #fff;
}

/* Disclaimer under the button (center aligned) */
.vsa-disclaimer{
  margin-top: 16px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #70747D;
    width: 100%;
}

.vsa-disclaimer--center{
  text-align: center;
}

.vsa-disclaimer a{
  color: #308FFF;
  text-decoration: none;
}
.vsa-disclaimer a:hover{
  text-decoration: underline;
}

.vsa-faq{
  margin: 0;
}

.vsa-faq__item{
  margin-bottom: 10px;
  overflow: hidden;
}

.vsa-faq__q{
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 12px;
  line-height: 100%;
  color: #111727;
}

/* Hide default marker */
.vsa-faq__q::-webkit-details-marker{ display:none; }

.vsa-faq__q::after{
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-image: url('../items/arrow_down.svg');
  background-position: center;
  background-size: cover;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
    width: 12px;
    height: 6px;
    transition: transform .25s ease;
}

.vsa-faq__item[open] .vsa-faq__q::after{
  transform: rotate(-180deg);
  
}

.vsa-faq__a{
  padding: 10px 0;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: rgba(17, 23, 39, .70);

   max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;

  transition:
    max-height .35s ease,
    opacity .25s ease,
    transform .25s ease,
    padding .25s ease;
}

.vsa-option-radio label{
    padding-left: 48px;
}

.is-popular-wrapper{
    /* Most Popular visuals are handled on the label itself */
    background: transparent;

}
.is-popular-wrapper.vsa-option-radio input[type="radio"] + label::before{
    top: 48px;
    bottom: unset;
    margin: unset;
}

.vsa-faq__item[open] .vsa-faq__a{
  max-height: 1000px; /* adjust if needed */
  opacity: 1;
  transform: translateY(0);
}

/* Dashboard layout support: fixed footers should not overlap sidebar */
@media (min-width: 1025px) {
  .vsa-wrapper__continue,
  .vsa-bottom-fixed {
    left: 300px;
    width: calc(100% - 300px);
  }
}

/* Mobile tuning: keep save header fully visible and aligned */
@media (max-width: 767px) {
  .container {
    max-width: 430px;
    padding-left: 16px;
    padding-right: 16px;
    width: calc(100% - 32px);
  }

  .vsa-option-radio label {
    width: 100%;
    box-sizing: border-box;
    padding-left: 44px;
    padding-right: 10px;
  }

  .vsa-popular-header {
    padding: 0 8px;
    gap: 6px;
  }

  .vsa-popular-header__left {
    flex: 0 0 auto;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    line-height: 1;
  }

  .vsa-popular-header__right {
    min-width: 0;
    max-width: 60%;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .vsa-popular-header__save-text,
  .vsa-option-savebar__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.1;
  }

  .vsa-option-savebar {
    padding: 4px 8px;
  }
}

/* =========================================================
   Payment page (payment.php)
   ========================================================= */

.payment-page {
  max-width: 430px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  min-height: 100vh;
  box-sizing: border-box;
}

.payment-header {
  margin-bottom: 20px;
}

.payment-back {
  display: inline-block;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: #308FFF;
  text-decoration: none;
  padding: 4px 0;
}

.payment-back:hover {
  text-decoration: underline;
}

.payment-summary-block {
  margin-bottom: 24px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.06);
}

.payment-summary-block__title {
  font-family: Montserrat;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: #111727;
  margin: 0 0 10px;
}

.payment-summary-block__list-wrapper {
  position: relative;
}

.payment-summary-block__list-wrapper.is-collapsed .payment-summary-block__list {
  max-height: 56px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.payment-summary-block__list-wrapper.is-expanded .payment-summary-block__list {
  max-height: 1000px;
  transition: max-height 0.28s ease;
}

.payment-summary-block__toggle {
  display: none;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #308FFF;
  cursor: pointer;
  text-align: left;
}

.payment-summary-block__toggle:hover {
  text-decoration: underline;
}

.payment-summary-block__toggle:focus-visible {
  outline: 2px solid #308FFF;
  outline-offset: 2px;
}

.payment-summary-block__list-wrapper.has-more .payment-summary-block__toggle {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .payment-summary-block__list-wrapper.is-collapsed .payment-summary-block__list,
  .payment-summary-block__list-wrapper.is-expanded .payment-summary-block__list {
    transition: none;
  }
}

.payment-summary-block__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Montserrat;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: rgba(17, 23, 39, 0.85);
}

.payment-summary-block__list li {
  position: relative;
  padding-left: 20px;
}

.payment-summary-block__list li:last-child {
  margin-bottom: 0;
}

.payment-summary-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #308FFF;
}

.payment-form-block {
  margin-bottom: 20px;
}

/* Stripe Payment Element container: spacing and alignment */
.stripe-card-form {
  display: block;
  margin-bottom: 4px;
  position: relative;
  min-height: 200px; /* stable height for loader and element */
}

.stripe-card-form #payment-element {
  min-height: 1px; /* avoid collapse before Stripe mounts */
}

/* Loader shown while Stripe Payment Element initializes */
.stripe-form-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1;
}

.stripe-form-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stripe-form-loader__shimmer {
  width: 100%;
  max-width: 280px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    #F3F4F6 0%,
    #E5E7EB 50%,
    #F3F4F6 100%
  );
  background-size: 200% 100%;
  animation: stripe-form-shimmer 1.4s ease-in-out infinite;
}

.stripe-form-loader__text {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(17, 23, 39, 0.7);
}

@keyframes stripe-form-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stripe-form-loader__shimmer {
    animation: none;
    background: #F3F4F6;
  }
}

/* When loader is hidden, element is visible */
.stripe-form-element.is-ready {
  position: relative;
  z-index: 0;
}

.stripe-form-element[aria-hidden="true"] {
  min-height: 0;
  overflow: hidden;
}

/* Payment form load error + retry */
.stripe-form-error {
  padding: 24px 20px;
  text-align: center;
  background: rgba(243, 58, 58, 0.06);
  border: 1px solid rgba(243, 58, 58, 0.2);
  border-radius: 12px;
  margin-bottom: 4px;
}

.stripe-form-error__message {
  margin: 0 0 16px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #F33A3A;
}

.stripe-form-error .vsa__continue {
  margin: 0;
  min-width: 140px;
}

/* Ensure Stripe iframe/component has room; spacing between fields is via appearance API */
#payment-form .vsa__continue {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 480px) {
  .stripe-card-form {
    margin-bottom: 0;
  }

  #payment-form .vsa__continue {
    margin-top: 14px;
    min-height: 48px; /* touch-friendly */
  }
  .vsa-set-shortcode-wrapper{
    padding: 0;
    margin: 0;
    width: 100%;
  }
}

.vsa-option-bullet-text{
  font-family: Montserrat;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  padding-left: 0;
  color: #414552;
}
.payment-message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
}

.payment-message:empty {
  display: none;
}

.payment-message.is-error {
  background: rgba(243, 58, 58, 0.08);
  color: #F33A3A;
}

.payment-message.is-success {
  background: rgba(2, 122, 72, 0.08);
  color: #027a48;
}

.payment-disclaimer {
  margin-top: 10px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #70747D;
}

.payment-compliance {
  margin-top: 20px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: #70747D;
}

.payment-compliance a {
  color: #308FFF;
  text-decoration: none;
}

.payment-compliance a:hover {
  text-decoration: underline;
}

#express-checkout {
  margin-bottom: 12px;
}

.payment-error-block {
  max-width: 430px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(243, 58, 58, 0.08);
  color: #F33A3A;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.payment-error-block__retry {
  margin-top: 12px;
  min-width: 120px;
}

/* =========================================================
   Preloader (shared: index.php, payment.php)
   ========================================================= */

.vsa-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  padding-left: calc(24px + env(safe-area-inset-left));
  padding-right: calc(24px + env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.96);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vsa-preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vsa-preloader__card {
  max-width: 320px;
  width: 100%;
  padding: 28px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.vsa-preloader__spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border: 3px solid rgba(48, 143, 255, 0.2);
  border-top-color: #308FFF;
  border-radius: 50%;
  animation: vsa-preloader-spin 0.9s linear infinite;
}

@keyframes vsa-preloader-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vsa-preloader__spinner {
    animation: none;
    border-top-color: #308FFF;
    border-style: solid;
    opacity: 0.85;
  }
}

.vsa-preloader__title {
  font-family: Montserrat;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #111727;
  margin: 0 0 6px;
}

.vsa-preloader__subtext {
  font-family: Montserrat;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: #70747D;
  margin: 0;
}