/* ========================================
   PTP CHECKOUT v151 - Mobile-First Design
   ======================================== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
    --gold:#FCB900;
    --black:#0A0A0A;
    --white:#FFFFFF;
    --gray-50:#F9FAFB;
    --gray-100:#F3F4F6;
    --gray-200:#E5E7EB;
    --gray-300:#D1D5DB;
    --gray-400:#9CA3AF;
    --gray-500:#6B7280;
    --gray-600:#4B5563;
    --gray-700:#374151;
    --gray-800:#1F2937;
    --green:#22C55E;
    --red:#EF4444;
    --radius:12px;
    --shadow:0 1px 3px rgba(0,0,0,0.1),0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);
}
html{scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--gray-50);color:var(--gray-800);line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh;min-height:100dvh}
h1,h2,h3{font-family:'Oswald',system-ui,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:0.02em}

/* Layout */
.checkout-page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
@media(min-width:1024px){
    .checkout-page{flex-direction:row}
    .checkout-main{flex:1;overflow-y:auto;max-height:100vh}
    .checkout-sidebar{width:420px;flex-shrink:0;background:var(--black);position:sticky;top:0;height:100vh;overflow-y:auto}
}

/* Header */
.checkout-header{background:var(--black);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:200}
.checkout-logo{height:28px;width:auto;display:inline-block;max-width:160px}
.checkout-secure{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--gray-400)}
.checkout-secure svg{width:14px;height:14px}
@media(min-width:1024px){.checkout-header{display:none}}

/* Progress Stepper */
.progress-stepper{background:var(--white);padding:20px;border-bottom:1px solid var(--gray-200)}
.progress-steps{display:flex;justify-content:space-between;align-items:center;max-width:400px;margin:0 auto}
.progress-step{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;position:relative}
.progress-step:not(:last-child)::after{
    content:'';position:absolute;top:14px;left:calc(50% + 20px);right:calc(-50% + 20px);height:2px;background:var(--gray-200)
}
.progress-step.active:not(:last-child)::after{background:var(--gold)}
.progress-step.completed:not(:last-child)::after{background:var(--green)}
.step-dot{width:28px;height:28px;border-radius:50%;background:var(--gray-200);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--gray-500);position:relative;z-index:1;transition:all 0.3s}
.progress-step.active .step-dot{background:var(--gold);color:var(--black)}
.progress-step.completed .step-dot{background:var(--green);color:var(--white)}
.step-label{font-size:11px;font-weight:500;color:var(--gray-400);text-transform:uppercase;letter-spacing:0.05em}
.progress-step.active .step-label{color:var(--gray-700)}
.progress-step.completed .step-label{color:var(--green)}

/* Main Content */
.checkout-main{background:var(--white);padding:20px;padding-bottom:120px}
@media(min-width:600px){.checkout-main{padding:32px 40px 120px}}
@media(min-width:1024px){.checkout-main{padding:40px 60px 60px}}

/* Express Checkout - Apple/Google Pay */
.express-checkout{margin-bottom:24px}
.express-title{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;font-size:13px;font-weight:500;color:var(--gray-500);text-transform:uppercase;letter-spacing:0.05em}
.express-badges{display:flex;justify-content:center;gap:8px;margin-bottom:12px}
.express-badge{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--gray-500);background:var(--gray-100);padding:4px 10px;border-radius:20px}
.express-badge svg{width:16px;height:16px}
#express-buttons{min-height:48px}
.express-divider{display:flex;align-items:center;gap:16px;margin:24px 0;font-size:12px;font-weight:500;color:var(--gray-400);text-transform:uppercase;letter-spacing:0.05em}
.express-divider::before,.express-divider::after{content:'';flex:1;height:1px;background:var(--gray-200)}

/* Form Sections */
.form-section{margin-bottom:24px;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden}
.section-header{display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--gray-50);border-bottom:1px solid var(--gray-200);cursor:pointer;user-select:none;transition:background 0.15s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.section-header:hover{background:var(--gray-100)}
.section-header.locked{opacity:0.5;pointer-events:none}
.section-number{width:28px;height:28px;border-radius:50%;background:var(--black);color:var(--white);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex-shrink:0}
.section-header.completed .section-number{background:var(--green)}
.section-title{flex:1;font-size:14px;font-weight:600;color:var(--gray-800)}
.section-summary{font-size:12px;color:var(--gray-500);margin-top:2px}
.section-toggle{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--gray-400);transition:transform 0.3s}
.section-header.open .section-toggle{transform:rotate(180deg)}
.section-body{padding:20px;display:none}
.section-body.open{display:block}

/* Form Fields */
.field-row{margin-bottom:16px}
.field-grid{display:grid;gap:12px}
@media(min-width:450px){.field-grid{grid-template-columns:1fr 1fr}}
.field-label{display:block;font-size:12px;font-weight:600;color:var(--gray-600);margin-bottom:6px;text-transform:uppercase;letter-spacing:0.03em}
.field-input,.field-select{
    width:100%;padding:14px 16px;font-size:16px;font-family:inherit;
    border:2px solid var(--gray-200);border-radius:4px;background:var(--white);
    transition:border-color 0.2s,box-shadow 0.2s;-webkit-appearance:none;appearance:none;
    min-height:48px;touch-action:manipulation
}
@media(min-width:600px){.field-input,.field-select{padding:12px 14px;font-size:14px}}
.field-input:focus,.field-select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(252,185,0,0.1)}
.field-input.error{border-color:var(--red)}
.field-select{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 12px center;padding-right:44px
}
.field-hint{font-size:11px;color:var(--gray-400);margin-top:4px}

