.tm-extend {
  --tm-primary: #0c3f91;
  --tm-accent: #f7c71f;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: transparent;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.tm-extend-card {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.tm-extend-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding-bottom: 0px !important;
}

.tm-extend-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
}

.tm-extend-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-extend-highlight-icon svg {
  width: 14px;
  height: 14px;
}

.tm-extend-highlight-icon.is-star svg {
  color: #f4b400;
  fill: #f4b400;
}

.tm-extend-highlight-icon.is-card svg {
  color: #64748b;
}

.tm-extend-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: #475569;
}

.tm-extend-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-extend-bullet-icon svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
}

.tm-extend-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  min-height: 44px;
  position: relative;
}

.tm-extend-field input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: #0f172a;
}

.tm-extend-field input::placeholder {
  color: #94a3b8;
}

.tm-extend-field-compact {
  flex: 1;
}

.tm-extend-icon svg {
  width: 16px;
  height: 16px;
  color: var(--tm-primary);
}

.tm-extend-chevron svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.tm-extend-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tm-extend-vehicles {
  margin-top: 6px;
  margin-bottom: 10px;
}

.tm-extend-vehicle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 128px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #1e3a8a;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tm-extend-vehicle svg {
  width: 72px;
  height: 56px;
}

.tm-extend-vehicle.is-active {
  background: var(--tm-primary);
  border-color: var(--tm-primary);
  color: #ffffff;
}

.tm-extend-vehicle.is-active svg {
  color: #ffffff;
}

.tm-extend-vehicle-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.tm-extend-vehicle-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

.tm-extend-vehicle.is-active .tm-extend-vehicle-subtitle {
  color: #e2e8f0;
}

.tm-extend-button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  background: var(--tm-accent);
  color: #1f2937;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 0 rgba(165, 113, 0, 0.2);
}

.tm-extend-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tm-extend-button-secondary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: none;
}

.tm-extend-fare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  font-size: 13px;
  color: #0f172a;
}

.tm-extend-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-extend-details input {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
}

.tm-extend-confirm-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2px;
}

.tm-extend-confirm-note-icon svg {
  width: 16px;
  height: 16px;
  color: var(--tm-primary);
}

.tm-extend-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  z-index: 5;
}

.tm-extend-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: tm-extend-spin 0.9s linear infinite;
}

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

.tm-extend-picker {
  position: relative;
  flex: 1;
}

.tm-extend-picker-input {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 13px;
  color: #0f172a;
  width: 100%;
  cursor: pointer;
}

.tm-extend-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  padding: 12px;
  z-index: 20;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.tm-extend-picker-panel-time {
  width: 160px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-extend-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tm-extend-picker-nav {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.tm-extend-picker-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.tm-extend-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-bottom: 6px;
}

.tm-extend-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.tm-extend-picker-day {
  border: none;
  background: #f8fafc;
  color: #0f172a;
  padding: 6px 0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.tm-extend-picker-day.is-empty {
  background: transparent;
  cursor: default;
}

.tm-extend-picker-day.is-selected {
  background: var(--tm-primary);
  color: #ffffff;
}

.tm-extend-picker-time {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.tm-extend-picker-time.is-selected {
  background: var(--tm-primary);
  color: #ffffff;
  border-color: var(--tm-primary);
}

.tm-extend-fixed-wrapper {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #cfd7ff 0%, #e7ecff 100%);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid #c6cff8;
  max-width: 360px;
}

.tm-extend-fixed-header {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tm-extend-fixed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-extend-fixed-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d6defb;
  border-radius: 14px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 12px rgba(30, 41, 59, 0.08);
}

.tm-extend-fixed-card:focus {
  outline: 2px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-extend-fixed-thumb {
  width: 64px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-extend-fixed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  display: block;
}

.tm-extend-fixed-thumb-placeholder {
  width: 100%;
  height: 100%;
}

.tm-extend-fixed-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tm-extend-fixed-destination {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.tm-extend-fixed-route {
  font-size: 11px;
  color: #64748b;
}

.tm-extend-fixed-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tm-extend-fixed-amount {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.tm-extend-fixed-badge {
  background: #facc15;
  color: #1f2937;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: lowercase;
}

.tm-extend-fixed-image-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-extend-fixed-image-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #d1d5db;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.tm-extend-fixed-image-preview {
  width: 140px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-extend-fixed-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tm-extend-fixed-image-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #1f2937;
}

.tm-extend-fixed-meta-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.tm-extend-fixed-meta-route {
  font-size: 12px;
  color: #64748b;
}

.tm-extend-fixed-meta-price {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.tm-extend-fixed-image-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-extend-fixed-image-actions .button {
  justify-content: center;
  min-width: 140px;
}

.tm-extend-fixed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.tm-extend-fixed-toggle input[type='checkbox'] {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  border: 1px solid #cbd5f5;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tm-extend-fixed-toggle input[type='checkbox']::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.tm-extend-fixed-toggle input[type='checkbox']:checked {
  background: #22c55e;
}

.tm-extend-fixed-toggle input[type='checkbox']:checked::after {
  transform: translateX(16px);
}

.tm-extend-fixed-toggle-label {
  text-transform: uppercase;
  font-size: 11px;
}

.pac-container {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin-top: -35px;
  z-index: 9999;
}

.pac-container .pac-item {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.3;
  color: #0f172a;
}

.pac-container .pac-item:hover {
  background: #f1f5f9;
}

.pac-container .pac-item-query {
  font-weight: 600;
  color: #0f172a;
}

/* Chrome, Edge, Safari */
.tm-extend input[type='date']::-webkit-calendar-picker-indicator,
.tm-extend input[type='time']::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
}

/* Firefox */
.tm-extend input[type='date'],
.tm-extend input[type='time'] {
  -moz-appearance: textfield;
}

.tm-extend-status {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.tm-extend-status-success {
  color: #16a34a;
  font-weight: 600;
}

.tm-extend-success-alert {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 420px) {
  .tm-extend {
    padding: 12px;
  }

  .tm-extend-row {
    grid-template-columns: 1fr;
  }
}
