/* ========================================
   ClickBus Search System — Styles
   ======================================== */

/* Autocomplete Dropdown */
.cb-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  animation: cbDropIn 0.2s ease-out;
}

@keyframes cbDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cb-autocomplete::-webkit-scrollbar {
  width: 6px;
}

.cb-autocomplete::-webkit-scrollbar-track {
  background: transparent;
}

.cb-autocomplete::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.cb-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}

.cb-autocomplete-item:last-child {
  border-bottom: none;
}

.cb-autocomplete-item:hover {
  background: #f8f0ff;
}

.cb-autocomplete-item.selected {
  background: #f0e6ff;
}

.cb-autocomplete-item .cb-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A528FF 0%, #8B20D9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cb-autocomplete-item .cb-icon svg {
  width: 16px;
  height: 16px;
}

.cb-autocomplete-item .cb-text {
  min-width: 0;
}

.cb-autocomplete-item .cb-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-autocomplete-item .cb-terminal {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* Results Container */
#cb-results-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Results Header */
.cb-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cb-results-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.cb-results-count {
  font-size: 14px;
  color: #888;
}

.cb-sort-select {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 13px;
  color: #444;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.cb-sort-select:focus {
  border-color: #A528FF;
}

/* Loading */
.cb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.cb-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f0e6ff;
  border-top-color: #A528FF;
  border-radius: 50%;
  animation: cbSpin 0.8s linear infinite;
}

@keyframes cbSpin {
  to {
    transform: rotate(360deg);
  }
}

.cb-loading-text {
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

/* No Results */
.cb-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.cb-no-results svg {
  margin: 0 auto 16px;
}

.cb-no-results h3 {
  font-size: 18px;
  color: #222;
  margin-bottom: 8px;
}

.cb-no-results p {
  font-size: 14px;
  color: #888;
}

/* Trip Card */
.cb-trip-card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  animation: cbCardIn 0.35s ease-out both;
  border: 1px solid #f0f0f0;
}

