/* ============================================================
   TMB Next — Booking Wizard Styles
   Mobile-first, BEM with tmbn-* prefix
   ============================================================ */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --tmbn-color-primary:     #1a1a2e;
  --tmbn-color-accent:      #e63946;
  --tmbn-color-accent-dark: #c1121f;
  --tmbn-color-accent-text: #ffffff;
  --tmbn-color-surface:     #ffffff;
  --tmbn-color-surface-alt: #f8f9fa;
  --tmbn-color-border:      #e5e7eb;
  --tmbn-color-text:        #1f2d3d;
  --tmbn-color-text-muted:  #6b7280;
  --tmbn-color-error:       #dc2626;
  --tmbn-color-success:     #16a34a;
  --tmbn-radius-card:       12px;
  --tmbn-radius-btn:        8px;
  --tmbn-radius-input:      8px;
  --tmbn-font-body:         inherit;
  --tmbn-font-heading:      inherit;
  --tmbn-shadow-card:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --tmbn-shadow-popup:      0 20px 60px rgba(0,0,0,0.15);
  --tmbn-transition:        0.2s ease;
}

/* ─── Wizard Container ───────────────────────────────────── */
.tmbn-wizard {
  font-family: var(--tmbn-font-body);
  color: var(--tmbn-color-text);
  line-height: 1.5;
}

.tmbn-wizard *,
.tmbn-wizard *::before,
.tmbn-wizard *::after {
  box-sizing: border-box;
}

.tmbn-wizard__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ─── Step Cards ─────────────────────────────────────────── */
.tmbn-card {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--tmbn-shadow-card);
  transition: opacity var(--tmbn-transition), border-color var(--tmbn-transition);
}

.tmbn-card--locked {
  opacity: 0.5;
  pointer-events: none;
}

.tmbn-card--locked .tmbn-card__lock-msg {
  display: flex;
}

.tmbn-card--active {
  opacity: 1;
  border-color: var(--tmbn-color-accent);
}

.tmbn-card--done {
  opacity: 1;
}

.tmbn-card--done .tmbn-period,
.tmbn-card--done .tmbn-extras,
.tmbn-card--done .tmbn-form,
.tmbn-card--done .tmbn-vehicles,
.tmbn-card--done .tmbn-card__continue {
  display: none;
}

.tmbn-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tmbn-card__num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tmbn-color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.tmbn-card--done .tmbn-card__num {
  background: var(--tmbn-color-success);
}

.tmbn-card__head-text { flex: 1; }

.tmbn-card__title {
  font-family: var(--tmbn-font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--tmbn-color-text);
}

.tmbn-card__sub {
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
  margin: 2px 0 0;
}

.tmbn-card__step-check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tmbn-color-success);
  color: #fff;
}

.tmbn-card__lock-msg {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
  margin-bottom: 16px;
}

.tmbn-card__done-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 0;
}

.tmbn-card__done-summary[hidden] {
  display: none !important;
}

.tmbn-card__step-check[hidden] {
  display: none !important;
}

.tmbn-card__done-chip {
  display: inline-block;
  background: var(--tmbn-color-surface-alt);
  border: 1px solid var(--tmbn-color-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--tmbn-color-text);
}

.tmbn-card__edit-btn {
  background: none;
  border: none;
  color: var(--tmbn-color-accent-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.tmbn-card__continue {
  margin-top: 20px;
}

.tmbn-card__continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
  border: none;
  padding: 12px 24px;
  border-radius: var(--tmbn-radius-btn);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--tmbn-transition), transform 0.15s;
  width: 100%;
  justify-content: center;
}

.tmbn-card__continue-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ─── Date Picker ────────────────────────────────────────── */
.tmbn-period__dates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tmbn-date-field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tmbn-color-text-muted);
  margin-bottom: 6px;
}

.tmbn-date-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--tmbn-color-surface-alt);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-input);
  cursor: pointer;
  font-size: 15px;
  color: var(--tmbn-color-text-muted);
  transition: border-color var(--tmbn-transition);
}

.tmbn-date-trigger.is-set {
  color: var(--tmbn-color-text);
  border-color: var(--tmbn-color-accent);
}

.tmbn-date-trigger__sep {
  width: 1px;
  height: 20px;
  background: var(--tmbn-color-border);
}

.tmbn-date-trigger__time {
  font-size: 13px;
  white-space: nowrap;
}

.tmbn-date-arrow {
  display: flex;
  justify-content: center;
  color: var(--tmbn-color-text-muted);
  padding: 4px 0;
}

.tmbn-date-field__err {
  display: none;
  font-size: 12px;
  color: var(--tmbn-color-error);
  margin-top: 4px;
}

.tmbn-days-badge[hidden] {
  display: none !important;
}

.tmbn-days-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

/* ─── Calendar Popup ─────────────────────────────────────── */
.tmbn-cal-popup {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  box-shadow: var(--tmbn-shadow-popup);
  margin-top: 12px;
  overflow: hidden;
}

.tmbn-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--tmbn-color-border);
}

.tmbn-cal__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--tmbn-color-surface-alt);
  border: 1px solid var(--tmbn-color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--tmbn-color-text);
  transition: background var(--tmbn-transition);
}

.tmbn-cal__nav-btn:hover {
  background: var(--tmbn-color-border);
}

.tmbn-cal__nav-titles {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tmbn-color-text);
}

.tmbn-cal__months {
  display: grid;
  grid-template-columns: 1fr;
  padding: 16px;
  gap: 24px;
}

