﻿/**
 * bookingcourse.php â€” mobile layout only (desktop unchanged via media queries).
 * Loaded after inline styles in p1/bookingcourse.php
 */

body.page-booking-course {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Google reCAPTCHA floating badge (bottom-right blue icon) â€” hidden on this page */
body.page-booking-course .grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  right: -9999px !important;
  bottom: -9999px !important;
}

/* Remove decorative red/brown bar under WWW.STCWBOOKER.COM (from inline h4.www::after) */
body.page-booking-course .bc-booking-header h4.www::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  width: 0 !important;
  background: transparent !important;
}

/* ---- Header: Back + View Cart + institute title ---- */
/* Inline .top-bar uses row flex â€” force column layout for booking header */
body.page-booking-course header.top-bar.bc-booking-header {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
}

.bc-booking-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px 14px;
  background: #e76f00;
  position: relative;
  overflow: visible;
}

/* Brand row: WWW + tagline (centered); Back is in toolbar next to map */
.bc-brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  min-width: 0;
}

/* Desktop / shared: URL + tagline only */
.bc-brand-row--centered {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.bc-brand-row--centered .bc-brand-row-center {
  grid-column: unset;
  max-width: 100%;
}

/* Logo (left) + STCW Booker brand (right) */
.bc-logo-institute-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2px;
  min-width: 0;
}

.bc-logo-institute-row .bc-booking-brand--top-right {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  align-self: center;
}

.bc-institute-heading {
  margin: 0;
}

.bc-institute-heading--center {
  text-align: center;
  width: 100%;
}

.bc-institute-heading .bc-institute-name {
  margin: 0;
}

.bc-institute-address {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Banner toolbar: Location | Search (center) | tail (cart / mobile actions) */
.bc-booking-toolbar--banner-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 2px;
}

.bc-booking-toolbar--banner-row #openMap.bc-btn-map-location {
  flex: 0 0 auto;
}

.bc-booking-toolbar--banner-row .bc-toolbar-banner-tail {
  flex: 1 1 auto;
  margin-left: auto;
  min-width: 0;
  justify-content: flex-end;
}

