/* Granular booking page: visual styling only, no booking logic changes. */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700;800&display=swap');

body.gb-booking-only {
  --gb-booking-orange: #ed6414;
  --gb-booking-dark-orange: #b83b0b;
  --gb-booking-ink: #241b18;
  --gb-booking-cream: #fffaf6;
  --gb-booking-border: #efcfbb;
  font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
  background: linear-gradient(180deg, #fffaf6 0%, #fff0e2 58%, #fffaf6 100%);
  color: var(--gb-booking-ink);
}

body.gb-booking-only :is(button,input,select,textarea) {
  font-family: inherit;
}

/* No duplicate hero, homepage sections, or extra 'back to homepage' card. */
body.gb-booking-only .hero,
body.gb-booking-only #gb-courts-gallery,
body.gb-booking-only #facilities,
body.gb-booking-only #contact,
body.gb-booking-only section.how,
body.gb-booking-only .gb-booking-banner {
  display: none !important;
}

/* Match the actual homepage header without removing the LINE sign-in button. */
body.gb-booking-only #gb-site-header.header,
body.gb-booking-only header.header {
  background: rgba(255, 252, 249, .97);
  border-bottom: 1px solid #e8c9b4;
  box-shadow: 0 8px 22px rgba(77, 30, 14, .09);
}
body.gb-booking-only #gb-site-header .nav {
  max-width: 1600px;
  min-height: 82px;
}
body.gb-booking-only #gb-site-header .wordmark strong {
  font-family: 'Prompt', sans-serif;
  color: #201c18;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 800;
  letter-spacing: .1em;
}
body.gb-booking-only #gb-site-header .wordmark small {
  font-family: 'Prompt', sans-serif;
  font-size: 9px;
  letter-spacing: .19em;
}
body.gb-booking-only #gb-site-header .gb-nav-links {
  gap: clamp(10px, 1.55vw, 24px);
}
body.gb-booking-only #gb-site-header .gb-nav-links a {
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #644e43;
}
body.gb-booking-only #gb-site-header .gb-nav-links a:hover,
body.gb-booking-only #gb-site-header .gb-nav-links a[aria-current="page"] {
  color: var(--gb-booking-orange);
}
body.gb-booking-only #gb-site-header #auth-actions .btn-line {
  background: #06c755;
  color: #fff;
  font-family: 'Prompt', sans-serif;
  border-radius: 11px;
  font-weight: 700;
}