.tmbn-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.tmbn-cal__wd {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--tmbn-color-text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.tmbn-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.tmbn-cal__day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  color: var(--tmbn-color-text);
  transition: background var(--tmbn-transition), color var(--tmbn-transition);
  padding: 0;
}

.tmbn-cal__day:hover:not(.tmbn-cal__day--disabled):not(.tmbn-cal__day--past):not(.tmbn-cal__day--empty) {
  background: var(--tmbn-color-surface-alt);
}

.tmbn-cal__day--empty {
  cursor: default;
}

/* Weekend (Sat/Sun) */
.tmbn-cal__day--weekend {
  background: #f8f9fa;
  color: #9ca3af;
}

.tmbn-cal__day--past,
.tmbn-cal__day--disabled {
  color: var(--tmbn-color-border);
  cursor: not-allowed;
}

.tmbn-cal__day--disabled {
  text-decoration: line-through;
}

/* Booked/blocked dates — red */
.tmbn-cal__day--booked {
  background: #fef2f2;
  color: #ef4444;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.4);
}

.tmbn-cal__day--today {
  font-weight: 700;
}

.tmbn-cal__day--start,
.tmbn-cal__day--end {
  background: var(--tmbn-color-primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.tmbn-cal__day--in-range {
  background: rgba(200, 245, 59, 0.2);
  border-radius: 0;
}

.tmbn-cal__day--start {
  border-radius: 8px 0 0 8px;
}

.tmbn-cal__day--end {
  border-radius: 0 8px 8px 0;
}

.tmbn-cal__day--start.tmbn-cal__day--end {
  border-radius: 8px;
}

/* Seasonal price in calendar cell */
.tmbn-cal__day--seasonal {
  flex-direction: column;
  height: 52px;
  gap: 1px;
}

.tmbn-cal__num {
  line-height: 1;
}

.tmbn-cal__price {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  border-radius: 3px;
  padding: 1px 3px;
}

.tmbn-cal__price--up {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.tmbn-cal__price--down {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.tmbn-cal__day--start .tmbn-cal__price,
.tmbn-cal__day--end .tmbn-cal__price {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
}

/* Time selectors */
.tmbn-cal__time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--tmbn-color-border);
}

.tmbn-cal__time-group {
  flex: 1;
}

.tmbn-cal__time-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--tmbn-color-text-muted);
  margin-bottom: 4px;
}

.tmbn-cal__time-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-input);
  font-size: 14px;
  background: var(--tmbn-color-surface);
  color: var(--tmbn-color-text);
  appearance: auto;
}

.tmbn-cal__time-sep {
  width: 20px;
  height: 1px;
  background: var(--tmbn-color-border);
  margin-top: 18px;
}

.tmbn-cal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--tmbn-color-border);
}

.tmbn-cal__btn {
  padding: 8px 20px;
  border-radius: var(--tmbn-radius-btn);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.tmbn-cal__btn--cancel {
  background: var(--tmbn-color-surface-alt);
  color: var(--tmbn-color-text);
  border: 1px solid var(--tmbn-color-border);
}

.tmbn-cal__btn--apply {
  background: var(--tmbn-color-primary);
  color: #fff;
}

/* ─── Location Select ────────────────────────────────────── */
.tmbn-period__location {
  margin-top: 20px;
}

.tmbn-select-wrap {
  position: relative;
}

.tmbn-select--error {
  border-color: var(--tmbn-color-error) !important;
}

.tmbn-select {
  width: 100%;
  padding: 12px 40px 12px 16px !important;
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-input);
  font-size: 15px;
  background: var(--tmbn-color-surface);
  color: var(--tmbn-color-text);
  appearance: none;
  cursor: pointer;
}

.tmbn-select-wrap__arr {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--tmbn-color-text-muted);
}

/* ─── Extras ─────────────────────────────────────────────── */
.tmbn-extras {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tmbn-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--tmbn-color-surface-alt);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-input);
  cursor: pointer;
  transition: border-color var(--tmbn-transition), background var(--tmbn-transition);
}

.tmbn-extra:hover {
  border-color: var(--tmbn-color-text-muted);
}

.tmbn-extra:has(.tmbn-extra__check:checked) {
  border-color: var(--tmbn-color-accent);
  background: rgba(200, 245, 59, 0.08);
}

.tmbn-extra__check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tmbn-extra__body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tmbn-extra__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--tmbn-color-text);
}

.tmbn-extra__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmbn-color-text-muted);
}

.tmbn-extra__toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--tmbn-color-border);
  color: transparent;
  flex-shrink: 0;
  transition: all var(--tmbn-transition);
}

.tmbn-extra:has(.tmbn-extra__check:checked) .tmbn-extra__toggle {
  background: var(--tmbn-color-accent);
  border-color: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
}

.tmbn-extras__empty {
  font-size: 14px;
  color: var(--tmbn-color-text-muted);
  padding: 20px 0;
  text-align: center;
}

/* Discounts (auto-apply) */
.tmbn-discounts {
  margin-top: 20px;
}

.tmbn-discounts__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--tmbn-color-text-muted);
}

.tmbn-discount {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-input);
  margin-bottom: 6px;
  cursor: pointer;
}

/* Active discount */
.tmbn-discount--active {
  border-color: var(--tmbn-color-success);
  background: rgba(22, 163, 74, 0.04);
}

/* Locked discount (not enough days) */
.tmbn-discount--locked {
  opacity: 0.5;
}