/* Saved Players */
.saved-players{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.saved-player{
    display:flex;align-items:center;gap:10px;padding:12px 16px;
    border:2px solid var(--gray-200);border-radius:4px;cursor:pointer;
    transition:all 0.2s;flex:1;min-width:140px
}
.saved-player:hover{border-color:var(--gray-300);background:var(--gray-50)}
.saved-player.selected{border-color:var(--gold);background:rgba(252,185,0,0.05)}
.saved-player-avatar{
    width:36px;height:36px;border-radius:50%;background:var(--gold);
    display:flex;align-items:center;justify-content:center;
    font-weight:600;font-size:14px;color:var(--black)
}
.saved-player-info{flex:1;min-width:0}
.saved-player-name{font-size:14px;font-weight:600;color:var(--gray-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-player-age{font-size:12px;color:var(--gray-500)}
.add-new-btn{
    display:flex;align-items:center;justify-content:center;gap:6px;
    padding:12px 20px;border:2px dashed var(--gray-300);border-radius:4px;
    color:var(--gray-500);font-size:13px;font-weight:500;cursor:pointer;
    transition:all 0.2s;min-width:140px
}
.add-new-btn:hover{border-color:var(--gold);color:var(--gold);background:rgba(252,185,0,0.03)}

/* Discount Sections — v305.30.13: rebuilt to match PTP brand voice
   (Oswald uppercase titles, sharper 2px borders, larger typography,
   gold hover, bigger touch targets). The previous version used 11–13px
   body text in the default sans font and felt generic vs the rest of
   the page. */
.discount-box{background:#FFFFFF;border:2px solid var(--gray-200);border-radius:6px;padding:14px 16px;margin-bottom:10px;transition:border-color .15s ease,background .15s ease}
.discount-box:hover{border-color:var(--gold)}
.discount-box.has-content-open{border-color:var(--gold);background:#FFFCF0}
.discount-header{display:flex;align-items:center;gap:12px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;min-height:48px}
.discount-icon{width:36px;height:36px;border-radius:6px;background:#FFFCF0;display:flex;align-items:center;justify-content:center;color:var(--gold);flex-shrink:0;transition:background .15s ease}
.discount-box:hover .discount-icon{background:var(--gold);color:var(--black)}
.discount-info{flex:1;min-width:0}
.discount-title{font-family:Oswald,Inter,-apple-system,sans-serif;font-size:15px;font-weight:600;color:var(--black);text-transform:uppercase;letter-spacing:.04em;line-height:1.2}
.discount-desc{font-family:Inter,-apple-system,sans-serif;font-size:13px;font-weight:400;color:var(--gray-500);margin-top:3px;line-height:1.35}
.discount-badge{font-family:Oswald,sans-serif;font-size:11px;font-weight:700;padding:5px 10px;background:var(--gold);color:var(--black);border-radius:4px;text-transform:uppercase;letter-spacing:.06em;flex-shrink:0;white-space:nowrap}
.discount-content{margin-top:14px;padding-top:14px;border-top:2px solid var(--gray-200);display:none}
.discount-content.open{display:block}
/* v305.30.14: On desktop, always show all content — no dropdowns. The
   collapse-to-tap pattern is mobile-only behavior. Desktop has the screen
   real estate so everything stays visible. The header chevron/cursor stays
   for mobile but is suppressed on desktop. */
@media (min-width:768px){
  .discount-content{display:block !important}
  .discount-header{cursor:default}
  .discount-box{padding:18px 20px}
}
.discount-input-row{display:flex;gap:8px;align-items:stretch}
.discount-input{flex:1;font-family:Inter,-apple-system,sans-serif;font-size:15px;font-weight:600;letter-spacing:.04em}
.discount-btn{padding:0 22px;background:var(--black);color:var(--gold);border:none;border-radius:4px;font-family:Oswald,sans-serif;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;transition:background .15s ease,color .15s ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-height:48px;-webkit-appearance:none;flex-shrink:0}
.discount-btn:hover{background:var(--gold);color:var(--black)}
.discount-btn:active{background:var(--gray-900);transform:scale(0.97)}
.discount-applied{display:flex;align-items:center;gap:8px;padding:12px 14px;background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.35);border-radius:6px;color:#15803D;font-family:Inter,-apple-system,sans-serif;font-size:13px;font-weight:600}
.discount-applied svg{width:18px;height:18px;flex-shrink:0}

/* v216: Package Selector */
.pkg-selector{margin-bottom:24px;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden}
.pkg-selector-hdr{display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--gray-50);border-bottom:1px solid var(--gray-200)}
.pkg-selector-photo{width:40px;height:40px;border-radius:50%;background:var(--gray-200);object-fit:cover;flex-shrink:0}
.pkg-selector-info{flex:1;min-width:0}
.pkg-selector-name{font-size:14px;font-weight:600;color:var(--gray-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pkg-selector-meta{font-size:12px;color:var(--gray-500);margin-top:1px}
.pkg-selector-body{padding:16px 20px}
.pkg-selector-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--gray-400);margin-bottom:10px}
.pkg-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media(max-width:400px){.pkg-options{grid-template-columns:1fr;gap:6px}}
.pkg-opt{background:var(--white);border:2px solid var(--gray-200);border-radius:4px;padding:14px 8px;text-align:center;cursor:pointer;transition:all .15s;position:relative;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none}
.pkg-opt:hover{border-color:var(--gray-300);background:var(--gray-50)}
.pkg-opt.sel{border-color:var(--gold);background:rgba(252,185,0,.05)}
.pkg-opt-name{font-size:13px;font-weight:700;color:var(--gray-800)}
.pkg-opt-price{font-size:13px;color:var(--gray-500);margin-top:3px}
.pkg-opt-save{font-size:10px;color:var(--green);font-weight:700;margin-top:4px}
.pkg-opt-badge{position:absolute;top:-8px;right:-4px;background:var(--gold);color:var(--black);font-size:9px;font-weight:700;padding:2px 6px;border-radius:4px;text-transform:uppercase;letter-spacing:.04em}
.pkg-selector-total{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:14px;border-top:1px solid var(--gray-100)}
.pkg-selector-total-label{font-size:13px;color:var(--gray-500)}
.pkg-selector-total-price{font-size:18px;font-weight:700;color:var(--gray-800)}
.pkg-selector-total-per{font-size:12px;color:var(--gray-400);font-weight:400;margin-left:2px}

/* Payment Section */
.payment-section{background:var(--gray-50);border-radius:var(--radius);padding:20px;margin-top:24px}
.payment-title{font-size:14px;font-weight:600;color:var(--gray-800);margin-bottom:16px;display:flex;align-items:center;gap:8px}
#payment-element{min-height:100px}
.payment-error{padding:12px 16px;background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.3);border-radius:8px;color:var(--red);font-size:13px;margin-top:12px;display:none}

/* Waiver */
.waiver-section{margin-top:20px;padding:0;background:transparent;border-radius:4px}
.waiver-box{max-height:200px;overflow-y:auto;padding:16px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:4px;margin-bottom:12px;font-size:12px;line-height:1.6;color:var(--gray-600);font-family:var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif)}
.waiver-box h3{font-size:13px;font-weight:700;color:var(--gray-900);margin:0 0 8px;text-transform:uppercase;letter-spacing:.02em}
.waiver-box h4{font-size:12px;font-weight:700;color:var(--gray-800);margin:14px 0 6px}
.waiver-box p{margin:0 0 8px}
.waiver-box::-webkit-scrollbar{width:6px}
.waiver-box::-webkit-scrollbar-track{background:var(--gray-100);border-radius:3px}
.waiver-box::-webkit-scrollbar-thumb{background:var(--gray-300);border-radius:3px}
.waiver-check{display:flex;gap:12px;align-items:flex-start}
.waiver-check input{width:20px;height:20px;margin-top:2px;accent-color:var(--gold);flex-shrink:0}
.waiver-text{font-size:13px;color:var(--gray-600);line-height:1.5}
.waiver-text a{color:var(--gold);text-decoration:underline}

/* Submit Button */
.submit-section{margin-top:24px}
.submit-btn{
    width:100%;padding:18px 24px;background:var(--gold);color:var(--black);
    border:none;border-radius:12px;font-family:'Oswald',sans-serif;font-size:18px;
    font-weight:600;text-transform:uppercase;letter-spacing:0.05em;cursor:pointer;
    transition:all 0.15s;display:flex;align-items:center;justify-content:center;gap:8px;
    touch-action:manipulation;-webkit-tap-highlight-color:rgba(252,185,0,0.25);
    min-height:56px;-webkit-appearance:none;user-select:none
}
.submit-btn:hover:not(:disabled){background:#e5a700;transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.submit-btn:active:not(:disabled){background:#d49a00;transform:scale(0.97);box-shadow:none;transition:all 0.05s}
.submit-btn:disabled{opacity:0.6;cursor:not-allowed;transform:none}
.submit-btn.loading{pointer-events:none}
.submit-btn.loading::after{
    content:'';width:20px;height:20px;border:2px solid var(--black);
    border-top-color:transparent;border-radius:50%;animation:spin 0.8s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}
.submit-total{font-size:20px}

/* Trust Badges */
.trust-badges{display:flex;justify-content:center;gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid var(--gray-200)}
.trust-badge{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--gray-500)}
.trust-badge svg{width:14px;height:14px;color:var(--green)}

/* Sidebar - Order Summary */
.checkout-sidebar{background:var(--black);color:var(--white);display:none}
@media(min-width:1024px){.checkout-sidebar{display:block}}
.sidebar-inner{padding:40px 32px;position:sticky;top:0}
.sidebar-logo{height:36px;width:auto;display:block;max-width:180px;margin-bottom:32px}
.sidebar-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:var(--gray-400);margin-bottom:20px}

/* Order Items */
.order-item{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,0.1)}
.order-item:last-child{border-bottom:none}
.order-item-img{width:60px;height:60px;border-radius:8px;background:var(--gray-800);display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}
.order-item-img img{width:100%;height:100%;object-fit:cover}
.order-item-img svg{width:24px;height:24px;color:var(--gold)}
.order-item-info{flex:1;min-width:0}
.order-item-type{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--gold);margin-bottom:4px}
.order-item-name{font-size:14px;font-weight:600;color:var(--white);margin-bottom:4px;line-height:1.3}
.order-item-meta{font-size:12px;color:var(--gray-400)}
.order-item-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.order-item-price{font-size:16px;font-weight:600;color:var(--white);white-space:nowrap}
.order-item-remove{width:36px;height:36px;border:none;background:rgba(255,255,255,0.1);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0.5;transition:all 0.15s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.order-item-remove:hover{opacity:1;background:rgba(239,68,68,0.2)}
.order-item-remove svg{width:12px;height:12px;color:var(--white)}
.order-item:hover .order-item-remove{opacity:0.8}

/* Order Totals */
.order-totals{margin-top:24px;padding-top:24px;border-top:1px solid rgba(255,255,255,0.1)}
.order-line{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:14px}
.order-line.discount{color:var(--green)}
.order-line.total{padding-top:16px;margin-top:8px;border-top:1px solid rgba(255,255,255,0.2);font-size:18px;font-weight:700}
.order-line.total .order-amount{font-family:'Oswald',sans-serif;font-size:24px;color:var(--gold)}

/* Guarantee */
.order-guarantee{margin-top:24px;padding:16px;background:rgba(255,255,255,0.05);border-radius:4px;text-align:center}
.order-guarantee svg{width:24px;height:24px;color:var(--green);margin-bottom:8px}
.order-guarantee-title{font-size:13px;font-weight:600;color:var(--white);margin-bottom:4px}
.order-guarantee-text{font-size:12px;color:var(--gray-400)}

/* Mobile Order Summary */
.mobile-summary{
    position:fixed;bottom:0;left:0;right:0;background:var(--white);
    border-top:1px solid var(--gray-200);padding:12px 16px;z-index:1000;
    box-shadow:0 -4px 20px rgba(0,0,0,0.1);display:flex;align-items:center;gap:12px;
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))
}
@media(min-width:1024px){.mobile-summary{display:none}}
.mobile-summary-info{flex:1;cursor:pointer}
.mobile-summary-items{font-size:12px;color:var(--gray-500);display:flex;align-items:center;gap:4px}
.mobile-summary-items svg{width:14px;height:14px;transition:transform 0.2s}
.mobile-summary-items.expanded svg{transform:rotate(180deg)}
.mobile-summary-total{font-size:20px;font-weight:700;font-family:'Oswald',sans-serif;color:var(--black)}
.mobile-summary-btn{
    padding:14px 28px;background:var(--gold);color:var(--black);border:none;
    border-radius:4px;font-family:'Oswald',sans-serif;font-size:16px;font-weight:600;
    text-transform:uppercase;cursor:pointer;min-height:52px;
    touch-action:manipulation;-webkit-tap-highlight-color:rgba(252,185,0,0.25);
    -webkit-appearance:none;user-select:none;transition:all 0.1s
}
.mobile-summary-btn:active{background:#d49a00;transform:scale(0.96);transition:all 0.05s}

/* Mobile Cart Drawer - v158.2: Fixed scroll */
.mobile-cart-drawer{
    position:fixed;bottom:0;left:0;right:0;background:var(--white);
    border-radius:0;box-shadow:0 -8px 30px rgba(0,0,0,0.15);
    z-index:9999;transform:translateY(100%);transition:transform 0.3s ease;
    max-height:80vh;max-height:80dvh;overflow:hidden;display:flex;flex-direction:column
}
.mobile-cart-drawer.open{transform:translateY(0)}
@media(min-width:1024px){.mobile-cart-drawer{display:none}}
.mobile-cart-header{
    padding:20px 20px 16px;border-bottom:1px solid var(--gray-200);
    display:flex;align-items:center;justify-content:space-between;flex:0 0 auto
}
.mobile-cart-title{font-family:'Oswald',sans-serif;font-size:18px;font-weight:600;text-transform:uppercase}
.mobile-cart-close{width:44px;height:44px;border:none;background:var(--gray-100);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mobile-cart-close svg{width:20px;height:20px;color:var(--gray-500)}
.mobile-cart-items{
    flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:16px 20px;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    min-height:0;
    scrollbar-width:none;-ms-overflow-style:none
}
.mobile-cart-items::-webkit-scrollbar{display:none}
.mobile-cart-item{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--gray-100)}
.mobile-cart-item:last-child{border-bottom:none}
.mobile-cart-img{width:56px;height:56px;border-radius:4px;background:var(--gray-100);background-size:cover;background-position:center;flex-shrink:0}
.mobile-cart-item-info{flex:1;min-width:0}
.mobile-cart-item-type{font-size:10px;color:var(--gold);font-weight:700;text-transform:uppercase;letter-spacing:0.5px}
.mobile-cart-item-name{font-size:14px;font-weight:600;color:var(--black);margin:3px 0}
.mobile-cart-item-meta{font-size:12px;color:var(--gray-500);line-height:1.4}
.mobile-cart-item-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.mobile-cart-item-price{font-size:15px;font-weight:700;color:var(--black);white-space:nowrap}
.mobile-cart-item-remove{width:32px;height:32px;border:none;background:var(--gray-100);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.2s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mobile-cart-item-remove:hover,.mobile-cart-item-remove:active{background:rgba(239,68,68,0.15)}
.mobile-cart-item-remove svg{width:12px;height:12px;color:var(--gray-500)}
.mobile-cart-totals{padding:16px 20px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));background:var(--gray-50);border-top:1px solid var(--gray-200);flex:0 0 auto}
.mobile-cart-line{display:flex;justify-content:space-between;font-size:14px;padding:5px 0}
.mobile-cart-line.discount{color:#16a34a}
.mobile-cart-line.total{font-weight:700;font-size:17px;padding-top:12px;margin-top:8px;border-top:1px solid var(--gray-200)}
.mobile-cart-overlay{
    position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);
    z-index:9998;opacity:0;visibility:hidden;transition:opacity 0.3s,visibility 0.3s
}
.mobile-cart-overlay.open{opacity:1;visibility:visible}