.bc-brand-row-center {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

.bc-brand-row-spacer {
  grid-column: 3;
  width: 0;
  min-height: 0;
  pointer-events: none;
}

/* Desktop: institute name â†’ brand â†’ address â†’ Back row â†’ toolbar */
@media (min-width: 768px) {
  #bcMobileConfirmBooking,
  .bc-mobile-header-book {
    display: none !important;
  }

  /* Course facility slider â€” mobile booking page only */
  body.page-booking-course .bc-course-facilities-mobile-only {
    display: none !important;
  }

  /* Institute gallery (desktop only â€” hidden on mobile via rules below) */
  body.page-booking-course .bc-inst-gallery-section {
    margin: 20px auto 8px;
    max-width: 960px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  body.page-booking-course h3.bc-inst-gallery-heading {
    font-size: 28px;
    padding: 10px 12px;
    margin: 0 0 12px;
    color: #ffeb3b;
    font-weight: 600;
    background: #a41c1c;
    text-align: center;
    box-sizing: border-box;
  }

  body.page-booking-course .inst-gallery-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  /*
   * Horizontal row: body.page-booking-course uses text-align:center â€” block-level cells stack vertically.
   * Flex + overflow-x gives a single row (scroll when many photos).
   */
  body.page-booking-course .bc-inst-gallery-section .bc-inst-gallery-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: 100% !important;
    max-width: 100%;
    min-height: 220px;
    padding: 8px 4px 14px;
    box-sizing: border-box;
    background: #eee;
    text-align: left;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  body.page-booking-course .bc-inst-gallery-section .bc-inst-gallery-cell {
    flex: 0 0 auto !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: min(280px, 85vw) !important;
    height: 220px !important;
    margin: 0 !important;
    box-sizing: border-box;
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
  }

  /* Desktop banner: Back | View Location | actions */
  body.page-booking-course .bc-booking-toolbar--banner-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    align-items: center;
    gap: 12px;
    flex-wrap: unset;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row .bc-btn-back {
    grid-column: 2;
    justify-self: start;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row #openMap.bc-btn-map-location {
    grid-column: 3;
    justify-self: start;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row #bcModifyBookingBtn.bc-btn-modify-inline {
    grid-column: 4;
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: start;
    margin: 0 !important;
    width: auto;
    max-width: none;
    white-space: nowrap;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row .bc-toolbar-banner-tail {
    grid-column: 5;
    justify-self: end;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    flex: unset;
    width: auto;
  }

  body.page-booking-course header.bc-booking-header {
    padding-top: 8px;
    padding-left: 112px;
  }

  body.page-booking-course .bc-logo-institute-row .bc-booking-logo-wrap {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 12px !important;
    display: flex;
    align-items: stretch;
    margin: 0 !important;
  }

  body.page-booking-course .bc-logo-institute-row .bc-booking-logo-img {
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
  }

  body.page-booking-course .bc-logo-institute-row .bc-booking-brand--top-right {
    width: 100%;
    text-align: right;
  }

  body.page-booking-course .bc-institute-heading--center {
    text-align: center;
  }

  body.page-booking-course .bc-institute-heading--center .bc-institute-name {
    font-size: clamp(1.85rem, 4vw, 3.1rem);
  }

  /* View Location â€” same pill as Back on PC */
  body.page-booking-course .bc-booking-header #openMap.bc-btn-map-location {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 18px !important;
    min-height: 46px !important;
    background: #ffd4a8 !important;
    color: #4a2308 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(74, 35, 8, 0.28) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
  }

  body.page-booking-course .bc-booking-header #openMap.bc-btn-map-location .bc-btn-map-location-icon-mobile {
    display: none !important;
  }

  body.page-booking-course .bc-booking-header #openMap.bc-btn-map-location .bc-btn-map-location-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
  }
}

.bc-booking-logo-wrap {
  display: block;
  margin: 0 auto 8px;
  line-height: 0;
  text-decoration: none !important;
}

.bc-logo-institute-row .bc-booking-logo-wrap {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}

.bc-booking-logo-img {
  display: block;
  margin: 0 auto;
  max-height: clamp(52px, 16vw, 80px);
  width: auto;
  max-width: min(240px, 72vw);
  object-fit: contain;
  object-position: center;
}

.bc-logo-institute-row .bc-booking-logo-img {
  margin: 0;
  max-height: clamp(76px, 26vw, 120px);
  max-width: min(260px, 62vw);
}

.bc-booking-brand {
  text-align: center;
}

.bc-booking-brand.bc-booking-brand--top-right {
  text-align: right;
}