.tmbn-discount__badge {
  flex-shrink: 0;
  background: var(--tmbn-color-success);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.tmbn-discount--locked .tmbn-discount__badge {
  background: var(--tmbn-color-border);
  color: var(--tmbn-color-text-muted);
}

.tmbn-discount__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tmbn-discount__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmbn-color-text);
}

.tmbn-discount__req {
  font-size: 12px;
  color: var(--tmbn-color-text-muted);
}

.tmbn-discount__status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--tmbn-color-text-muted);
}

.tmbn-discount--active .tmbn-discount__status {
  color: var(--tmbn-color-success);
}

/* ─── Form ───────────────────────────────────────────────── */
.tmbn-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tmbn-form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--tmbn-color-text);
  margin-bottom: 6px;
}

.tmbn-form__input,
.tmbn-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-input);
  font-size: 15px;
  color: var(--tmbn-color-text);
  background: var(--tmbn-color-surface);
  transition: border-color var(--tmbn-transition);
  font-family: inherit;
}

.tmbn-form__input:focus,
.tmbn-form__textarea:focus {
  outline: none;
  border-color: var(--tmbn-color-accent);
}

.tmbn-form__input--error {
  border-color: var(--tmbn-color-error) !important;
}

.tmbn-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.tmbn-form__err {
  display: block;
  font-size: 12px;
  color: var(--tmbn-color-error);
  min-height: 16px;
  margin-top: 4px;
}

.tmbn-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--tmbn-color-text);
}

.tmbn-form__checkbox input {
  margin-top: 3px;
  accent-color: var(--tmbn-color-accent-dark);
}

.tmbn-form__checkbox a {
  color: var(--tmbn-color-accent-dark);
  text-decoration: underline;
}

/* ─── Auth Section ────────────────────────────────────────── */
.tmbn-auth {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tmbn-color-border);
}

/* Social login (NSL) */
.tmbn-auth__social {
  margin-bottom: 4px;
}

.tmbn-auth__social .nsl-container {
  text-align: center;
}

.tmbn-auth__social .nsl-container-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tmbn-auth__social .nsl-container-buttons a {
  display: block;
  text-decoration: none;
}

.tmbn-auth__social .nsl-button {
  width: 100%;
  border-radius: var(--tmbn-radius-btn) !important;
  padding: 10px 16px !important;
  font-size: 14px;
  transition: opacity 0.2s;
}

.tmbn-auth__social .nsl-button:hover {
  opacity: 0.9;
}

/* Built-in Google button wrapper */
.tmbn-auth__google-wrap {
  display: flex;
  justify-content: center;
}

.tmbn-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--tmbn-color-text-muted);
  font-size: 13px;
}

.tmbn-auth__divider::before,
.tmbn-auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tmbn-color-border);
}

.tmbn-auth__toggle {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-btn);
  overflow: hidden;
}

.tmbn-auth__tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: var(--tmbn-color-surface-alt);
  color: var(--tmbn-color-text-muted);
  cursor: pointer;
  transition: all var(--tmbn-transition);
}

.tmbn-auth__tab--active {
  background: var(--tmbn-color-primary);
  color: #fff;
}

.tmbn-auth__panel {
  display: none;
}

.tmbn-auth__panel--active {
  display: block;
}

.tmbn-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  margin-top: 16px;
  background: var(--tmbn-color-primary);
  color: #fff;
  border: none;
  border-radius: var(--tmbn-radius-btn);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tmbn-transition);
}

.tmbn-auth__submit:hover { background: #2a2a4e; }
.tmbn-auth__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.tmbn-auth__message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--tmbn-radius-btn);
  font-size: 13px;
}

.tmbn-auth__message--error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--tmbn-color-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.tmbn-auth__logged-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--tmbn-radius-btn);
  font-size: 14px;
  color: var(--tmbn-color-text);
}

.tmbn-auth__logged-in svg { color: var(--tmbn-color-success); flex-shrink: 0; }

.tmbn-auth__success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--tmbn-radius-btn);
  font-size: 14px;
  color: var(--tmbn-color-success);
}

/* ─── Document Upload ─────────────────────────────────────── */
.tmbn-docs {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tmbn-color-border);
}

.tmbn-docs__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--tmbn-color-text);
}

.tmbn-docs__sub {
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
  margin: 0 0 16px;
}

.tmbn-docs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tmbn-docs__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  border: 2px dashed var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--tmbn-transition), background var(--tmbn-transition);
}

.tmbn-docs__drop:hover {
  border-color: var(--tmbn-color-accent);
  background: rgba(200, 245, 59, 0.04);
}

.tmbn-docs__upload--done .tmbn-docs__drop {
  border-color: var(--tmbn-color-success);
  border-style: solid;
  background: rgba(22, 163, 74, 0.04);
}

.tmbn-docs__drop-icon {
  color: var(--tmbn-color-text-muted);
}

.tmbn-docs__drop-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmbn-color-text);
}

.tmbn-docs__file-input {
  display: none !important;
}

.tmbn-docs__drop-hint {
  font-size: 12px;
  color: var(--tmbn-color-text-muted);
}

.tmbn-docs__progress {
  height: 3px;
  background: var(--tmbn-color-border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.tmbn-docs__progress-bar {
  height: 100%;
  width: 30%;
  background: var(--tmbn-color-accent);
  border-radius: 2px;
  animation: tmbn-progress 1.5s ease-in-out infinite;
}

@keyframes tmbn-progress {
  0% { width: 10%; margin-left: 0; }
  50% { width: 40%; margin-left: 30%; }
  100% { width: 10%; margin-left: 90%; }
}

@media (min-width: 768px) {
  .tmbn-docs__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tmbn-auth__submit {
    width: auto;
    min-width: 200px;
  }
}

.tmbn-form__actions {
  margin-top: 24px;
}

.tmbn-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
  border: none;
  border-radius: var(--tmbn-radius-btn);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--tmbn-transition);
}

