/* =========================================================================
 * teamLab Planets clone — booking/checkout components
 * Complements the captured official CSS (style-*.css): everything below
 * styles only our own .tlp-* elements plus the selected calendar cell.
 * Font stack matches the official pages.
 * ========================================================================= */

:root {
  --tlp-ink: #111;
  --tlp-border: #dcdcdc;
  --tlp-muted: #767676;
  --tlp-bg-soft: #f7f7f7;
  --tlp-accent: #111;
  --tlp-error: #b3261e;
}

/* selected date on the calendar (official CSS has no "selected" state) */
.p-purchaseCalendar_available.is-selected > label,
.p-purchaseCalendar_available.is-selected .fn-selectDate {
  outline: 2px solid var(--tlp-accent);
  outline-offset: -2px;
  background: #efefef;
}
.p-purchaseCalendar_available { cursor: pointer; }

/* slot lists injected on the ticket page */
.tlp-slots { margin-top: 32px; }
.tlp-slots [data-ticket-type] + [data-ticket-type] { margin-top: 40px; }

/* month-pair navigation arrows (official carousel JS was stripped — the
   official CSS lays out the 790px two-month set itself) */
#tlp-booking-root .p-ticketTime_calendarSlider { position: relative; }
#tlp-booking-root .p-purchaseCalendar_arrowLeft,
#tlp-booking-root .p-purchaseCalendar_arrowRight {
  position: absolute; top: 130px; z-index: 5;
  font-size: 26px; line-height: 1; text-decoration: none; color: #111;
  padding: 8px;
}
#tlp-booking-root .p-purchaseCalendar_arrowLeft { left: -34px; }
#tlp-booking-root .p-purchaseCalendar_arrowRight { right: -34px; }

/* ------------------------------------------------------------------ */
/* checkout.php                                                        */
/* ------------------------------------------------------------------ */

.tlp-notice {
  background: var(--tlp-bg-soft);
  border: 1px solid var(--tlp-border);
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}

.tlp-btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
}

.tlp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 28px 0 8px;
  flex-wrap: wrap;
}

.tlp-limit { color: var(--tlp-muted); font-size: 13px; margin-top: 10px; }

.tlp-error {
  color: var(--tlp-error);
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 0;
}

/* quantity stepper rows */
.tlp-qty-col { display: flex; align-items: center; gap: 14px; }
.tlp-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--tlp-border); }
.tlp-stepper-btn {
  width: 38px; height: 38px;
  border: 0; background: var(--tlp-bg-soft);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.tlp-stepper-btn:hover { background: #e9e9e9; }
.tlp-stepper-val {
  min-width: 40px; text-align: center;
  font-size: 15px; font-weight: 600;
}

/* visitor form */
.tlp-form { margin-top: 20px; }
.tlp-field { display: block; margin-bottom: 18px; }
.tlp-field > span {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 6px; color: var(--tlp-ink);
}
.tlp-field input,
.tlp-field select {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--tlp-border);
  padding: 12px 12px; font-size: 15px;
  background: #fff; color: var(--tlp-ink);
}
.tlp-field input:focus,
.tlp-field select:focus { outline: 2px solid #9e9e9e; outline-offset: -1px; }

/* review / confirmation */
.tlp-total-row .c-listItem_title { font-size: 17px; }
.tlp-visitor-box {
  border: 1px solid var(--tlp-border);
  background: var(--tlp-bg-soft);
  padding: 16px 18px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
}
.tlp-testnote {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px dashed var(--tlp-error);
  color: var(--tlp-error);
  font-size: 13px;
  font-weight: 600;
}
.tlp-confirm { text-align: center; }
.tlp-confirm-lead { color: var(--tlp-muted); font-size: 13px; margin: 18px 0 4px; }
.tlp-ref {
  font-size: 30px; font-weight: 800; letter-spacing: .08em;
  margin: 0 0 18px;
}
.tlp-qr { display: flex; justify-content: center; margin: 8px 0 22px; }
.tlp-qr svg { width: 180px; height: 180px; }
.tlp-confirm .tlp-summary-list,
.tlp-confirm .tlp-visitor-box { text-align: left; }
.tlp-confirm .tlp-actions { justify-content: center; }

/* summary list spacing tweak */
.tlp-summary-list { margin: 18px 0 26px; }

/* payment step */
.tlp-pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tlp-pay-summary { margin-top: 8px; }
.tlp-pay-summary-title { font-size: 15px; margin: 26px 0 4px; }
.tlp-note { color: var(--tlp-muted); font-size: 13px; margin-top: 16px; }

/* legal / support pages */
.tlp-legal { padding: 8px 0 40px; font-size: 14px; line-height: 1.8; }
.tlp-legal h2 { font-size: 17px; margin: 28px 0 8px; }
.tlp-legal p { margin: 0 0 12px; }
.tlp-legal a { color: inherit; text-decoration: underline; }

/* =========================================================================
 * Responsive layer — the captured stylesheet is the official PC one (no
 * mobile breakpoints; the official site serves a separate SP version).
 * Rules below make the cloned pages usable on phones/tablets.
 * ========================================================================= */
@media (max-width: 840px) {
  /* the official PC shell pins the layout to desktop width */
  .l-wrapper, .l-content { min-width: 0 !important; }
  /* fluid main column */
  .l-w644 { width: auto; padding: 0 14px; }
  .p-ticketTime_calendar { left: 0; transform: none; width: 100%; }
  #tlp-booking-root .p-ticketTime_calendarSliderContainer { width: auto; }
  #tlp-booking-root .p-ticketTime_calendarSliderSet { width: 100%; justify-content: center; }
  #tlp-booking-root .p-purchaseCalendar_arrowLeft { left: 0; }
  #tlp-booking-root .p-purchaseCalendar_arrowRight { right: 0; }
  /* slot list padding (official 48px is desktop-only) */
  .p-ticketTime_selectTimeContent { padding: 24px 0 0; }
  .p-ticketTime_selectTimeContent .c-title-section { padding: 0; }
  .p-ticketTime_selectTimeContent .p-ticketTime_selectTimeList { padding: 16px 0 40px; }
  /* images/media never overflow */
  .l-content img, .l-content video, .l-content iframe { max-width: 100%; height: auto; }
  .l-content iframe { aspect-ratio: 16 / 9; }
  /* header */
  .p-header_logo img { width: 100px; height: auto; }
  /* checkout */
  .tlp-actions { flex-direction: column-reverse; align-items: stretch; }
  .tlp-actions .c-btn-secondary,
  .tlp-actions .tlp-btn { width: 100% !important; box-sizing: border-box; margin: 0; }
  .tlp-pay-row { grid-template-columns: 1fr 1fr; }
  .tlp-ref { font-size: 24px; }
  /* headings scale */
  h1 { font-size: 22px; }
  .c-title { word-break: break-word; }
  /* disclaimer banners */
  .tlp-disc-banner { font-size: 11px; padding: 6px 10px; }
  .tlp-disc-footer { font-size: 12px; padding: 20px 12px; }
  .tlp-disc-footer a { display: inline-block; margin: 4px 8px; }
  /* footer nav links wrap */
  .p-footer ul, .p-footer_navList { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
}
