/* ================================================================
   Theme Park Booking — Single Product Two-Column Layout
   Mobile-first · No external dependencies
   ================================================================ */

/* ── Scope reset ─────────────────────────────────────────────── */
.tpb-product-page *,
.tpb-product-page *::before,
.tpb-product-page *::after {
  box-sizing: border-box;
}

/* ── Two-column grid (desktop: 1fr + 1.1fr) ──────────────────── */
.tpb-product-page .product {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  /* Allow sticky child to work */
  overflow: visible !important;
}

/* Reset WooCommerce float/width defaults inside the grid */
.tpb-product-page .woocommerce-product-gallery,
.tpb-product-page .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.tpb-col-left,
.tpb-col-right {
  min-width: 0;
  width: 100%;
}

/* ── Booking card ────────────────────────────────────────────── */
.tpb-booking-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
  padding: 2rem;
  border: 1px solid #e2e8f0;
}

/* ── Product image gallery ───────────────────────────────────── */
.tpb-col-left .woocommerce-product-gallery {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem !important;
}

.tpb-col-left .woocommerce-product-gallery__image img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  display: block;
}

/* ── Left column: product title ──────────────────────────────── */
.tpb-product-title-wrap .entry-title,
.tpb-product-title-wrap h1.product_title {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 0 .75rem !important;
}

/* ── Left column: product price ──────────────────────────────── */
.tpb-product-price-wrap .price {
  color: #2d7a3a !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  display: block;
  margin-bottom: .75rem;
}

