/* LittleBot Program Bookings frontend styles - consolidated v0.7.3 */

/* =========================================================
   GLOBAL LAYOUT
========================================================= */

.lbpb-single-program {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 32px 6em;
  box-sizing: border-box;
}

.lbpb-single-program__article {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lbpb-program-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.lbpb-program-media {
  min-width: 0;
}

.lbpb-program-booking-panel {
  position: sticky;
  top: 24px;
}

.lbpb-single-program__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.15;
}

.lbpb-program-price {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.lbpb-program-venue {
  margin: 0 0 18px;
}

.lbpb-program-lower-content {
  width: 100% !important;
  max-width: none !important;
  margin: 42px 0 0;
  box-sizing: border-box;
}

/* =========================================================
   IMAGES / GALLERY
========================================================= */

.lbpb-main-image,
.lbpb-thumb-gallery a {
  display: block;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
}

.lbpb-main-image img,
.lbpb-program-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.lbpb-thumb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lbpb-thumb-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

/* =========================================================
   BOOKING WIDGET
========================================================= */

.lbpb-booking {
  border: 0 !important;
  padding: 0 !important;
  margin: 20px 0 0 !important;
  background: transparent !important;
}

.lbpb-booking h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.lbpb-booking-help {
  margin: 0 0 14px;
  color: #5d6670;
  font-size: 0.96rem;
}

.lbpb-widget {
  display: block;
}

.lbpb-calendar-wrap {
  margin-bottom: 16px;
}

.lbpb-calendar {
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
  min-height: 36px;
}

.lbpb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8ecf1;
  padding: 0 0 14px;
  margin-bottom: 12px;
}

.lbpb-cal-head strong {
  font-size: 1rem;
  color: #243044;
}

.lbpb-cal-head button,
.lbpb-cal-head button:visited,
.lbpb-cal-head button:focus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #243044 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  cursor: pointer;
}

.lbpb-cal-head button:hover {
  color: #111827 !important;
  background: #eef3f8 !important;
  border-color: #94a3b8 !important;
}

.lbpb-cal-weekdays,
.lbpb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.lbpb-cal-weekdays span {
  text-align: center;
  padding: 7px 3px;
  color: #445064;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.lbpb-cal-grid {
  gap: 6px;
}

.lbpb-cal-day {
  min-height: 42px;
  border: 0 !important;
  border-radius: 9px;
  background: #f2f4f7 !important;
  color: #9aa5b1 !important;
  font-weight: 700;
  cursor: not-allowed;
}

.lbpb-cal-day.is-outside {
  opacity: 0.65;
}

.lbpb-cal-day.is-available {
  background: #c9f36c !important;
  color: #172033 !important;
  cursor: pointer;
  pointer-events: auto !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.lbpb-cal-day.is-available:hover {
  background: #b9ea45 !important;
  transform: translateY(-1px);
}

.lbpb-cal-day.is-selected {
  background: #35b7b3 !important;
  color: #fff !important;
  outline: 3px solid rgba(53, 183, 179, 0.22) !important;
  outline-offset: 2px;
}

.lbpb-cal-day.is-soldout {
  background: #f2c19a !important;
  color: #9d1717 !important;
}

.lbpb-cal-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 13px;
  color: #334155;
}

.lbpb-cal-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
  border-radius: 999px;
}

.lbpb-cal-legend i.is-available {
  background: #c9f36c !important;
}

.lbpb-cal-legend i.is-unavailable {
  background: #f3f3f3;
  border: 1px solid #ddd;
}

.lbpb-selected-date {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  height: 58px;
  padding: 0 14px;
  margin: 0;
}

.lbpb-selected-date,
.lbpb-guests-field {
  box-sizing: border-box;
}

/* =========================================================
   BOOKING FORM
========================================================= */

.lbpb-date-guests-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin: 0 0 12px !important;
}

.lbpb-date-guests-row .lbpb-selected-date,
.lbpb-date-guests-row .lbpb-guests-field {
  margin: 0 !important;
}

.lbpb-guests-field {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  height: 58px;
  padding: 0 10px;
  margin: 0 !important;
}