.tmbn-form__submit:hover {
  background: var(--tmbn-color-accent-dark);
}

.tmbn-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tmbn-form__submit-spinner {
  animation: tmbn-spin 0.8s linear infinite;
}

@keyframes tmbn-spin {
  to { transform: rotate(360deg); }
}

/* ─── Summary Panel ──────────────────────────────────────── */
.tmbn-summary {
  order: -1;
}

.tmbn-summary__inner {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  padding: 24px;
  box-shadow: var(--tmbn-shadow-card);
}

.tmbn-summary__vehicle-vis {
  margin-bottom: 16px;
}

.tmbn-summary__vehicle-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.tmbn-summary__vehicle-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--tmbn-color-surface-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmbn-summary__name {
  font-family: var(--tmbn-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--tmbn-color-text);
}

.tmbn-summary__divider {
  height: 1px;
  background: var(--tmbn-color-border);
  margin: 16px 0;
}

.tmbn-summary__row[hidden] {
  display: none !important;
}

.tmbn-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.tmbn-summary__row-label {
  color: var(--tmbn-color-text-muted);
}

.tmbn-summary__row-val {
  font-weight: 600;
  color: var(--tmbn-color-text);
}

.tmbn-summary__row--discount .tmbn-summary__row-val {
  color: var(--tmbn-color-success);
}

.tmbn-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--tmbn-color-text-muted);
}

.tmbn-summary__total-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--tmbn-color-text);
}

.tmbn-summary__guarantees {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.tmbn-summary__guarantees li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
  padding: 4px 0;
}

.tmbn-summary__guarantees svg {
  color: var(--tmbn-color-success);
  flex-shrink: 0;
}

/* ─── Vehicle Selection (Step 1) ─────────────────────────── */
.tmbn-vehicles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tmbn-vehicle-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--tmbn-color-surface-alt);
  border: 2px solid transparent;
  border-radius: var(--tmbn-radius-card);
  cursor: pointer;
  transition: border-color var(--tmbn-transition);
}

.tmbn-vehicle-card:hover {
  border-color: var(--tmbn-color-border);
}

.tmbn-vehicle-card.is-selected {
  border-color: var(--tmbn-color-accent);
}

.tmbn-vehicle-card__img-wrap {
  position: relative;
  width: 100px;
  flex-shrink: 0;
}

.tmbn-vehicle-card__img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.tmbn-vehicle-card__check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  background: var(--tmbn-color-accent);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--tmbn-color-accent-text);
}

.tmbn-vehicle-card.is-selected .tmbn-vehicle-card__check {
  display: flex;
}

.tmbn-vehicle-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tmbn-vehicle-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.tmbn-vehicle-card__price {
  font-size: 14px;
  color: var(--tmbn-color-text-muted);
}

.tmbn-vehicle-card__price-val {
  font-weight: 700;
  color: var(--tmbn-color-text);
}

.tmbn-vehicle-card__select-btn {
  display: none;
}

/* ─── Success Modal ──────────────────────────────────────── */
.tmbn-modal[hidden] {
  display: none !important;
}

.tmbn-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmbn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.tmbn-modal__content {
  position: relative;
  background: var(--tmbn-color-surface);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--tmbn-shadow-popup);
}

.tmbn-modal__icon { margin-bottom: 16px; }

.tmbn-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tmbn-modal__text {
  font-size: 15px;
  color: var(--tmbn-color-text-muted);
  margin: 0 0 8px;
}

.tmbn-modal__ref {
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
}

/* ─── Price Display Shortcode ────────────────────────────── */
.tmbn-price-display {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.tmbn-price-display__amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--tmbn-color-text);
}

.tmbn-price-display__per {
  font-size: 14px;
  color: var(--tmbn-color-text-muted);
}

/* ─── Mobile: Calendar Fullscreen ────────────────────────── */
.tmbn-cal-popup--fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}

.tmbn-cal-popup--fullscreen .tmbn-cal__months {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.tmbn-cal-open {
  overflow: hidden !important;
}

/* ============================================================
   Responsive: Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .tmbn-period__dates {
    flex-direction: row;
    align-items: flex-end;
  }

  .tmbn-date-arrow {
    padding: 12px 0;
  }

  .tmbn-date-field {
    flex: 1;
  }

  .tmbn-cal__months {
    grid-template-columns: 1fr 1fr;
  }

  .tmbn-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tmbn-form__field--full {
    grid-column: 1 / -1;
  }

  .tmbn-vehicles__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tmbn-card__continue-btn {
    width: auto;
  }

  .tmbn-form__submit {
    width: auto;
    min-width: 200px;
  }
}

/* ============================================================
   Responsive: Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .tmbn-wizard__wrap {
    grid-template-columns: 1fr 340px;
    padding: 40px 24px;
  }

  .tmbn-summary {
    order: 0;
  }

  .tmbn-summary__inner {
    position: sticky;
    top: 100px;
  }
}

/* ============================================================
   Responsive: Wide (1200px+)
   ============================================================ */
@media (min-width: 1200px) {
  .tmbn-wizard__wrap {
    grid-template-columns: 1fr 380px;
    gap: 32px;
  }
}

/* ============================================================
   Sidebar CTA Card
   ============================================================ */
.tmbn-cta-card {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  padding: 20px;
  box-shadow: var(--tmbn-shadow-card);
  margin-bottom: 20px;
}

.tmbn-cta-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}