/* Empty State */
.empty-state{text-align:center;padding:60px 20px}
.empty-state svg{width:80px;height:80px;color:var(--gray-300);margin-bottom:20px}
.empty-state h2{font-size:24px;margin-bottom:8px}
.empty-state p{color:var(--gray-500);margin-bottom:24px}
.empty-state a{display:inline-block;padding:14px 32px;background:var(--gold);color:var(--black);border-radius:4px;font-weight:600;text-decoration:none}

/* Responsive */
@media(max-width:600px){
    .checkout-main{padding:16px;padding-bottom:140px;padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}
    .section-header{padding:14px 16px}
    .section-body{padding:16px}
    .submit-btn{padding:16px 20px;font-size:16px}
    .field-label{font-size:12px}
    .field-input,.field-select{padding:12px;font-size:16px}
    .order-item{padding:12px}
    .order-item-name{font-size:13px}
    .order-item-price{font-size:14px}
    .order-total-row{padding:12px 0;font-size:14px}
    .order-total-row.final{font-size:16px}
}

/* Extra small phones */
@media(max-width:380px){
    .checkout-main{padding:12px}
    .section-header h3{font-size:14px}
    .field-grid{gap:12px}
    .submit-btn{padding:14px 16px;font-size:15px}
    .order-item-img{width:40px;height:40px}
    .progress-step .step-dot{width:24px;height:24px;font-size:11px}
    .step-label{font-size:10px}
}

