/* Checkout concept: native drawer, the same family plan, no live payment fields. */
.hero-secondary{display:inline-block;margin:12px 0 0;font-size:.9375rem;font-weight:800;text-underline-offset:4px}
.resources-cta{padding-bottom:45px;text-align:center}.plans-panel .subscribe-button{width:100%;margin:24px 0 18px}
.checkout-drawer{width:min(640px,100%);background:var(--paper)}
.checkout-shell{height:100%;display:flex;flex-direction:column;overflow:hidden}
.checkout-top{position:relative;padding:25px 76px 19px 30px;background:#ffead9;flex-shrink:0}
.checkout-top .eyebrow{color:#80485b;font-size:.75rem;letter-spacing:.13em}
.checkout-top h2{font-size:2rem;margin-top:8px}.checkout-top .drawer-close{top:20px}
.checkout-preview{margin-top:12px;font-size:.875rem;color:#724653;line-height:1.45}
.checkout-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:22px 30px 24px;scrollbar-width:thin}
.checkout-steps{display:flex;gap:22px;list-style:none;padding:0;margin:0 0 23px;font-size:.875rem;font-weight:800;color:var(--muted)}
.checkout-steps li{display:flex;align-items:center;gap:8px}.checkout-steps b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#eee5f2}
.checkout-steps [aria-current=step]{color:var(--purple)}.checkout-steps [aria-current=step] b{background:var(--purple);color:white}
.checkout-welcome{display:flex;align-items:center;gap:18px;margin-bottom:20px}.checkout-welcome img{width:105px;height:86px;object-fit:cover;border-radius:22px}
.checkout-welcome h3{font-size:1.45rem;line-height:1.18}.checkout-welcome p{font-size:.9375rem;line-height:1.5;color:var(--muted);margin-top:6px}
.checkout-quantity{padding:17px 18px;border:1px solid #e1ceee;border-radius:18px;background:#faf1ff;margin-bottom:23px}
.checkout-quantity .plan-extra-help{margin:8px 0 0}.checkout-quantity .form-message{margin-top:10px;margin-bottom:0}
.checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.checkout-fields .full-field{grid-column:1/-1}
.checkout-drawer .field input:disabled{opacity:1;background:#fffdfb;color:var(--muted);cursor:default}
.checkout-drawer .field input[aria-invalid="true"]{border-color:#b84050}
.checkout-drawer .field input::placeholder{color:#826d8d}.checkout-explanation{font-size:.875rem;line-height:1.55;color:var(--muted);margin-bottom:20px}
.checkout-payment-title{font-size:1.5rem;margin-bottom:17px}.payment-methods{border:0;padding:0;margin:0 0 20px;display:flex;gap:10px}.payment-methods legend{font-weight:800;font-size:.9375rem;margin-bottom:10px}
.payment-method{flex:1;position:relative;cursor:pointer}.payment-method input{position:absolute;top:15px;left:12px;accent-color:var(--purple);width:16px;height:16px;margin:0}
.payment-method span{display:flex;flex-direction:column;min-height:80px;padding:12px 9px 10px 35px;border:1px solid #d8c8df;border-radius:14px;background:#fff}
.payment-method strong{font-size:.9375rem}.payment-method small{font-size:.8125rem;color:var(--muted);margin-top:4px}
.payment-method input:checked+span{border-color:var(--purple);background:#f5eafd;box-shadow:inset 0 0 0 1px var(--purple)}
.payment-method input:focus-visible+span{outline:3px solid #a862da;outline-offset:3px}
.payment-details{min-width:0}.payment-description{padding:14px 16px;background:#f1f5e9;color:#405334;border-radius:13px;font-size:.9375rem;line-height:1.5;margin-bottom:20px}
.payment-illustration{padding:22px;border:1px dashed #cab3d8;border-radius:18px;text-align:center;margin-bottom:18px;background:#faf5fc}
.payment-illustration strong{display:block;font-family:var(--heading);font-size:1.3rem;margin:8px 0}.payment-illustration p{font-size:.9375rem;line-height:1.6;color:var(--muted)}
.payment-symbol{font-size:2rem;color:var(--purple)}
.checkout-authorization{display:flex;gap:10px;font-size:.875rem;line-height:1.5;margin:6px 0;color:var(--muted)}.checkout-authorization input{width:18px;height:18px;flex:0 0 18px;margin:3px 0;accent-color:var(--purple)}
.checkout-footer{flex-shrink:0;background:var(--paper);border-top:1px solid #e3d4e7;padding:18px 30px 22px;box-shadow:0 -8px 24px #2d0b4005}
.checkout-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:15px}.checkout-summary div{min-width:0}.checkout-summary span{font-weight:900;font-size:.9375rem}.checkout-summary p{font-size:.875rem;line-height:1.5;color:var(--muted);margin-top:3px}.checkout-summary strong{color:var(--purple);font-size:1.6rem;line-height:1.2;overflow-wrap:anywhere}.checkout-summary small{font-size:.875rem;font-weight:600;color:var(--muted)}
.checkout-breakdown{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:.875rem;color:var(--muted)}
.checkout-actions{display:flex;gap:12px;align-items:center}.checkout-actions .button{flex:1;min-width:0;border-radius:15px}.checkout-actions .text-button{padding:12px 5px;font-size:.9375rem}
.checkout-drawer button:disabled{cursor:default}.checkout-drawer .button:disabled{transform:none;box-shadow:none;background:#90779f;color:#fff;opacity:1}
.checkout-footer-note{font-size:.8125rem;line-height:1.5;text-align:center;color:var(--muted);margin-top:9px}
@media(max-width:520px){.checkout-top{padding:22px 60px 16px 20px}.checkout-top h2{font-size:1.65rem}.checkout-scroll{padding:18px 20px}.checkout-footer{padding:14px 20px max(16px,env(safe-area-inset-bottom))}.checkout-fields{gap:0 10px}.checkout-welcome img{width:82px;height:80px}.checkout-welcome h3{font-size:1.25rem}.payment-methods{gap:7px}.payment-method span{padding:36px 8px 10px;min-height:93px}.payment-method input{top:11px;left:10px}.checkout-summary strong{font-size:1.45rem}}
@media(max-height:660px){.checkout-top{padding-top:14px;padding-bottom:12px}.checkout-top h2{font-size:1.55rem}.checkout-preview{margin-top:7px}.checkout-footer{padding-top:12px;padding-bottom:12px}.checkout-summary{margin-bottom:10px}.checkout-footer-note{margin-top:6px}}

/* Fit both steps by using the drawer's width, not by clipping overflowing content.
   Overflow remains available only as a fallback for zoom/very small viewports. */
.checkout-drawer{width:min(820px,100%)}
.checkout-top{padding:18px 70px 14px 28px}
.checkout-top h2{font-size:1.8rem;margin-top:5px}
.checkout-top .drawer-close{top:15px}
.checkout-preview{margin-top:7px;line-height:1.35}
.checkout-scroll{padding:16px 28px}
.checkout-steps{margin-bottom:15px;gap:25px}
.checkout-steps b{width:25px;height:25px}
.checkout-welcome{display:grid;grid-template-columns:minmax(150px,30%) 1fr;gap:24px;padding:6px 0 10px;margin-bottom:20px}
.checkout-welcome img{width:100%;height:auto;aspect-ratio:12/7;object-fit:contain;border-radius:22px}
.checkout-welcome h3{font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.13;max-width:390px}
.checkout-welcome p{font-size:1rem;margin-top:10px;line-height:1.5;max-width:360px}
.checkout-quantity{padding:12px 16px;margin-bottom:16px}
.checkout-quantity .plan-extra-help{margin-top:5px;line-height:1.4}
.checkout-fields{gap:0 14px}
.checkout-fields .full-field{grid-column:auto}
.checkout-drawer .field{min-width:0;margin-bottom:10px}
.checkout-drawer .field label{font-size:.875rem;margin-bottom:4px}
.checkout-drawer .field input{min-height:44px;padding:8px 11px;line-height:1.4}
.checkout-card-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.checkout-card-fields .full-field{grid-column:span 2}
#checkout-billing-address{display:contents}
.checkout-explanation{line-height:1.4;margin-bottom:10px}
.checkout-payment-title{font-size:1.3rem;margin-bottom:10px}
.payment-methods{margin-bottom:12px}
.payment-methods legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.payment-method span{min-height:60px;padding:9px 12px 9px 35px}
.payment-method input{top:13px}
.payment-method small{margin-top:2px}
.payment-description{padding:10px 13px;margin-bottom:12px;line-height:1.4}
.payment-illustration{padding:14px 20px;margin-bottom:12px}
.payment-illustration strong{margin:4px 0}
.payment-illustration p{line-height:1.45}
.payment-symbol{font-size:1.5rem}
.checkout-authorization{margin:0;line-height:1.4}
.checkout-footer{padding:14px 28px 16px}
.checkout-summary{margin-bottom:12px}
.checkout-footer-note{margin-top:7px}
@media(min-width:700px){
  .checkout-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:22px;align-items:center}
  .checkout-breakdown,.checkout-footer-note{grid-column:1/-1}
  .checkout-summary{margin-bottom:0;gap:12px}
  .checkout-summary strong{font-size:1.4rem;white-space:nowrap}
  .checkout-summary small{display:block;text-align:right}
  .checkout-summary p{font-size:.8125rem}
  .checkout-actions{gap:9px}
  .checkout-actions .button{padding-inline:14px;font-size:.9375rem;min-height:48px}
}
@media(max-width:699px){
  .checkout-welcome{grid-template-columns:minmax(100px,32%) 1fr;gap:14px;margin-bottom:16px;padding-bottom:6px}
  .checkout-welcome h3{font-size:1.35rem}
  .checkout-welcome p{font-size:.875rem;line-height:1.4;margin-top:6px}
  .checkout-drawer{width:100%}
  .checkout-top{padding:14px 58px 12px 20px}
  .checkout-top h2{font-size:1.55rem}
  .checkout-scroll{padding:12px 20px}
  .checkout-footer{padding:12px 20px max(12px,env(safe-area-inset-bottom))}
  .checkout-card-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .checkout-card-fields .full-field{grid-column:span 2}
  .checkout-steps{margin-bottom:12px}
  .checkout-summary{margin-bottom:9px}
  .checkout-actions .button{min-height:46px;padding:10px 14px;font-size:.9375rem}
  .payment-method span{padding:9px 7px 9px 29px;min-height:58px}
  .payment-method input{left:8px;top:12px;width:14px;height:14px}
  .payment-method strong{font-size:.875rem}
  .payment-method small{font-size:.75rem}
}
@media(max-height:740px){
  .checkout-top{padding-top:12px;padding-bottom:10px}
  .checkout-top h2{font-size:1.5rem}
  .checkout-scroll{padding-top:10px;padding-bottom:10px}
  .checkout-steps{margin-bottom:10px}
  .checkout-quantity{margin-bottom:12px}
  .checkout-footer{padding-top:10px;padding-bottom:10px}
  .payment-description,.payment-methods{margin-bottom:9px}
  .checkout-drawer .field{margin-bottom:8px}
}