.tmbn-cta-card__amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--tmbn-color-text);
  line-height: 1.2;
}

.tmbn-cta-card__per {
  font-size: 15px;
  color: var(--tmbn-color-text-muted);
  font-weight: 400;
}

.tmbn-cta-card__rates {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tmbn-cta-card__discounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tmbn-cta-card__discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--tmbn-color-success);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.tmbn-cta-card__discount-tag strong {
  font-weight: 700;
}

.tmbn-cta-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
  border: none;
  border-radius: var(--tmbn-radius-btn);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tmbn-transition);
  margin: 16px 0;
}

.tmbn-cta-card__btn:hover {
  background: var(--tmbn-color-accent-dark);
  color: var(--tmbn-color-accent-text);
  text-decoration: none;
}

.tmbn-cta-card__perks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tmbn-cta-card__perks li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
  padding: 3px 0;
}

.tmbn-cta-card__perks svg {
  color: var(--tmbn-color-success);
  flex-shrink: 0;
}

/* ============================================================
   Mobile Sticky Bottom Bar
   ============================================================ */
.tmbn-mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Hide our bar when theme toolbar exists — we inject into it instead */
  .autozone-mobile-toolbar ~ .tmbn-mobile-bar,
  body:has(.autozone-mobile-toolbar) .tmbn-mobile-bar {
    display: none !important;
  }

  .tmbn-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--tmbn-color-surface);
    border-top: 1px solid var(--tmbn-color-border);
    padding: 10px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  }

  .tmbn-mobile-bar__price {
    display: flex;
    align-items: baseline;
    gap: 2px;
  }

  .tmbn-mobile-bar__amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--tmbn-color-text);
  }

  .tmbn-mobile-bar__per {
    font-size: 13px;
    color: var(--tmbn-color-text-muted);
  }

  .tmbn-mobile-bar__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--tmbn-color-accent);
    color: var(--tmbn-color-accent-text);
    border-radius: var(--tmbn-radius-btn);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .tmbn-mobile-bar__btn:hover {
    text-decoration: none;
    color: var(--tmbn-color-accent-text);
  }

  /* Add padding to body to prevent content being hidden behind bar */
  body:has(.tmbn-mobile-bar) {
    padding-bottom: 64px;
  }

  /* Hide desktop CTA card on mobile — mobile bar replaces it */
  .tmbn-cta-card {
    display: none;
  }

  /* Lift Chaty widget above toolbar */
  .chaty-widget.right-position,
  .chaty-widget.left-position {
    bottom: 90px !important;
  }
}

/* ============================================================
   Booking Section — full-width before footer
   ============================================================ */
.tmbn-booking-section--fullwidth {
  width: 100%;
  background: var(--tmbn-color-surface-alt);
  border-top: 1px solid var(--tmbn-color-border);
  padding: 40px 0 60px;
  scroll-margin-top: 80px;
}

.tmbn-booking-section__header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 0 16px;
}

.tmbn-booking-section__title {
  font-family: var(--tmbn-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--tmbn-color-text);
  margin: 0 0 4px;
}

.tmbn-booking-section__sub {
  font-size: 15px;
  color: var(--tmbn-color-text-muted);
  margin: 0;
}

/* Override wizard container inside fullwidth section */
.tmbn-booking-section--fullwidth .tmbn-wizard__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards get subtle background on alt surface */
.tmbn-booking-section--fullwidth .tmbn-card {
  background: #fff;
}

.tmbn-booking-section--fullwidth .tmbn-summary__inner {
  background: #fff;
}

/* ============================================================
   Pay Page (form-pay.php override)
   ============================================================ */
.tmbn-pay-page {
  font-family: var(--tmbn-font-body);
  color: var(--tmbn-color-text);
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px;
}

.tmbn-pay-page__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Summary */
.tmbn-pay-summary__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tmbn-pay-summary__title {
  font-family: var(--tmbn-font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.tmbn-pay-summary__sub {
  font-size: 14px;
  color: var(--tmbn-color-text-muted);
  margin: 2px 0 0;
}

.tmbn-pay-summary__card {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.tmbn-pay-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--tmbn-color-border);
}

.tmbn-pay-summary__row:last-child {
  border-bottom: none;
}

.tmbn-pay-summary__row--vehicle {
  padding: 10px 0;
}

.tmbn-pay-summary__label {
  color: var(--tmbn-color-text-muted);
}

.tmbn-pay-summary__val {
  color: var(--tmbn-color-text);
  font-weight: 500;
}

.tmbn-pay-summary__total {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  padding: 12px 20px;
}

.tmbn-pay-summary__total .tmbn-pay-summary__row {
  font-weight: 600;
}

.tmbn-pay-summary__total .tmbn-pay-summary__row:last-child .tmbn-pay-summary__val {
  font-size: 20px;
  font-weight: 800;
  color: var(--tmbn-color-text);
}

/* Payment form */
.tmbn-pay-form {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-card);
  padding: 24px;
  box-shadow: var(--tmbn-shadow-card);
}

.tmbn-pay-form__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--tmbn-color-text);
}

/* Payment methods */
.tmbn-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.tmbn-pay-method {
  border: 1px solid var(--tmbn-color-border);
  border-radius: var(--tmbn-radius-input);
  transition: border-color var(--tmbn-transition);
}