.cb-trip-card:hover {
  box-shadow: 0 8px 24px rgba(165, 40, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

@keyframes cbCardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cb-trip-card-inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .cb-trip-card-inner {
    flex-direction: row;
  }
}

/* Card Left - Company & Trip Info */
.cb-trip-main {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Company Row */
.cb-company-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-company-logo {
  width: 40px;
  height: 40px;
  background: #f8f8f8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid #eee;
}

.cb-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cb-company-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.cb-service-class {
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* Time Row */
.cb-time-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cb-time-block {
  text-align: center;
  min-width: 60px;
}

.cb-time {
  font-size: 22px;
  font-weight: 800;
  color: #222;
  line-height: 1;
}

.cb-place {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.cb-duration-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}

.cb-duration-text {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

.cb-duration-bar {
  width: 100%;
  height: 2px;
  background: #e8e8e8;
  border-radius: 1px;
  position: relative;
}

.cb-duration-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #A528FF;
  border-radius: 50%;
  transform: translateY(-50%);
}

.cb-duration-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #A528FF;
  border-radius: 50%;
  transform: translateY(-50%);
}

.cb-trip-type {
  font-size: 11px;
  color: #aaa;
}

/* Features Row */
.cb-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cb-feature-tag {
  font-size: 11px;
  color: #666;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cb-feature-tag svg {
  width: 12px;
  height: 12px;
  color: #A528FF;
}

/* Card Right - Price & Seats */
.cb-trip-price-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  min-width: 180px;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

@media (min-width: 640px) {
  .cb-trip-price-section {
    border-top: none;
    border-left: 1px solid #f0f0f0;
  }
}

.cb-seats-info {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cb-seats-low {
  color: #e74c3c;
  font-weight: 600;
}

.cb-original-price {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}

.cb-price {
  font-size: 28px;
  font-weight: 800;
  color: #222;
  line-height: 1;
}

.cb-price-currency {
  font-size: 16px;
  font-weight: 600;
}

.cb-low-fare-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ff6b35, #e74c3c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cb-select-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #A528FF, #8B20D9);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.cb-select-btn:hover {
  background: linear-gradient(135deg, #B33FFF, #9B30E9);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(165, 40, 255, 0.3);
}

/* Error State */
.cb-error {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cb-error h3 {
  color: #e74c3c;
  margin-bottom: 8px;
}

.cb-error p {
  color: #888;
  font-size: 14px;
}

.cb-error button {
  margin-top: 16px;
  padding: 10px 24px;
  background: #A528FF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Date Input Styling */
.cb-date-input-wrapper {
  position: relative;
}

.cb-date-input-wrapper input[type="date"] {
  width: 100%;
  border: none;
  outline: none;
  color: #222;
  font-size: 14px;
  background: transparent;
  padding: 0;
  height: 20px;
  font-family: inherit;
}

.cb-date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Search button (full-width mobile) */
.cb-search-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #A528FF 0%, #8B20D9 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.cb-search-btn:hover {
  background: linear-gradient(135deg, #B33FFF 0%, #9B30E9 100%);
  box-shadow: 0 6px 20px rgba(165, 40, 255, 0.35);
  transform: translateY(-1px);
}

.cb-search-btn:active {
  transform: translateY(0);
}

.cb-search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile responsiveness */
@media (max-width: 639px) {
  .cb-time {
    font-size: 18px;
  }

  .cb-price {
    font-size: 24px;
  }

  .cb-trip-main {
    padding: 14px 16px;
  }

  .cb-trip-price-section {
    padding: 14px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .cb-select-btn {
    width: auto;
  }

  .cb-results-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   CHECKOUT FLOW STYLES
   ======================================== */

/* Step Indicator */
.cb-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cb-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.cb-step.active,
.cb-step.completed {
  opacity: 1;
}

.cb-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: #f0e6ff;
  color: #A528FF;
  flex-shrink: 0;
  transition: all 0.3s;
}

.cb-step.active .cb-step-num {
  background: linear-gradient(135deg, #A528FF, #8B20D9);
  color: #fff;
  box-shadow: 0 4px 12px rgba(165, 40, 255, 0.3);
}

.cb-step.completed .cb-step-num {
  background: #22C55E;
  color: #fff;
}

.cb-step-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.cb-step-line {
  width: 60px;
  height: 2px;
  background: #e8e8e8;
  margin: 0 12px;
  border-radius: 1px;
  transition: background 0.3s;
}

.cb-step-line.completed {
  background: #22C55E;
}

/* ---- Seat Selection Page ---- */
.cb-seat-page {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cb-seat-main {
  flex: 1;
  min-width: 0;
}

.cb-seat-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 20px;
  border: 1px solid #f0f0f0;
}

.cb-seat-sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #222;
}

.cb-trip-header-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
}

.cb-trip-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
}

.cb-service-badge {
  font-size: 11px;
  background: #f0e6ff;
  color: #A528FF;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.cb-trip-meta {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* Seat Legend */
.cb-seat-legend {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: #555;
}

.cb-seat-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cb-legend-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: inline-block;
}

.cb-legend-box.available {
  background: #22C55E;
}

.cb-legend-box.selected {
  background: #A528FF;
}

.cb-legend-box.occupied {
  background: #e0e0e0;
}

/* Floor Tabs */
.cb-floor-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.cb-floor-tab {
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.cb-floor-tab.active {
  background: linear-gradient(135deg, #A528FF, #8B20D9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(165, 40, 255, 0.25);
}

.cb-floor-label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-align: center;
  margin-bottom: 8px;
}

/* Bus Body */
.cb-bus-body {
  background: #fff;
  border-radius: 20px 20px 12px 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid #e8e8e8;
  position: relative;
}

.cb-bus-front {
  height: 12px;
  background: linear-gradient(to right, #A528FF, #8B20D9);
  border-radius: 20px 20px 0 0;
  margin: -16px -16px 12px;
}

/* Seat Grid */
.cb-seat-grid {
  display: grid;
  gap: 6px;
  justify-content: center;
}

.cb-seat-empty {
  width: 44px;
  height: 44px;
}

.cb-seat-driver {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #f5f5f5;
  border-radius: 8px;
}

.cb-seat {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
  user-select: none;
}

.cb-seat.available {
  background: #22C55E;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.cb-seat.available:hover {
  background: #16A34A;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.cb-seat.occupied {
  background: #e8e8e8;
  color: #bbb;
  cursor: not-allowed;
}

.cb-seat.selected-seat {
  background: linear-gradient(135deg, #A528FF, #8B20D9) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(165, 40, 255, 0.4) !important;
  transform: scale(1.05);
}

/* Seat Summary Sidebar */
.cb-seat-summary-empty {
  text-align: center;
  padding: 24px 0;
  color: #aaa;
}

.cb-seat-summary-empty p {
  margin-top: 12px;
  font-size: 13px;
}

.cb-selected-seats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-selected-seat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f5ff;
  border-radius: 10px;
  font-size: 14px;
}

.cb-seat-badge {
  background: linear-gradient(135deg, #A528FF, #8B20D9);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
}

.cb-seat-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #f0f0f0;
  font-size: 16px;
}

.cb-seat-total strong {
  color: #A528FF;
  font-size: 20px;
}

.cb-continue-btn {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: linear-gradient(135deg, #A528FF, #8B20D9);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.cb-continue-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #B33FFF, #9B30E9);
  box-shadow: 0 6px 20px rgba(165, 40, 255, 0.35);
  transform: translateY(-1px);
}

.cb-continue-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Checkout (Passenger + Payment) ---- */
.cb-checkout-page {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.cb-checkout-main {
  flex: 1;
  min-width: 0;
  max-width: 580px;
}

.cb-checkout-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.cb-section-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.cb-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A528FF, #8B20D9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.cb-passenger-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.cb-passenger-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cb-passenger-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

.cb-passenger-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0e6ff;
  color: #A528FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Form Grid */
.cb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cb-form-full {
  grid-column: 1 / -1;
}

.cb-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.cb-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  color: #222;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.cb-input:focus {
  border-color: #A528FF;
  box-shadow: 0 0 0 3px rgba(165, 40, 255, 0.1);
}

/* Order Summary */
.cb-order-summary {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.cb-order-summary h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #222;
}

.cb-order-company {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.cb-order-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
}

.cb-order-class {
  font-size: 12px;
  color: #888;
}

.cb-order-details {
  margin-bottom: 12px;
}

.cb-order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #555;
}

.cb-order-row.cb-discount {
  color: #22C55E;
  font-weight: 600;
}

.cb-order-seats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}

.cb-seat-badge-sm {
  background: #f0e6ff;
  color: #A528FF;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  margin-left: 4px;
}

.cb-order-prices {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-bottom: 12px;
}

.cb-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 2px solid #A528FF;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.cb-total-value {
  font-size: 22px;
  font-weight: 800;
  color: #A528FF;
}

.cb-pay-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cb-pay-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #16A34A, #15803D);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.cb-pay-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cb-spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cbSpin 0.8s linear infinite;
  display: inline-block;
}

.cb-trust-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  font-size: 11px;
  color: #888;
}

/* PIX Result */
.cb-pix-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #22C55E;
  text-align: center;
  animation: cbCardIn 0.4s ease-out;
}

.cb-pix-success {
  font-size: 16px;
  font-weight: 700;
  color: #22C55E;
  margin-bottom: 8px;
}

.cb-pix-instruction {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.cb-pix-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.cb-pix-qr img {
  border-radius: 12px;
  border: 3px solid #f0e6ff;
  padding: 8px;
  background: #fff;
}

.cb-pix-copy-area {
  margin-bottom: 16px;
}

.cb-pix-copy-area label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.cb-pix-copy-row {
  display: flex;
  gap: 8px;
}

.cb-pix-copy-row .cb-input {
  flex: 1;
  font-size: 11px;
  color: #555;
  background: #f8f8f8;
}

.cb-copy-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #A528FF, #8B20D9);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cb-copy-btn:hover {
  background: linear-gradient(135deg, #B33FFF, #9B30E9);
  box-shadow: 0 4px 12px rgba(165, 40, 255, 0.3);
}

.cb-pix-timer {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.cb-pix-timer strong {
  color: #A528FF;
  font-size: 18px;
}

.cb-pix-total {
  font-size: 16px;
  color: #222;
}

.cb-pix-total strong {
  color: #22C55E;
  font-size: 20px;
}

/* ---- Responsive: mobile checkout ---- */
@media (max-width: 768px) {
  .cb-step-indicator {
    gap: 0;
    padding: 12px;
  }

  .cb-step-label {
    display: none;
  }

  .cb-step-line {
    width: 30px;
    margin: 0 6px;
  }

  .cb-seat-page,
  .cb-checkout-page {
    flex-direction: column;
  }

  .cb-seat-sidebar,
  .cb-checkout-sidebar {
    width: 100%;
    position: static;
  }

  .cb-seat-grid {
    gap: 4px;
  }

  .cb-seat,
  .cb-seat-empty,
  .cb-seat-driver {
    width: 38px;
    height: 38px;
  }

  .cb-seat span {
    font-size: 10px;
  }

  .cb-form-grid {
    grid-template-columns: 1fr;
  }

  .cb-form-full {
    grid-column: 1;
  }
}