.lbpb-guests-field span {
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1.2;
}

.lbpb-guests-field input {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  height: 42px;
  margin-top: 0 !important;
}

.lbpb-form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px 16px !important;
}

.lbpb-field-full {
  grid-column: 1 / -1 !important;
}

.lbpb-form label {
  display: block;
  margin: 0 0 12px;
  font-weight: 500 !important;
  color: #334155;
}

.lbpb-form input,
.lbpb-form textarea,
.lbpb-form select {
  width: 100%;
  min-height: 42px !important;
  box-sizing: border-box;
  margin-top: 4px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  background: #fff !important;
  color: #172033 !important;
}

.lbpb-form textarea {
  min-height: 110px !important;
}

.lbpb-check {
  font-weight: 400 !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #334155;
}

.lbpb-check input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
}

.lbpb-contact-fields {
  margin-top: 18px;
  padding-top: 18px;
  border: 0 !important;
}

.lbpb-contact-fields[hidden] {
  display: none !important;
}

.lbpb-extra-guests {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.lbpb-extra-guest {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.lbpb-extra-guest-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lbpb-price-summary {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 10px 0 16px;
}

.lbpb-price-summary p {
  margin: 0.35em 0;
}

.lbpb-policy-box {
  max-height: 160px;
  overflow: auto;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  padding: 12px;
  margin: 12px 0;
  color: #555;
}

.lbpb-addon-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
  background: #fff;
}

.lbpb-addon-option input[type="checkbox"] {
  width: auto;
}

.lbpb-addon-option input[type="number"] {
  width: 80px;
  margin-left: auto;
}

.lbpb-voucher-box {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
}

.lbpb-voucher-row,
.lbpb-voucher label span {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px !important;
  align-items: end !important;
}

.lbpb-voucher-message {
  margin: 0.5em 0 0;
  color: #475569;
}

.lbpb-notice {
  padding: 12px;
  background: #fff8e5;
  border: 1px solid #e5d19a;
}

/* =========================================================
   BUTTONS
========================================================= */

.lbpb-open-form,
.lbpb-book-button {
  width: 100%;
  padding: 14px 18px;
  margin: 10px 0 0;
  cursor: pointer;
  font-weight: 700;
  border: 0;
  background: #242b3d !important;
  color: #ffffff !important;
  border-radius: 12px;
}

.lbpb-open-form:disabled,
.lbpb-book-button:disabled {
  background: #d8dbe2 !important;
  color: #273244 !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

.lbpb-voucher .button,
.lbpb-apply-voucher,
button.lbpb-apply-voucher {
  min-height: 40px !important;
  border-radius: 9px !important;
  color: #172033 !important;
  background: #f8fafc !important;
  border: 1px solid #94a3b8 !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* =========================================================
   PROGRAM LIST
========================================================= */

.lbpb-program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.lbpb-program-card {
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: 10px;
}

/* =========================================================
   PROGRAM TABS
========================================================= */

.lbpb-program-tabs {
  width: 100%;
  max-width: none !important;
  margin-top: 36px;
  box-sizing: border-box;
}

.lbpb-tab-list {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #cfd6df;
  box-sizing: border-box;
}

.lbpb-tab-button {
  appearance: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 74px;
  padding: 18px 20px;
  border: 1px solid #cfd6df !important;
  border-bottom: 0 !important;
  border-radius: 0;
  background: #f4f6f8 !important;
  color: #334155 !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  opacity: 1 !important;
  text-shadow: none !important;
  box-shadow: none;
  margin: 0 0 0 -1px;
  position: relative;
  top: 1px;
}

.lbpb-tab-button:first-child {
  margin-left: 0;
  border-top-left-radius: 14px;
}

.lbpb-tab-button:last-child {
  border-top-right-radius: 14px;
}

.lbpb-tab-button:hover {
  background: #eef3f8 !important;
  color: #111827 !important;
}

.lbpb-tab-button.is-active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #64748b !important;
  border-bottom-color: #ffffff !important;
  position: relative;
  z-index: 5;
  box-shadow: inset 0 -4px 0 #253047, 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

.lbpb-tab-panel {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
  border: 1px solid #cfd6df !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px;
  background: #fff;
  color: #222;
  padding: 42px;
  margin: 0;
}

.lbpb-tab-panel[hidden] {
  display: none !important;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.lbpb-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: default;
}

.lbpb-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
}

.lbpb-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 38px;
  line-height: 1;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
}

.lbpb-lightbox-prev,
.lbpb-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 34px;
  line-height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lbpb-lightbox-prev {
  left: 24px;
}

.lbpb-lightbox-next {
  right: 24px;
}

.lbpb-lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .lbpb-single-program {
    padding: 28px 2em;
  }

  .lbpb-program-hero-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lbpb-program-booking-panel {
    position: static;
  }

  .lbpb-tab-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .lbpb-single-program {
    padding: 22px 16px;
  }

  .lbpb-tab-list {
    grid-template-columns: 1fr !important;
    border-bottom: 0;
  }

  .lbpb-tab-button {
    border-bottom: 1px solid #cfd6df !important;
    margin-left: 0;
    top: 0;
    border-radius: 12px !important;
  }

  .lbpb-tab-panel {
    border-top: 1px solid #cfd6df !important;
    border-radius: 14px;
    margin-top: 8px;
    padding: 24px;
  }

  .lbpb-date-guests-row,
  .lbpb-form-grid,
  .lbpb-extra-guest-row,
  .lbpb-voucher-row,
  .lbpb-voucher label span {
    grid-template-columns: 1fr !important;
  }

  .lbpb-lightbox-prev {
    left: 10px;
  }

  .lbpb-lightbox-next {
    right: 10px;
  }
}