/* Touch device optimizations */
@media(hover:none) and (pointer:coarse){
    .field-input:focus,.field-select:focus{font-size:16px}
    .submit-btn{min-height:52px}
    .section-header{min-height:48px}
}

/* Back to Cart */
.header-back-link{display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:var(--gray-400);transition:color 0.2s}
.header-back-link:hover{color:var(--white)}
.back-link-wrapper{display:none}
@media(min-width:1024px){
    .back-link-wrapper{display:block;margin-bottom:20px}
}
.back-to-cart{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:400;color:var(--gray-400);text-decoration:none;transition:color 0.2s}
.back-to-cart:hover{color:var(--gray-600)}
.back-to-cart svg{flex-shrink:0}

/* Order Item Image with Background */
.order-item-img{width:48px;height:48px;border-radius:4px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}
.order-item-img svg{width:24px;height:24px;color:var(--gray-400)}
/* v177: Hide chat widgets on mobile */
@media(max-width:1023px){#tidio-chat,#crisp-chatbox,.crisp-client,#intercom-container,#intercom-frame,.intercom-lightweight-app,#hubspot-messages-iframe-container,#tawk-bubble-container,#tawkchat-container,.tawk-min-container,#drift-widget-container,#fc_frame,.fb_dialog,[id*="chat-widget"],[class*="chat-widget"],[class*="chat-bubble"],iframe[title*="chat" i],[id*="whatsapp"],[class*="whatsapp-chat"],.joinchat,.wp-social-chat-container,#olark-wrapper{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;height:0!important;width:0!important}}

/* ══ v242: Checkout Mobile Audit Fixes ══ */

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
    .mobile-cart-drawer,.mobile-cart-overlay{transition:none!important}
}