/* Booking content starts right under the navigation; keep the real 6-court app. */
body.gb-booking-only main.shell {
  max-width: 1300px;
}
body.gb-booking-only .info-strip {
  margin-top: 28px;
  padding: 22px 25px;
  border: 0;
  border-radius: 19px;
  background: #241b17;
  color: #eac9b4;
  box-shadow: 0 15px 36px rgba(65, 25, 11, .16);
  gap: 17px 28px;
}
body.gb-booking-only .info-strip strong {
  color: #fff;
  font-size: 22px;
}
body.gb-booking-only .info-strip a {
  color: #ffaf75;
  font-weight: 700;
}
body.gb-booking-only #booking {
  padding-top: 48px;
  scroll-margin-top: 105px;
}
body.gb-booking-only #my-bookings,
body.gb-booking-only #payment {
  scroll-margin-top: 105px;
}
body.gb-booking-only .title-row {
  gap: 18px;
  margin-bottom: 29px;
}
body.gb-booking-only .title-row h2 {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(32px, 3.3vw, 47px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--gb-booking-ink);
}
body.gb-booking-only .eyebrow {
  color: #b84714;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
body.gb-booking-only .step-hint {
  color: #866451;
  line-height: 1.65;
}
body.gb-booking-only .panel,
body.gb-booking-only .payment-card,
body.gb-booking-only .history-card,
body.gb-booking-only .help-box {
  border: 1px solid var(--gb-booking-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(99, 50, 26, .09);
}
body.gb-booking-only .panel-head h3 {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  color: var(--gb-booking-ink);
}
body.gb-booking-only .calendar-label {
  color: var(--gb-booking-ink);
}
body.gb-booking-only .day-btn,
body.gb-booking-only .slot-btn {
  font-family: 'Prompt', sans-serif;
  border-radius: 10px;
}
body.gb-booking-only .day-btn.active,
body.gb-booking-only .slot-btn.selected {
  background: #dc5410;
  color: #fff;
  border-color: #bf450c;
}
body.gb-booking-only .pill {
  border: 1px solid #f8d6bb;
}
body.gb-booking-only :is(input:not([type=checkbox]):not([type=file]),textarea,select) {
  border-radius: 11px;
}
body.gb-booking-only .summary-card {
  border: 1px solid #76402b;
  border-radius: 22px;
  background: linear-gradient(150deg, #241b18 0%, #3b2319 65%, #682c16 100%);
  box-shadow: 0 17px 42px rgba(48, 20, 8, .22);
  color: white;
}
body.gb-booking-only .summary-card .eyebrow.light,
body.gb-booking-only .summary-lines > div span,
body.gb-booking-only .summary-card .fine-print {
  color: #ffe0cc;
}
body.gb-booking-only .summary-card .btn-lime,
body.gb-booking-only #send-slip.btn-lime {
  background: linear-gradient(110deg, #fd6b16, #c83a0a);
  color: #fff;
  border-radius: 13px;
  font-weight: 800;
  min-height: 53px;
}
body.gb-booking-only .summary-card .btn-lime:hover,
body.gb-booking-only #send-slip.btn-lime:hover {
  background: #ac360a;
  color: #fff;
}
body.gb-booking-only .footer {
  background: #191816;
}

/* Keep the established timetable scroll and mobile layout intact. */
body.gb-booking-only .customer-grid > .stack,
body.gb-booking-only .customer-grid > .stack > .panel {
  min-width: 0;
}
body.gb-booking-only .slot-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 1050px) {
  body.gb-booking-only #gb-site-header .nav { min-height: 74px; }
}
@media (max-width: 720px) {
  body.gb-booking-only #gb-site-header .nav { min-height: 68px; }
  body.gb-booking-only .info-strip { margin-top: 16px; padding: 18px; gap: 10px 18px; border-radius: 15px; }
  body.gb-booking-only #booking { padding-top: 30px; }
  body.gb-booking-only .title-row h2 { font-size: clamp(29px, 7vw, 39px); }
  body.gb-booking-only .panel { border-radius: 17px; }
  body.gb-booking-only .summary-card { border-radius: 18px; }
}

/* Unified Granular desktop navigation */
@media (min-width: 1051px) {
  .gb-header-inner,
  body.gb-booking-only #gb-site-header .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    max-width: 1600px;
    min-height: 86px;
    padding: 0 36px;
    margin: 0 auto;
  }

  .gb-wordmark,
  body.gb-booking-only #gb-site-header .wordmark {
    justify-self: start;
  }

  .gb-wordmark img,
  body.gb-booking-only #gb-site-header .wordmark img {
    width: 56px;
    height: 56px;
  }

  .gb-wordmark strong,
  body.gb-booking-only #gb-site-header .wordmark strong {
    font-size: 23px;
    font-weight: 800;
  }

  .gb-nav,
  body.gb-booking-only #gb-site-header .gb-nav-links {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-self: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
  }

  .gb-nav a,
  body.gb-booking-only #gb-site-header .gb-nav-links a {
    font-size: 15px;
    font-weight: 700;
  }

  .gb-nav-cta,
  body.gb-booking-only #gb-site-header #auth-actions {
    justify-self: end;
    margin: 0;
  }

  .gb-nav-cta,
  body.gb-booking-only #gb-site-header #auth-actions .btn {
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
  }

  body { padding-top: 86px; }
}

@media (min-width: 1051px) and (max-width: 1350px) {
  .gb-header-inner,
  body.gb-booking-only #gb-site-header .nav {
    padding: 0 22px;
    column-gap: 10px;
  }

  .gb-nav,
  body.gb-booking-only #gb-site-header .gb-nav-links {
    gap: 10px;
  }

  .gb-nav a,
  body.gb-booking-only #gb-site-header .gb-nav-links a {
    font-size: 13px;
  }
}