.bc-booking-brand .www {
  margin: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.bc-booking-tagline {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 600;
}

.bc-booking-toolbar {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}

/* Wins over .bc-booking-toolbar alone (same element has both classes) */
.bc-booking-toolbar.bc-booking-toolbar--banner-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Cart + Book Course â€” right side */
.bc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Map link â€” light orange + dark brown (matches Back / Book Course) */
.bc-booking-toolbar .bc-open-map-link {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.18rem;
  line-height: 1.35;
  color: #4a2308;
  background: #ffd4a8;
  border: 1px solid rgba(74, 35, 8, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .bc-booking-toolbar .bc-open-map-link {
    font-size: 1.25rem;
    padding: 10px 16px;
  }
}

/* Back button: full â€œBackâ€ label on desktop/tablet only â€” mobile overrides below */
@media (min-width: 768px) {
  a.bc-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    min-height: 44px;
    background: #ffd4a8;
    color: #4a2308 !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid rgba(74, 35, 8, 0.28);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
  }

  a.bc-btn-back:active {
    opacity: 0.92;
  }

  a.bc-btn-back .bc-btn-back-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

.bc-booking-header #viewCartBtn,
.bc-booking-header .bc-btn-cart {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 2 !important;
  flex: 0 1 auto;
  max-width: 100%;
  justify-content: center;
  margin: 0 !important;
}

.bc-institute-heading .bc-institute-name {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-size: clamp(1.55rem, 4.2vw, 2.85rem);
}

.bc-logo-institute-row .bc-booking-brand--top-right .www {
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 800;
}

.bc-logo-institute-row .bc-booking-brand--top-right .bc-booking-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

/* Base: inline bookingcourse.php rules set .course-section-harsh.bc-address-strip â€” reinforce here */
body.page-booking-course .course-section-harsh.bc-address-strip {
  position: relative !important;
  word-break: break-word;
}

.bc-course-selected-title {
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  line-height: 1.3;
}

/* Mobile: single-course flow â€” hide cart, multi-add, search-more */
.bc-mobile-confirm-wrap {
  display: none;
}

/* Confirm booking: only visible inside .bc-mobile-confirm-wrap (hidden on desktop) */
.bc-btn-confirm-booking {
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(180deg, #e76f00 0%, #c45a00 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(199, 90, 0, 0.3);
  cursor: pointer;
  min-height: 0;
}

.bc-btn-confirm-booking:active {
  opacity: 0.94;
}

.bc-mobile-confirm-hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #555;
  text-align: center;
}

/* Course table wrapper â€” mobile card stack */
.bc-truetable-wrap {
  width: 100%;
}

/* â€œView Detailsâ€ in Course cell â€” all breakpoints (Details column hidden) */
body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-detail-view-btn--mobile {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 12px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 8px;
  background: #e76f00;
  color: #fff !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

body.page-booking-course .bc-truetable-wrap table#truetable thead th:nth-child(9),
body.page-booking-course .bc-truetable-wrap table#truetable tbody tr td:nth-child(9) {
  display: none !important;
}

@media (max-width: 767px) {
  body.page-booking-course .bc-booking-header {
    gap: 4px;
    padding: 6px 8px 8px;
  }

  .bc-institute-heading--center .bc-institute-name {
    font-size: clamp(1.4rem, 6.5vw, 2.15rem) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bc-logo-institute-row .bc-booking-logo-img {
    max-height: clamp(80px, 28vw, 128px) !important;
    max-width: min(260px, 65vw) !important;
  }

  .bc-booking-header .course-section-harsh.bc-address-strip {
    width: 100%;
    align-self: stretch;
    margin-left: 0;
    margin-right: 0;
  }

  /* Mobile: no course-facility strip (avoids empty â€œno photoâ€ overlap on details) */
  body.page-booking-course .bc-course-facilities-mobile-only {
    display: none !important;
  }

  /* Hide institute image gallery on small screens (if present on server) */
  body.page-booking-course .bc-inst-gallery-section,
  body.page-booking-course .inst-gallery-wrap,
  body.page-booking-course h3.bc-inst-gallery-heading {
    display: none !important;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row {
    padding: 6px 0 4px;
    gap: 8px;
    align-items: stretch;
  }

  /* Cart â€” hide everywhere on mobile (absolute-positioned cart can float outside header) */
  #viewCartBtn,
  .bc-btn-cart,
  .bc-booking-header #viewCartBtn,
  .bc-booking-header .bc-btn-cart {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
  }

  .bc-booking-toolbar.bc-booking-toolbar--banner-row {
    justify-content: flex-start;
  }

  .bc-booking-toolbar {
    justify-content: stretch;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
    min-width: 0;
  }

  /* Row: Back | map | View Details + Book Course */
  body.page-booking-course .bc-booking-toolbar--banner-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row .bc-btn-back {
    flex: 0 0 auto;
    order: 0;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row #openMap.bc-btn-map-location {
    flex: 0 0 auto;
    order: 1;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row .bc-toolbar-banner-tail {
    flex: 1 1 auto !important;
    order: 2;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    align-items: stretch !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0;
    max-width: 100% !important;
  }

  /* Duplicate eligibility next to course name â€” hide in banner on mobile */
  body.page-booking-course #bcHeaderViewEligibility {
    display: none !important;
  }

  .bc-toolbar-right {
    margin-left: 0;
    width: 100%;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
    justify-content: stretch;
  }

  .bc-toolbar-right.bc-toolbar-actions-row {
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: stretch !important;
    align-items: stretch !important;
  }

  body.page-booking-course .bc-toolbar-banner-tail .bc-btn-header-orange {
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    font-size: clamp(1.02rem, 4.2vw, 1.22rem) !important;
    font-weight: 800 !important;
    padding: 12px 8px !important;
    min-height: 50px !important;
  }

  .bc-booking-toolbar .bc-open-map-link {
    font-size: 1.2rem !important;
    padding: 10px 8px !important;
    line-height: 1.35 !important;
    min-width: 0;
    font-weight: 700 !important;
  }

  body.page-booking-course .bc-toolbar-banner-tail #bcMobileConfirmBooking.bc-mobile-header-book {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 0 !important;
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 12px 10px !important;
    font-size: clamp(1.08rem, 4.5vw, 1.28rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    color: #4a2308 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    white-space: normal !important;
    background: #ffd4a8 !important;
    border: 1px solid rgba(74, 35, 8, 0.28) !important;
    text-align: center;
    line-height: 1.25 !important;
  }

  /* Back â€” left of map pin, circular arrow */
  .bc-booking-toolbar--banner-row a.bc-btn-back {
    display: inline-flex;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffd4a8;
    border: 1px solid rgba(74, 35, 8, 0.28);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    position: relative;
    text-decoration: none !important;
  }

  .bc-booking-toolbar--banner-row a.bc-btn-back .bc-btn-back-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .bc-booking-toolbar--banner-row a.bc-btn-back::before {
    content: '\2190';
    font-size: 24px;
    line-height: 1;
    color: #4a2308;
    font-weight: 700;
    display: block;
  }

  .bc-booking-toolbar--banner-row a.bc-btn-back:active {
    opacity: 0.9;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row #openMap.bc-btn-map-location {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    flex: 0 0 auto !important;
    border-radius: 50% !important;
    background: #ffd4a8 !important;
    color: #4a2308 !important;
    border: 1px solid rgba(74, 35, 8, 0.28) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row #openMap.bc-btn-map-location .bc-btn-map-location-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.page-booking-course .bc-booking-toolbar--banner-row #openMap.bc-btn-map-location .bc-btn-map-location-icon-mobile {
    display: block !important;
    font-size: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* Remove â€œCourse selectedâ€ heading + tan band on mobile */
  body.page-booking-course .bc-course-selected-title {
    display: none !important;
  }

  /* Pull course card up to the brown address band */
  .course-section-harsh.bc-address-strip {
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.page-booking-course .course-details {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 2px 10px !important;
    margin: 0 !important;
    margin-top: -4px !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Hint below table only â€” avoid overlap with stacked cells */
  .bc-mobile-confirm-wrap {
    display: none !important;
  }

  #cartPopup.popup-containerharsh {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td[data-label="Add to Cart"] {
    display: none !important;
  }

  /* Checkout form: readable on small screens */
  #checkoutPopup {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 24px) !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
    padding: 18px 16px 22px !important;
  }

  #checkoutPopup h2 {
    font-size: 1.25rem !important;
    margin: 0 0 12px !important;
  }

  #checkoutPopup input {
    font-size: 16px !important; /* avoid iOS zoom */
    margin-bottom: 10px !important;
  }

  #checkoutPopup .btn#confirm-booking {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    font-size: 1rem;
  }

  body.page-booking-course .course-section-harsh.bc-address-strip {
    padding: 10px 12px 12px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
  }

  body.page-booking-course .bc-truetable-wrap {
    overflow-x: visible !important;
    border: none !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: collapse;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable thead {
    display: none !important;
  }

  /* Mobile: flex row wrap â€” pairs (Duration|Fees, â€¦, Approval|Eligibility); hidden cols removed from flow */
  body.page-booking-course .bc-truetable-wrap table#truetable tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    width: 100%;
    margin-bottom: 0;
    align-items: stretch;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td {
    display: block;
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
    min-width: 0;
    white-space: normal !important;
    text-align: left !important;
    box-sizing: border-box;
    border: 1px solid #ddd !important;
    padding: 12px 10px !important;
    font-size: clamp(1.12rem, 4.2vw, 1.35rem) !important;
    line-height: 1.45 !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td:first-child {
    flex: 1 1 100%;
    max-width: 100%;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td[data-label="Approval"],
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td[data-label="Eligibility"] {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
    align-self: stretch;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td[data-label="Eligibility"] .viewEligibilityBtn {
    width: 100%;
    box-sizing: border-box;
  }

  /* Details column removed â€” View sits in Course row */
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-details-desktop {
    display: none !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-course-detail-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-course-name-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.2rem, 4.8vw, 1.45rem) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-detail-view-btn--mobile {
    flex: 0 0 auto;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: clamp(0.72rem, 2.8vw, 0.85rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #8b2500;
    margin-bottom: 6px;
    text-transform: uppercase;
  }

  /* Course row label sits above the flex row (course + View) */
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course::before {
    margin-bottom: 8px;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable select#date-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    font-size: max(16px, 1.05em) !important;
    padding: 10px 8px !important;
    line-height: 1.35 !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-detail-view-btn--mobile,
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-eligibility-in-course-row {
    font-size: clamp(1rem, 4vw, 1.18rem) !important;
    padding: 10px 14px !important;
  }

  /* Remove black frame from inline .table-container { border: 1px solid black } */
  body.page-booking-course .table-container {
    overflow-x: visible !important;
    border: none !important;
  }

  body.page-booking-course .table-container table {
    min-width: 0 !important;
  }
}

@media (min-width: 768px) {
  .bc-institute-heading--center .bc-institute-name {
    font-size: clamp(1.85rem, 4vw, 3.1rem);
  }

  .bc-logo-institute-row .bc-booking-logo-img {
    max-height: clamp(80px, 12vw, 128px);
    max-width: min(280px, 32vw);
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td::before {
    content: none !important;
    display: none !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-details-desktop {
    display: none !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-course-detail-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-course-name-text {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Course details popup â€” smaller body text */
body.page-booking-course #coursePopup.bc-course-popup .bc-course-popup__body,
body.page-booking-course #coursePopup.bc-course-popup #courseDescription {
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
  color: #333 !important;
}
body.page-booking-course #coursePopup.bc-course-popup .bc-course-popup__title,
body.page-booking-course #coursePopup.bc-course-popup #courseTitle {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}
body.page-booking-course #coursePopup.bc-course-popup .bc-course-popup__price,
body.page-booking-course #coursePopup.bc-course-popup #coursePrice {
  font-size: 0.8125rem !important;
}

/* Course facility gallery (bottom of booking page) */
body.page-booking-course .bc-course-facility-section {
  margin: 20px 0 0;
  padding: 12px 8px 16px;
  max-width: 100%;
  box-sizing: border-box;
}
body.page-booking-course .bc-course-facility-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #8b2500;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}
body.page-booking-course .bc-course-facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

/* Facility photo slider (horizontal pages) */
body.page-booking-course .bc-facility-slider {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.page-booking-course .bc-facility-slider__viewport {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  font-size: 0;
  padding: 2px 0 8px;
}

body.page-booking-course .bc-facility-slider__slide {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  font-size: 1rem;
  scroll-snap-align: start;
}

body.page-booking-course .bc-facility-slider__btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(139, 37, 0, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #8b2500;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

body.page-booking-course .bc-facility-slider__btn:active {
  opacity: 0.88;
}

body.page-booking-course .bc-facility-slider--single .bc-facility-slider__btn {
  display: none;
}

body.page-booking-course .bc-course-facility-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #fafafa;
}
body.page-booking-course .bc-course-facility-thumb img {
  width: 100%;
  height: min(200px, 42vw);
  object-fit: cover;
  display: block;
}
body.page-booking-course .bc-course-facility-empty {
  text-align: center;
  padding: 12px;
  background: #f7f7f7;
  border: 1px dashed #ccc;
  border-radius: 8px;
  max-width: 280px;
  margin: 0 auto;
}
body.page-booking-course .bc-course-facility-empty-text {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
}

/* Map modal: embed iframe sizing */
#mapModal.modal {
  align-items: center;
  justify-content: center;
}
#mapModal .modal-content {
  max-width: min(720px, 94vw);
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 18px;
}
#mapModal .modal-content iframe {
  max-width: 100%;
  min-height: 280px;
}

/* Header: View Location + View Details + View Eligibility â€” same pill style as Book Course (mobile) */
.bc-toolbar-right.bc-toolbar-actions-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  max-width: min(100%, calc(100vw - 52px));
}

.bc-booking-header .bc-btn-header-orange {
  box-sizing: border-box;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 1 auto;
  min-height: 0;
  color: #fff;
  background: linear-gradient(180deg, #e76f00 0%, #c45a00 100%);
  border: none;
  box-shadow: 0 2px 6px rgba(199, 90, 0, 0.28);
}

.bc-booking-header .bc-btn-header-orange:active {
  opacity: 0.94;
}

@media (max-width: 767px) {
  /* Shared pill look; width/flex come from .bc-toolbar-actions-row rules above (avoid forcing 100% on all) */
  .bc-booking-header .bc-btn-header-orange {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    padding: 12px 10px !important;
    min-height: 50px !important;
    font-size: clamp(1.08rem, 4.5vw, 1.28rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    color: #4a2308 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    background: #ffd4a8 !important;
    border: 1px solid rgba(74, 35, 8, 0.28) !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.25 !important;
  }
}

@media (min-width: 768px) {
  .bc-header-only-mobile {
    display: none !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-eligibility-in-course-row {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-eligibility-col {
    display: none !important;
  }

  body.page-booking-course .bc-truetable-wrap table#truetable tbody td.bc-cell-course .bc-detail-in-table {
    display: none !important;
  }
}

/* Facility gallery: full-width block after main course card (no overlap) */
body.page-booking-course .bc-course-facility-wrapper {
  clear: both;
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 16px 0 0;
  padding: 8px 12px 28px;
  overflow: visible;
}

@media (max-width: 767px) {
  body.page-booking-course .bc-course-facility-wrapper {
    margin-top: 12px;
    position: relative !important;
    z-index: 0;
  }

  body.page-booking-course .bc-facility-slider {
    position: relative !important;
    z-index: 0;
  }

  /* Pull course block up â€” remove gap under orange â€œdashboardâ€ header */
  body.page-booking-course header.bc-booking-header {
    margin-bottom: 0 !important;
    padding-bottom: 6px !important;
  }
  body.page-booking-course .bc-booking-toolbar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  body.page-booking-course .course-section-harsh.bc-address-strip {
    margin-top: 2px !important;
    margin-bottom: 0 !important;
  }
  body.page-booking-course .course-details {
    margin-top: -20px !important;
    padding-top: 0 !important;
  }

  /* Date + Batch row: equal halves, no overlap */
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td[data-label="Date"],
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td[data-label="Batch no"] {
    flex: 1 1 calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    min-width: 0 !important;
    overflow: hidden;
  }
  body.page-booking-course .bc-truetable-wrap table#truetable tbody td[data-label="Date"] select#date-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