.tpb-product-price-wrap .price .amount,
.tpb-product-price-wrap .price bdi {
  color: #2d7a3a !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* ── Left column: product description ───────────────────────── */
.tpb-product-desc-wrap {
  color: #475569;
  font-size: .97rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.tpb-product-desc-wrap p {
  margin: 0 0 .75rem;
}

.tpb-product-desc-wrap p:last-child {
  margin-bottom: 0;
}

/* ── Left column: feature badges ─────────────────────────────── */
.tpb-product-features {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tpb-feature-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: #0f172a;
}

.tpb-feature-badge svg {
  color: #2d7a3a;
  flex-shrink: 0;
}

/* ── Left column: meta (SKU, Category) ──────────────────────── */
.tpb-product-meta-wrap {
  margin-top: .5rem;
}

.tpb-product-meta-wrap .product_meta {
  font-size: .9rem;
  color: #475569;
  line-height: 1.8;
}

.tpb-product-meta-wrap .product_meta .sku,
.tpb-product-meta-wrap .product_meta .posted_in a,
.tpb-product-meta-wrap .product_meta .tagged_as a {
  color: #0f172a;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   BOOKING CARD — Green colour overrides via CSS custom properties
═══════════════════════════════════════════════════════════════ */
.tpb-booking-card .tpb-wrap {
  --tpb-accent:       #2d7a3a;
  --tpb-accent-dark:  #1e5a28;
  --tpb-accent-light: #f0f7f1;
  --tpb-border-focus: #2d7a3a;
  max-width: none;
  width: 100%;
}

/* Stepper — green pill border, green buttons */
.tpb-booking-card .tpb-stepper {
  border-color: #c8e6c9;
}

.tpb-booking-card .tpb-step-dec,
.tpb-booking-card .tpb-step-inc {
  color: #2d7a3a;
}

.tpb-booking-card .tpb-step-dec:hover:not(:disabled),
.tpb-booking-card .tpb-step-inc:hover:not(:disabled) {
  background: #2d7a3a;
  color: #ffffff;
}

.tpb-booking-card .tpb-step-dec:focus-visible,
.tpb-booking-card .tpb-step-inc:focus-visible {
  outline-color: #2d7a3a;
}

/* Date input — green focus ring */
.tpb-booking-card .tpb-date-input:focus {
  border-color: #2d7a3a;
  box-shadow: 0 0 0 3px rgba(45,122,58,.15);
}

/* Book Now button — solid green */
.tpb-booking-card .tpb-book-btn {
  background: #2d7a3a;
  background-image: none;
  box-shadow: 0 4px 14px rgba(45,122,58,.35);
}

.tpb-booking-card .tpb-book-btn:hover:not(:disabled) {
  background: #1e5a28;
  box-shadow: 0 6px 20px rgba(45,122,58,.45);
}

.tpb-booking-card .tpb-book-btn:active:not(:disabled) {
  box-shadow: 0 2px 8px rgba(45,122,58,.3);
}

.tpb-booking-card .tpb-book-btn:focus-visible {
  outline-color: #2d7a3a;
}

/* Summary total bar — green gradient */
.tpb-booking-card .tpb-summary__total {
  background: linear-gradient(135deg, #2d7a3a 0%, #1e5a28 100%) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BOOKING CARD — New template element styles
   (booking-form.php uses these classes; product-layout.css owns them)
═══════════════════════════════════════════════════════════════ */

/* Section wrapper */
.tpb-booking-card .tpb-section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Divider between sections */
.tpb-booking-card .tpb-divider {
  height: 1px;
  background: #e2e8f0;
  margin: .5rem 0;
  border: none;
}

/* Step heading row */
.tpb-booking-card .tpb-step-heading {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Step icon */
.tpb-booking-card .tpb-step-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #f0f7f1;
  color: #2d7a3a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step title */
.tpb-booking-card .tpb-step-title {
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* Date tip */
.tpb-booking-card .tpb-date-tip {
  background: #f0f7f1;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: .75rem 1rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: #2d7a3a;
  font-size: .82rem;
  line-height: 1.5;
}

.tpb-booking-card .tpb-date-tip svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Visitor row */
.tpb-booking-card .tpb-visitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tpb-booking-card .tpb-visitor-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.tpb-booking-card .tpb-visitor-name {
  font-size: .95rem;
  font-weight: 600;
  color: #0f172a;
}

.tpb-booking-card .tpb-visitor-age {
  font-size: .8rem;
  color: #475569;
}

/* Price summary rows */
.tpb-booking-card .tpb-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
  gap: 1rem;
}

.tpb-booking-card .tpb-price-label {
  color: #475569;
}

.tpb-booking-card .tpb-price-value {
  font-weight: 600;
  color: #0f172a;
}

.tpb-booking-card .tpb-price-value bdi,
.tpb-booking-card .tpb-price-value .woocommerce-Price-amount {
  color: inherit !important;
}

/* Total divider */
.tpb-booking-card .tpb-total-divider {
  height: 1px;
  background: #e2e8f0;
  margin: .5rem 0;
}

/* Total row */
.tpb-booking-card .tpb-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tpb-booking-card .tpb-total-label {
  font-size: .9rem;
  font-weight: 600;
  color: #0f172a;
}

.tpb-booking-card .tpb-total-breakdown {
  font-size: .8rem;
  color: #475569;
  margin-top: .2rem;
}

/* Total amount — green, large, bold */
.tpb-booking-card .tpb-total-amount {
  color: #2d7a3a !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  text-align: right;
  line-height: 1.2;
}

.tpb-booking-card .tpb-total-amount bdi,
.tpb-booking-card .tpb-total-amount span,
.tpb-booking-card .tpb-sum-total bdi,
.tpb-booking-card .tpb-sum-total span {
  color: inherit !important;
}

/* Trust badges */
.tpb-booking-card .tpb-trust {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.tpb-booking-card .tpb-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 500;
  color: #475569;
  text-align: center;
  min-width: 70px;
}

.tpb-booking-card .tpb-trust__icon {
  width: 2.25rem;
  height: 2.25rem;
  background: #f0f7f1;
  color: #2d7a3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Tablet (701px – 1024px) ─────────────────────────────────── */
@media (min-width: 701px) {
  .tpb-product-page .product {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }

  .tpb-col-right {
    position: sticky;
    top: 2rem;
  }
}

/* ── Desktop (1025px+) ───────────────────────────────────────── */
@media (min-width: 1025px) {
  .tpb-product-page .product {
    gap: 3.5rem;
  }

  .tpb-product-title-wrap .entry-title,
  .tpb-product-title-wrap h1.product_title {
    font-size: 2.25rem !important;
  }
}