/* 0.7.9 booking summary polish */
.lbpb-program-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.lbpb-program-price-row .lbpb-program-price {
  margin: 0;
}

.lbpb-program-price {
  color: #d94141;
  font-weight: 800;
}

.lbpb-seats-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #7ec75c;
  border-radius: 999px;
  background: #f7fff1;
  color: #243044;
  font-weight: 700;
  white-space: nowrap;
}

.lbpb-seats-pill[hidden] {
  display: none !important;
}

.lbpb-seats-pill i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #8bd65d;
  flex: 0 0 auto;
}

.lbpb-selected-date {
  gap: 8px;
}

.lbpb-selected-date strong,
.lbpb-selected-date span {
  display: inline-block;
}

.lbpb-price-summary {
  padding: 20px 22px;
  border-radius: 12px;
}

.lbpb-invoice-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  color: #243044;
}

.lbpb-invoice-row span {
  color: #334155;
}

.lbpb-invoice-row strong {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.lbpb-invoice-addons {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e3e7ec;
}

.lbpb-invoice-addons > strong {
  display: block;
  margin-bottom: 4px;
}

.lbpb-invoice-divider {
  margin: 12px 0;
  border-top: 1px dashed #cbd5e1;
}

.lbpb-invoice-subtotal {
  font-weight: 700;
}

.lbpb-invoice-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 2px solid #cbd5e1;
  font-size: 1.15rem;
  font-weight: 800;
  color: #172033;
}

.lbpb-invoice-total strong {
  font-size: 1.25rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lbpb-program-price-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .lbpb-seats-pill {
    width: 100%;
    justify-content: center;
  }
}


/* Guides / organizers */
.lbpb-guides {
  margin: 2rem 0;
}
.lbpb-guides-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.25;
}
.lbpb-guides-list {
  display: grid;
  gap: 1rem;
}
.lbpb-guides--grid .lbpb-guides-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.lbpb-guide-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
}
.lbpb-guide-image {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f6fa;
}
.lbpb-guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lbpb-guide-content h4 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  line-height: 1.25;
}
.lbpb-guide-position {
  margin: 0 0 .35rem;
  font-weight: 600;
}
.lbpb-guide-description,
.lbpb-guide-description p {
  margin: 0;
}
.lbpb-guide-description p + p {
  margin-top: .6rem;
}
@media (max-width: 600px) {
  .lbpb-guide-card {
    display: block;
  }
  .lbpb-guide-image {
    margin-bottom: .75rem;
  }
}