/* One-page court + fitness checkout, centered on mobile and desktop. */
body.gb-booking-only main.shell{width:100%;max-width:1300px;margin-left:auto;margin-right:auto;min-width:0}
body.gb-booking-only .info-strip{margin-top:8px}
.gb-fitness-add-on{min-width:0}
.gb-addon-note,.gb-addon-hint{margin:4px 0 16px;font-size:13px;line-height:1.7;color:#73584b}
.gb-addon-hint{margin:13px 0 0;font-size:12px}
.gb-addon-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.gb-addon-plans label{cursor:pointer;position:relative;min-width:0}
.gb-addon-plans input{position:absolute;opacity:0;inset:0}
.gb-addon-plans span{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;background:#fffbf8;border:2px solid #ecd4c4;border-radius:12px;padding:14px;min-height:102px;font-size:14px;font-weight:650;color:#463025;line-height:1.4}
.gb-addon-plans strong{font-size:18px;font-weight:800;color:#bc410e}
.gb-addon-plans input:checked+span{border-color:#df5514;background:#fff1e5;box-shadow:0 0 0 1px #df551440}
.gb-addon-plans input:focus-visible+span{outline:3px solid #ffa26e;outline-offset:2px}
.gb-addon-summary{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ffffff30;font-size:13px}
.gb-addon-summary strong{text-align:right;color:#fff}
.gb-payment-breakdown{color:#87420d;background:#fff0dd;border-radius:9px;padding:10px 12px;font-size:13px}
@media(max-width:720px){
 body.gb-booking-only main.shell{padding-left:15px;padding-right:15px;box-sizing:border-box}
 body.gb-booking-only .info-strip{margin-top:8px}
 .gb-addon-plans{grid-template-columns:1fr;gap:8px}
 .gb-addon-plans span{min-height:58px;flex-direction:row;align-items:center;padding:12px;font-size:13px}
 .gb-addon-plans strong{white-space:nowrap;font-size:16px}
}

.gb-addon-summary[hidden]{display:none!important}

/* Optional one-day fitness add-on, after courts and before contact details */
.gb-court-fitness{scroll-margin-top:105px}
.gb-court-fitness-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.gb-court-fitness-options label{cursor:pointer;min-width:0}
.gb-court-fitness-options input{position:absolute;opacity:0}
.gb-court-fitness-options label span{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 15px;border:2px solid #ecd5c5;border-radius:13px;background:#fffaf7;min-height:82px}
.gb-court-fitness-options input:checked+span{border-color:#df5312;background:#fff0e4}
.gb-court-fitness-options input:focus-visible+span{outline:3px solid #e8a377}
.gb-court-fitness-options b{font-size:14px;line-height:1.5}
.gb-court-fitness-options strong{color:#b33b07;white-space:nowrap}
.gb-summary-fitness{margin:12px 0 0;padding:8px 0;border-top:1px solid #ffffff33}
@media(max-width:600px){.gb-court-fitness-options{grid-template-columns:1fr}}

/* My bookings shortcut replaces the obsolete dark court information bar. */
body.gb-booking-only .gb-my-bookings-shortcut {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:8px 0 0;
  padding:18px 22px;
  background:#fff;
  border:1px solid #efcfbb;
  border-radius:17px;
  box-shadow:0 8px 22px rgba(99,50,26,.06);
  min-width:0;
}
.gb-my-bookings-shortcut>div{min-width:0}
.gb-my-bookings-shortcut .gb-shortcut-eyebrow {
  display:block;
  color:#ad4816;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  margin-bottom:5px;
}
.gb-my-bookings-shortcut strong {display:block;color:#241b18;font-size:20px;font-weight:800}
.gb-my-bookings-shortcut p {margin:4px 0 0;color:#826657;font-size:13px;line-height:1.5}
.gb-my-bookings-shortcut .gb-shortcut-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  gap:7px;
  min-height:44px;
  padding:10px 16px;
  border-radius:11px;
  background:#d04b0e;
  color:#fff;
  font-weight:750;
  font-size:13px;
  text-decoration:none;
}
.gb-my-bookings-shortcut .gb-shortcut-action:hover{background:#b23c0b;color:#fff}
.gb-my-bookings-shortcut .gb-shortcut-action:focus-visible{outline:3px solid #fdba74;outline-offset:2px}
/* Visually hidden radios must not become 100%-width absolutely positioned
   elements: those were causing 38px of horizontal page overflow on mobile. */
.gb-court-fitness-options label,
.gb-addon-plans label {position:relative}
.gb-court-fitness-options input[type="radio"],
.gb-addon-plans input[type="radio"] {
  position:absolute;
  width:1px!important;
  height:1px!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  clip-path:inset(50%);
  overflow:hidden;
}
@media (max-width:700px) {
  body.gb-booking-only main.shell {width:100%;max-width:100%;min-width:0;margin-inline:auto;padding-inline:15px}
  .gb-my-bookings-shortcut {flex-wrap:wrap;padding:15px!important;gap:12px!important}
  .gb-my-bookings-shortcut .gb-shortcut-action {width:100%}
  .gb-my-bookings-shortcut strong {font-size:19px}
}


/* A single, expandable My Bookings area near the top of the booking page. */
body.gb-booking-only .gb-bookings-top{margin:18px 0 6px;scroll-margin-top:110px}
body.gb-booking-only .gb-history-accordion{
  background:#fff;border:1px solid #f1cfb6;border-radius:17px;
  box-shadow:0 8px 22px rgba(99,50,26,.06);overflow:hidden;
}
body.gb-booking-only .gb-history-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:15px 20px;list-style:none;min-width:0;
}
body.gb-booking-only .gb-history-toggle::-webkit-details-marker{display:none}
body.gb-booking-only .gb-history-toggle:focus-visible{outline:3px solid #fdba74;outline-offset:-3px}
body.gb-booking-only .gb-history-label{display:block;min-width:0}
body.gb-booking-only .gb-history-label .gb-shortcut-eyebrow{display:block;color:#ad4816;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:4px}
body.gb-booking-only .gb-history-label strong{display:block;color:#241b18;font-size:20px;font-weight:800}
body.gb-booking-only .gb-history-label small{display:block;color:#826657;font-size:12px;margin-top:3px}
body.gb-booking-only .gb-history-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;background:#c8430e;color:white;font-size:13px;font-weight:750;padding:10px 16px;white-space:nowrap;flex:0 0 auto}
body.gb-booking-only .gb-history-accordion[open] .gb-history-open span{transform:rotate(180deg)}
body.gb-booking-only .gb-history-inner{border-top:1px solid #f3dcca;padding:18px 20px 22px}
body.gb-booking-only .gb-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:16px}
body.gb-booking-only .gb-history-toolbar p{margin:0;color:#826657;font-size:13px;line-height:1.6}
body.gb-booking-only .gb-history-inner .history{max-width:100%}
body.gb-booking-only .gb-history-inner .history-card{margin-bottom:12px}
@media(max-width:700px){
 body.gb-booking-only .gb-history-toggle{padding:14px 15px;gap:9px}
 body.gb-booking-only .gb-history-label strong{font-size:17px}
 body.gb-booking-only .gb-history-label small{font-size:11px}
 body.gb-booking-only .gb-history-open{font-size:12px;padding:10px 11px}
 body.gb-booking-only .gb-history-inner{padding:16px 14px}
}

.gb-availability-sync{font-size:12px;color:#866653;margin:0 0 10px;min-height:18px}
.gb-availability-sync.sync-warning{color:#a53515;font-weight:700}
@media(max-width:640px){.gb-court-fitness-options{grid-template-columns:minmax(0,1fr)}.gb-court-fitness-options label{min-width:0}body.gb-booking-only main.shell{box-sizing:border-box;max-width:100%;min-width:0}.customer-grid,.customer-grid>.stack{min-width:0;max-width:100%}}