/* Landscape orientation — prevent cramped checkout on short screens */
@media(max-height:500px) and (orientation:landscape){
    .checkout-main{padding-bottom:80px}
    .mobile-summary{padding:10px 16px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
    .mobile-summary-total{font-size:18px}
}

/* Prevent horizontal overflow on small phones */
@media(max-width:380px){
    .checkout-page,.checkout-main{overflow-x:hidden}
    .mobile-summary-btn{padding:14px 20px;font-size:14px}
    .header-back-link{width:44px;height:44px}
}

/* Payment element responsive */
@media(max-width:500px){
    #payment-element{min-height:120px;padding:12px}
}

/* ══ v304.1.21: Mobile checkout polish ══ */

/* Bigger Apple/Google Pay tap target so the express checkout strip
   doesn't feel cramped on phones. Stripe injects buttons at the height
   it picks; we just guarantee the container reserves enough room. */
#express-buttons{min-height:52px}

/* Single-source-of-truth for "Continue" on mobile. The sticky bottom bar
   already handles step advance + step label, so showing the in-form
   v268 stepnav Next button on top of it is redundant and visually
   conflicts (two yellow/black CTAs stacked). Hide the in-form Next
   button on mobile only — keep the Back button so users can go back.
   Desktop (≥1024px) keeps both because there's no sticky bar. */
@media(max-width:1023px){
    .v268-stepnav .v268-next{display:none}
    .v268-stepnav{justify-content:flex-start}
    .v268-stepnav .v268-back{flex:0 0 auto;min-width:140px;padding:0 18px}
}

/* Step indicator inside the sticky bar. The new label "Step N of 4 ·"
   sits before the item count. Make sure it stays readable on tiny
   phones and doesn't push the total off-screen. */
#mobileStepLabel{
    font-size:11px;text-transform:uppercase;letter-spacing:0.04em;
    color:var(--gray-700);font-weight:600;white-space:nowrap
}
@media(max-width:380px){
    #mobileStepLabel{display:block;margin:0 0 2px;font-size:10px}
    .mobile-summary-items{flex-direction:column;align-items:flex-start;gap:2px}
    .mobile-summary-total{font-size:18px}
    .mobile-summary-btn{padding:14px 16px;font-size:14px;min-width:0}
}