.tmbn-pay-method:has(.tmbn-pay-method__radio:checked) {
  border-color: var(--tmbn-color-accent);
}

.tmbn-pay-method__label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
}

.tmbn-pay-method__radio {
  accent-color: var(--tmbn-color-accent-dark);
}

.tmbn-pay-method__name {
  flex: 1;
  font-weight: 500;
  color: var(--tmbn-color-text);
}

.tmbn-pay-method__icon {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tmbn-pay-method__icon img {
  height: 24px;
  width: auto;
}

.tmbn-pay-method__fields {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--tmbn-color-text-muted);
}

/* Submit */
.tmbn-pay-form__actions {
  margin-top: 8px;
}

.tmbn-pay-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
  border: none;
  border-radius: var(--tmbn-radius-btn);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--tmbn-transition);
}

.tmbn-pay-form__submit:hover {
  background: var(--tmbn-color-accent-dark);
}

.tmbn-pay-form__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--tmbn-color-text-muted);
}

/* Hide default WC form elements inside our template */
.tmbn-pay-page .wc_payment_methods { list-style: none; padding: 0; margin: 0; }
.tmbn-pay-page .payment_box { margin-top: 0; }

@media (min-width: 768px) {
  .tmbn-pay-page__wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .tmbn-pay-form__submit {
    width: auto;
    min-width: 220px;
  }
}

/* ============================================================
   Confirmation Page — Evodrive style
   ============================================================ */
.tmbn-cnf {
  padding: 80px 0 60px;
  min-height: 70vh;
  font-family: var(--tmbn-font-body);
  color: var(--tmbn-color-text);
}

.tmbn-cnf__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tmbn-cnf__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(200, 245, 59, 0.35);
  animation: tmbn-cnf-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tmbn-cnf__icon--error {
  background: var(--tmbn-color-error);
  color: #fff;
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.25);
}

@keyframes tmbn-cnf-pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.tmbn-cnf__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tmbn-color-accent-dark);
}

.tmbn-cnf__title {
  font-family: var(--tmbn-font-heading);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  margin: 8px 0 12px;
  color: var(--tmbn-color-text);
}

.tmbn-cnf__desc {
  max-width: 500px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--tmbn-color-text-muted);
  margin: 0 0 40px;
}

.tmbn-cnf__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  text-align: left;
}

.tmbn-cnf__summary {
  background: var(--tmbn-color-surface);
  border: 1px solid var(--tmbn-color-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tmbn-cnf__summary-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tmbn-color-text-muted);
  margin: 0;
}

.tmbn-cnf__car {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tmbn-color-border);
}

.tmbn-cnf__car-img {
  width: 100px;
  height: 70px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.tmbn-cnf__car-name {
  font-family: var(--tmbn-font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--tmbn-color-text);
}

.tmbn-cnf__rows {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tmbn-cnf__rows li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tmbn-color-border);
  font-size: 14px;
}

.tmbn-cnf__rows li:last-child { border-bottom: none; }
.tmbn-cnf__rows li > span { color: var(--tmbn-color-text-muted); flex-shrink: 0; }
.tmbn-cnf__rows li > strong { color: var(--tmbn-color-text); text-align: right; font-weight: 500; }

.tmbn-cnf__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--tmbn-color-primary);
  color: #fff;
  border-radius: 12px;
}

.tmbn-cnf__total-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}

.tmbn-cnf__total-sub {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.tmbn-cnf__total-amount {
  font-family: var(--tmbn-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--tmbn-color-accent);
}

.tmbn-cnf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html .tmbn-cnf__actions .tmbn-cnf__btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background:var(--tmbn-color-accent);

  border-radius: var(--tmbn-radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--tmbn-transition);
}

.tmbn-cnf__btn:hover { background: #2a2a4e; color: #fff; }

.tmbn-cnf__btn--outline {
  background: transparent;
  color: var(--tmbn-color-text);
  border: 1px solid var(--tmbn-color-border);
}

.tmbn-cnf__btn--outline:hover { background: var(--tmbn-color-surface-alt); color: var(--tmbn-color-text); }

.tmbn-cnf__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tmbn-cnf__support {
  background: var(--tmbn-color-primary);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
}

.tmbn-cnf__support-title {
  font-family: var(--tmbn-font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.tmbn-cnf__support-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.tmbn-cnf__support-link {
  color: var(--tmbn-color-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.tmbn-cnf__support-link:hover { color: #fff; }

.tmbn-cnf--failed { padding: 100px 0; }

.tmbn-cnf__retry-btn {
  display: inline-flex;
  padding: 12px 28px;
  background: var(--tmbn-color-primary);
  color: #fff;
  border-radius: var(--tmbn-radius-btn);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 16px;
}

.tmbn-cnf__retry-btn:hover { background: #2a2a4e; color: #fff; }

@media (min-width: 768px) {
  .tmbn-cnf__layout { grid-template-columns: 1.5fr 1fr; }
}

@media (max-width: 640px) {
  .tmbn-cnf { padding: 60px 0 40px; }
  .tmbn-cnf__summary { padding: 20px; }
  .tmbn-cnf__total { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tmbn-cnf__rows li { flex-direction: column; gap: 2px; }
  .tmbn-cnf__rows li > strong { text-align: left; }
}

/* ============================================================
   Vehicle Page (single-vehicle.php template)
   ============================================================ */
.tmbn-vehicle-page {
  font-family: var(--tmbn-font-body);
  color: var(--tmbn-color-text);
}

/* ═══ TOP BAR: Title + Price + CTA ═══ */
.tmbn-vp-topbar {
  padding: 10px 0;
}

.tmbn-vp-topbar__wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tmbn-vp-topbar__title {
  font-family: var(--tmbn-font-heading);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--tmbn-color-text);
  line-height: 1.2;
}

.tmbn-vp-topbar__sub {
  font-size: 13px;
  color: var(--tmbn-color-text-muted);
}

.tmbn-vp-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tmbn-vp-topbar__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.tmbn-vp-topbar__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--tmbn-color-text);
}

.tmbn-vp-topbar__per {
  font-size: 12px;
  color: var(--tmbn-color-text-muted);
}

.tmbn-vp-topbar__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--tmbn-color-accent);
  color: var(--tmbn-color-accent-text);
  border-radius: var(--tmbn-radius-btn);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.tmbn-vp-topbar__cta:hover {
  background: var(--tmbn-color-accent-dark);
  color: var(--tmbn-color-accent-text);
  text-decoration: none;
}

/* ═══ HERO: Gallery ═══ */
.tmbn-vp-hero {
  position: relative;
}

/* ═══ Desktop: Mosaic grid ═══ */
.tmbn-vp-mosaic {
  display: none; /* shown on desktop */
  max-width: 1400px;
  margin: 0 auto;
  padding: 4px 16px 16px;
  gap: 4px;
}

.tmbn-vp-mosaic__cell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.tmbn-vp-mosaic__cell:hover .tmbn-vp-mosaic__img {
  transform: scale(1.03);
}

.tmbn-vp-mosaic__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.tmbn-vp-mosaic__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tmbn-vp-mosaic__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Mosaic layouts by count — only on desktop via media query */

/* ═══ Mobile: Swipe slider ═══ */
.tmbn-vp-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.tmbn-vp-slider__track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.tmbn-vp-slider__slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.tmbn-vp-slider__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/2;
  max-height: 280px;
}

.tmbn-vp-slider__video {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  max-height: 280px;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.tmbn-vp-slider__video .tmbn-vp-slider__img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  aspect-ratio: auto;
  max-height: none;
}

.tmbn-vp-slider__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  cursor: pointer;
  z-index: 2;
}

.tmbn-vp-slider__counter {
  position: absolute;
  bottom: 8px;
  right: 20px;
  z-index: 3;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* ═══ SPECS BAR ═══ */
.tmbn-vp-specbar {
  border-bottom: 1px solid var(--tmbn-color-border);
  background: var(--tmbn-color-surface);
  padding: 12px 0;
}

.tmbn-vp-specbar__wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tmbn-vp-specbar__item {
  display: flex;
  flex-direction: column;
  background: var(--tmbn-color-surface-alt);
  border: 1px solid var(--tmbn-color-border);
  border-radius: 8px;
  padding: 6px 14px;
  flex-shrink: 0;
}

.tmbn-vp-specbar__label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--tmbn-color-text-muted);
  letter-spacing: 0.5px;
}

.tmbn-vp-specbar__val {
  font-size: 13px;
  font-weight: 600;
  color: var(--tmbn-color-text);
}

.tmbn-vp-specbar__perks {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.tmbn-vp-specbar__perk {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--tmbn-color-text-muted);
  white-space: nowrap;
}

.tmbn-vp-specbar__perk svg {
  color: var(--tmbn-color-success);
  flex-shrink: 0;
}

/* ═══ LIGHTBOX ═══ */
.tmbn-vp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

/* Respect hidden attribute on elements with explicit display */
.tmbn-vehicle-page [hidden],
.tmbn-wizard [hidden],
.tmbn-vp-lightbox[hidden] {
  display: none !important;
}

.tmbn-vp-lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 5;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.tmbn-vp-lightbox__close:hover { opacity: 0.7; }

.tmbn-vp-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.tmbn-vp-lightbox__arrow:hover { background: rgba(255,255,255,0.3); }
.tmbn-vp-lightbox__arrow--prev { left: 12px; }
.tmbn-vp-lightbox__arrow--next { right: 12px; }

.tmbn-vp-lightbox__content {
  max-width: 90vw;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmbn-vp-lightbox__img {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
}

.tmbn-vp-lightbox__video-wrap {
  position: relative;
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.tmbn-vp-lightbox__video-wrap .tmbn-vp-lightbox__img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.tmbn-vp-lightbox__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  cursor: pointer;
}

.tmbn-vp-lightbox__iframe {
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 6px;
}

.tmbn-vp-lightbox__counter {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

.tmbn-vp-lightbox__thumbs {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  overflow-x: auto;
  max-width: 90vw;
  padding: 4px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.tmbn-vp-lightbox__thumbs::-webkit-scrollbar { display: none; }

.tmbn-vp-lightbox__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.4;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}

.tmbn-vp-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmbn-vp-lightbox__thumb--active {
  opacity: 1;
  border-color: var(--tmbn-color-accent, #c8f53b);
}

.tmbn-vp-lightbox__thumb:hover:not(.tmbn-vp-lightbox__thumb--active) {
  opacity: 0.7;
}


/* --- Content: Description + Equipment --- */
.tmbn-vp-content {
  padding: 32px 0;
  background: #fff;
}

.tmbn-vp-content__wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.tmbn-vp-section-title {
  font-family: var(--tmbn-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--tmbn-color-text);
}

.tmbn-vp-desc {
  margin-bottom: 32px;
}

.tmbn-vp-desc__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tmbn-color-text);
}

.tmbn-vp-desc__text p {
  margin: 0 0 12px;
}

.tmbn-vp-equipment__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmbn-vp-equipment__tag {
  display: inline-block;
  background: var(--tmbn-color-surface-alt);
  border: 1px solid var(--tmbn-color-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--tmbn-color-text);
}

/* --- Tabs --- */
.tmbn-vp-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--tmbn-color-border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tmbn-vp-tabs__btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--tmbn-color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--tmbn-transition), border-color var(--tmbn-transition);
}