/* Smooth-scroll the focused input into view when iOS keyboard opens.
   Without this, fields in the bottom half of the form get covered by
   the keyboard and the user has no idea what they're typing into. */
@media(max-width:1023px){
    .field-input:focus,.field-select:focus,textarea.field-input:focus{
        scroll-margin-top:80px;scroll-margin-bottom:140px
    }
}

/* Prevent the sticky mobile bar from sitting on top of the in-form
   submit button on step 4. Already handled via padding-bottom on
   .checkout-main, but landscape phones with very short height need a
   bit more breathing room than the existing 80px. */
@media(max-height:500px) and (orientation:landscape){
    .checkout-main{padding-bottom:96px}
}
/* ============================================
 * Extracted inline styles from ptp-checkout.php
 * v304: Moved to external file for caching
 * ============================================ */

        /* v268: Single-step view — hide all sections except the active step's */
        body[data-current-step] .form-section { display: none !important; }
        body[data-current-step="1"] .form-section[data-section="1"] { display: block !important; }
        body[data-current-step="2"] .form-section[data-section="2"],
        body[data-current-step="2"] .form-section[data-section="how-found"],
        body[data-current-step="2"] .form-section[data-section="discounts"],
        body[data-current-step="2"] .form-section[data-section="instagram"] { display: block !important; }
        body[data-current-step="3"] .form-section[data-section="3"] { display: block !important; }
        body[data-current-step="4"] .form-section[data-section="4"] { display: block !important; }
        /* Make progress steps clickable to navigate */
        .progress-step { cursor: pointer; transition: opacity 0.15s; }
        .progress-step:hover { opacity: 0.8; }
        /* Step nav buttons appended below each step */
        .v268-stepnav { display: flex; gap: 10px; padding: 16px 0 4px; max-width: 100%; }
        .v268-stepnav button { flex: 1; height: 48px; font-family: Oswald, sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 10px; cursor: pointer; }
        .v268-stepnav .v268-back { background: #fff; color: #1a1a1a; border: 2px solid #e4e4e7; }
        .v268-stepnav .v268-next { background: #0a0a0a; color: #FCB900; border: 2px solid #0a0a0a; }
        .v268-stepnav .v268-back:hover { border-color: #1a1a1a; }

            .ptp-camp-photo-uploader{margin-bottom:8px}
            .instagram-photo-zone{position:relative;width:100%;max-width:280px;aspect-ratio:1;border-radius:12px;border:3px dashed var(--gray-300);background:var(--gray-50);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;overflow:hidden}
            .instagram-photo-zone:hover,.instagram-photo-zone.dragging{border-color:#E1306C;background:rgba(225,48,108,0.05)}
            .instagram-photo-zone.has-photo{border-style:solid;border-color:#E1306C}
            .instagram-photo-zone.uploading{pointer-events:none}
            .instagram-photo-preview{width:100%;height:100%;object-fit:cover;display:none}
            .instagram-photo-zone.has-photo .instagram-photo-preview{display:block}
            .instagram-photo-zone.has-photo .instagram-photo-placeholder{display:none}
            .instagram-photo-placeholder{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--gray-500);padding:20px;text-align:center;font-size:13px}
            .instagram-photo-placeholder svg{color:var(--gray-400)}
            .instagram-photo-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.6);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;border-radius:9px;color:#fff;font-size:13px;font-weight:600}
            .instagram-photo-zone:hover .instagram-photo-overlay,.instagram-photo-zone:focus-within .instagram-photo-overlay{opacity:1}
            .instagram-photo-zone.uploading .instagram-photo-overlay{opacity:1;background:rgba(0,0,0,0.8)}
            .instagram-photo-zone.uploading .instagram-photo-overlay>span{display:none}
            .instagram-photo-progress{display:none;flex-direction:column;align-items:center;gap:8px}
            .instagram-photo-zone.uploading .instagram-photo-progress{display:flex}
            .instagram-photo-progress .progress-ring{width:48px;height:48px}
            .instagram-photo-progress .progress-ring circle{fill:none;stroke-width:4}
            .instagram-photo-progress .progress-ring .bg{stroke:rgba(255,255,255,0.2)}
            .instagram-photo-progress .progress-ring .progress{stroke:#E1306C;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .3s}
            .instagram-photo-progress .progress-text{color:#fff;font-size:12px;font-weight:600}
            .instagram-photo-remove{display:flex;align-items:center;gap:6px;padding:8px 12px;margin-top:12px;background:transparent;border:1px solid var(--gray-300);border-radius:6px;color:var(--gray-600);font-size:12px;cursor:pointer;transition:all .2s}
            .instagram-photo-remove:hover{border-color:var(--red);color:var(--red)}

                    .rv-summary { background:var(--surface,#f8f8f6); border:1.5px solid var(--gray-200,#e4e4e7); border-radius:12px; padding:14px 16px; margin-bottom:18px; }
                    .rv-summary-title { font-family:Oswald,sans-serif; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--gray-600,#525252); margin-bottom:10px; }
                    .rv-line { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 0; border-bottom:1px solid var(--gray-100,#f3f4f6); font-size:14px; }
                    .rv-line:last-child { border-bottom:none; }
                    .rv-line-name { color:var(--gray-900,#111); flex:1; min-width:0; }
                    .rv-line-meta { color:var(--gray-500,#6b6b63); font-size:12px; margin-top:2px; }
                    .rv-line-price { color:var(--gray-900,#111); font-weight:600; white-space:nowrap; }
                    .rv-totals { margin-top:10px; padding-top:10px; border-top:2px solid var(--gray-900,#0a0a0a); }
                    .rv-totals-row { display:flex; justify-content:space-between; font-size:13px; color:var(--gray-700,#374151); padding:4px 0; }
                    .rv-totals-row.save { color:#059669; }
                    .rv-totals-row.grand { font-size:18px; font-weight:700; color:var(--gray-900,#111); padding-top:8px; margin-top:4px; border-top:1px solid var(--gray-200,#e4e4e7); }

                    .rv-upsell-h { font-family:Oswald,sans-serif; font-size:15px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gray-800,#1f2937); margin:22px 0 12px; display:flex; align-items:center; gap:10px; }
                    .rv-upsell-h svg { color:#FCB900; flex-shrink:0; }
                    .rv-upsell-h .rv-save-tag { background:rgba(252,185,0,0.12); color:#92400E; font-size:11px; font-weight:700; padding:4px 10px; border-radius:20px; letter-spacing:.02em; }

                    .rv-trainer-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
                    @media (max-width:520px) { .rv-trainer-grid { grid-template-columns:1fr; } }
                    .rv-trainer { display:flex; align-items:center; gap:12px; padding:12px; border:2px solid var(--gray-200,#e4e4e7); border-radius:10px; background:#fff; cursor:pointer; transition:all 0.15s; -webkit-tap-highlight-color:rgba(252,185,0,.15); touch-action:manipulation; }
                    .rv-trainer:hover, .rv-trainer:focus-visible { border-color:#FCB900; outline:none; }
                    .rv-trainer:active { transform:scale(0.99); }
                    .rv-trainer-photo { width:52px; height:52px; border-radius:50%; background-size:cover; background-position:center; background-color:#e5e7eb; flex-shrink:0; }
                    .rv-trainer-info { flex:1; min-width:0; }
                    .rv-trainer-name { font-size:14px; font-weight:700; color:var(--gray-900,#111); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
                    .rv-trainer-meta { font-size:11px; color:var(--gray-500,#6b6b63); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
                    .rv-trainer-rate { font-size:12px; font-weight:700; color:#92400E; margin-top:3px; }
                    .rv-trainer-add { background:#FCB900; color:#0a0a0a; font-family:Oswald,sans-serif; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.05em; padding:8px 12px; border-radius:6px; white-space:nowrap; }

                    .rv-continue { display:block; width:100%; background:#0a0a0a; color:#FCB900; font-family:Oswald,sans-serif; font-weight:700; font-size:15px; text-transform:uppercase; letter-spacing:.06em; padding:16px; border:none; border-radius:10px; cursor:pointer; margin-top:22px; transition:all 0.15s; min-height:52px; -webkit-tap-highlight-color:rgba(252,185,0,.15); touch-action:manipulation; }
                    .rv-continue:hover { background:#1f1f1f; }
                    .rv-continue:active { transform:scale(0.99); }

                    /* Training package picker sheet */
                    /* v268: NUCLEAR popup hide. display:none kills the element entirely
                       (no layout space, no rendering, no positioning bugs). Only when JS
                       explicitly opens it via rvOpenPkgSheet does .on get added and reveal it. */
                    /* v300.28: content-visibility:auto skips rendering work until the sheet is opened,
                       giving us the lazy-render perf win without rewriting the JS handlers */
                    .rv-pkg-overlay { display:none !important; position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:9998; content-visibility:auto; contain:layout paint; }
                    .rv-pkg-overlay.on { display:block !important; }
                    .rv-pkg-sheet { display:none !important; position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); background:#fff; border-radius:16px; padding:20px; z-index:9999; max-width:460px; width:calc(100% - 32px); max-height:85vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.3); content-visibility:auto; contain-intrinsic-size:0 420px; }
                    .rv-pkg-sheet.on { display:block !important; }
                    @media (min-width:640px) { .rv-pkg-sheet { max-width:460px; left:50%; transform:translate(-50%, 100%); border-radius:16px; bottom:50%; margin-bottom:-280px; } .rv-pkg-sheet.on { transform:translate(-50%, 0); } }
                    .rv-pkg-header { display:flex; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--gray-100,#f3f4f6); margin-bottom:14px; }
                    .rv-pkg-photo { width:48px; height:48px; border-radius:50%; background-size:cover; background-position:center; background-color:#e5e7eb; flex-shrink:0; }
                    .rv-pkg-title { font-family:Oswald,sans-serif; font-size:18px; font-weight:700; color:var(--gray-900,#111); }
                    .rv-pkg-sub { font-size:12px; color:var(--gray-500,#6b6b63); margin-top:2px; }
                    .rv-pkg-close { margin-left:auto; width:44px; height:44px; min-width:44px; min-height:44px; border:none; background:#f3f4f6; border-radius:50%; cursor:pointer; font-size:22px; display:flex; align-items:center; justify-content:center; color:#6b7280; -webkit-tap-highlight-color:rgba(0,0,0,.1); touch-action:manipulation; }
                    .rv-trainer-add, .ptp-add-week-btn, .ptp-add-week-action .ptp-add-week-btn { min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
                    .rv-pkg-opt { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border:2px solid var(--gray-200,#e4e4e7); border-radius:10px; margin-bottom:10px; cursor:pointer; transition:all 0.15s; background:#fff; -webkit-tap-highlight-color:rgba(252,185,0,.15); touch-action:manipulation; }
                    .rv-pkg-opt:hover { border-color:#FCB900; }
                    .rv-pkg-opt:active { transform:scale(0.99); }
                    .rv-pkg-opt-name { font-size:15px; font-weight:700; color:var(--gray-900,#111); }
                    .rv-pkg-opt-meta { font-size:12px; color:var(--gray-500,#6b6b63); margin-top:2px; }
                    .rv-pkg-opt-price { font-size:17px; font-weight:700; color:var(--gray-900,#111); }
                    .rv-pkg-opt-save { font-size:11px; font-weight:600; color:#059669; margin-top:2px; }
                    .rv-pkg-note { font-size:12px; color:var(--gray-500,#6b6b63); text-align:center; margin-top:10px; line-height:1.5; }
                    /* v301: Hero camp upsell removed — CSS cleaned up */

                    .ptp-free-training-banner { margin:14px 0 18px; padding:16px 18px; background:linear-gradient(135deg,#FCB900,#F59E0B); border-radius:12px; display:flex; align-items:center; gap:14px; }
                    .ptp-free-training-banner-icon { width:44px; height:44px; border-radius:50%; background:#0a0a0a; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
                    .ptp-free-training-banner-title { font-family:Oswald,sans-serif; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#0a0a0a; line-height:1.2; }
                    .ptp-free-training-banner-sub { font-size:12px; color:#0a0a0a; line-height:1.45; margin-top:4px; opacity:0.85; }
                    @media (max-width:560px) {
                        .ptp-free-training-banner { padding:14px; gap:12px; border-radius:10px; }
                        .ptp-free-training-banner-icon { width:38px; height:38px; }
                        .ptp-free-training-banner-icon svg { width:18px; height:18px; }
                        .ptp-free-training-banner-title { font-size:12px; }
                        .ptp-free-training-banner-sub { font-size:11px; line-height:1.4; }
                    }

        .ptp-more-weeks { margin-top:24px; padding-bottom:20px; }
        .ptp-more-weeks-title { font-family:Oswald,sans-serif; font-size:15px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--gray-700,#374151); margin-bottom:14px; display:flex; align-items:center; gap:10px; }
        .ptp-more-weeks-title svg { color:#FCB900; }
        .ptp-more-weeks-save { background:rgba(252,185,0,0.1); color:#92400E; font-size:12px; font-weight:600; padding:4px 10px; border-radius:20px; }
        .ptp-add-week { display:flex; align-items:center; gap:14px; padding:14px 16px; border:2px solid var(--gray-200,#e4e4e7); cursor:pointer; transition:all 0.15s; background:var(--white,#fff); margin-bottom:8px; }
        .ptp-add-week:hover { border-color:#FCB900; }
        .ptp-add-week:active { transform:scale(0.99); }
        .ptp-add-week-img { width:48px; height:48px; border-radius:6px; background-size:cover; background-position:center; flex-shrink:0; }
        .ptp-add-week-info { flex:1; min-width:0; }
        .ptp-add-week-name { font-size:14px; font-weight:600; color:var(--gray-900,#111); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .ptp-add-week-meta { font-size:12px; color:var(--gray-500,#6b7280); margin-top:2px; }
        .ptp-add-week-action { flex-shrink:0; text-align:center; }
        .ptp-add-week-price { font-family:Oswald,sans-serif; font-size:15px; font-weight:700; color:var(--gray-900,#111); }
        .ptp-add-week-btn { display:inline-flex; align-items:center; gap:4px; margin-top:4px; padding:5px 14px; background:#FCB900; color:#0A0A0A; font-family:Oswald,sans-serif; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; border:none; cursor:pointer; transition:background 0.15s; }
        .ptp-add-week-btn:hover { background:#E5A800; }
        .ptp-add-week.adding { opacity:0.5; pointer-events:none; }
        .ptp-add-week.adding .ptp-add-week-btn { background:#ccc; }
        @media(max-width:899px) {
            .ptp-more-weeks { padding-bottom:100px; }
        }