.tmbn-vp-tabs__btn:hover {
  color: var(--tmbn-color-text);
}

.tmbn-vp-tabs__btn--active {
  color: var(--tmbn-color-text);
  border-bottom-color: var(--tmbn-color-accent);
}

.tmbn-vp-tabs__panel {
  display: none;
}

.tmbn-vp-tabs__panel--active {
  display: block;
}

/* --- Spec list (used in Specs & Contact tabs) --- */
.tmbn-vp-speclist {
  margin: 0;
  padding: 0;
}

.tmbn-vp-speclist__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--tmbn-color-border);
  font-size: 14px;
}

.tmbn-vp-speclist__row:last-child {
  border-bottom: none;
}

.tmbn-vp-speclist__row dt {
  color: var(--tmbn-color-text-muted);
  font-weight: 400;
}

.tmbn-vp-speclist__row dd {
  color: var(--tmbn-color-text);
  font-weight: 600;
  margin: 0;
  text-align: right;
}

/* --- Responsive: Desktop --- */
@media (min-width: 768px) {
  .tmbn-vp-topbar {
    padding: 16px 0;
  }

  .tmbn-vp-topbar__title {
    font-size: 26px;
  }

  .tmbn-vp-topbar__amount {
    font-size: 26px;
  }

  .tmbn-vp-topbar__per {
    font-size: 14px;
  }

  .tmbn-vp-topbar__cta {
    padding: 10px 24px;
    font-size: 14px;
  }

  .tmbn-vp-tabs__btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Desktop: show mosaic, hide slider */
  .tmbn-vp-slider { display: none; }
  .tmbn-vp-mosaic--c1 { display: grid; grid-template-columns: 1fr; grid-template-rows: 420px; }
  .tmbn-vp-mosaic--c2 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 420px; }
  .tmbn-vp-mosaic--c3 { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 210px 210px; }
  .tmbn-vp-mosaic--c3 .tmbn-vp-mosaic__cell--main { grid-row: 1 / 3; }
  .tmbn-vp-mosaic--c4 { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; }
  .tmbn-vp-mosaic--c4 .tmbn-vp-mosaic__cell--main { grid-row: 1 / 3; }
  .tmbn-vp-mosaic--c5 { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; }
  .tmbn-vp-mosaic--c5 .tmbn-vp-mosaic__cell--main { grid-row: 1 / 3; }
}

@media (min-width: 1024px) {
  .tmbn-vp-topbar__title {
    font-size: 30px;
  }

  .tmbn-vp-mosaic--c5,
  .tmbn-vp-mosaic--c4,
  .tmbn-vp-mosaic--c3 {
    grid-template-rows: 240px 240px;
  }

  .tmbn-vp-info__amount {
    font-size: 36px;
  }
}

/* ── Document verification pay gate (TMB Next KYC) ── */
.tmbn-form__gate-note{margin:0 0 12px;padding:10px 14px;border-radius:8px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:14px;line-height:1.55}
.tmbn-form__submit:disabled,.tmbn-form__submit--disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}

/* ── Success modal close / OK (TMB Next KYC) ── */
.tmbn-modal__content{position:relative}
.tmbn-modal__close{position:absolute;top:8px;right:14px;background:none;border:0;font-size:28px;line-height:1;cursor:pointer;color:#999}
.tmbn-modal__close:hover{color:#222}
.tmbn-modal__ok{margin-top:14px;display:inline-block;width:auto;padding:10px 28px}

/* ── My Account verification tab (TMB Next) ── */
.tmbn-acct__sub{color:#666;font-size:14px;margin:0 0 14px}
.tmbn-acct__banner{padding:12px 16px;border-radius:8px;margin-bottom:18px;font-size:14px;line-height:1.55}
.tmbn-acct__banner--info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.tmbn-acct__banner--pending{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}
.tmbn-acct__banner--approved{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}
.tmbn-acct__banner--rejected{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.tmbn-acct__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(max-width:600px){.tmbn-acct__grid{grid-template-columns:1fr}}
.tmbn-acct-doc{border:1px solid #e5e7eb;border-radius:8px;padding:14px}
.tmbn-acct-doc__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.tmbn-acct-doc__upload{display:inline-flex;align-items:center;gap:10px;cursor:pointer;flex-wrap:wrap}
.tmbn-acct-doc__hint{color:#888;font-size:12px}
.tmbn-acct-doc__locked{color:#777;font-size:13px}
.tmbn-acct-doc__msg{margin-top:8px;font-size:13px;color:#9a3412;min-height:1em}
.tmbn-badge--sm{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600;white-space:nowrap}
.tmbn-badge--green{background:#ecfdf5;color:#065f46}
.tmbn-badge--red{background:#fef2f2;color:#991b1b}
.tmbn-badge--blue{background:#eff6ff;color:#1e40af}
.tmbn-badge--gray{background:#f3f4f6;color:#555}

.tmbn-acct__heading{margin:18px 0 10px;font-size:18px}
.tmbn-acct-dash{margin-top:24px;padding-top:18px;border-top:1px solid #eee}
