:root {
  --twm-primary: #111827;
  --twm-secondary: #fbbf24;
  --twm-bg: #f9fafb;
  --twm-border: #e5e7eb;
  --twm-text: #111827;
}

.twm-global-booking {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--twm-text);
}

.twm-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--twm-border);
}

.twm-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.twm-card p {
  margin: 0 0 16px;
  color: #4b5563;
}

.twm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.twm-input,
.twm-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--twm-border);
  font-size: 14px;
}

.twm-autocomplete {
  position: relative;
}

.twm-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--twm-border);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
}

.twm-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #1f2937;
}

.twm-suggestion:hover,
.twm-suggestion:focus {
  background: #f3f4f6;
}

.twm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: #e5e7eb;
  color: #111827;
  margin-top: 12px;
}

.twm-btn-primary {
  background: var(--twm-primary);
  color: white;
}

.twm-btn-secondary {
  background: var(--twm-secondary);
  color: #111827;
  margin-left: 8px;
}

.twm-error {
  margin-top: 12px;
  color: #b91c1c;
  font-weight: 600;
}

.twm-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.twm-offer {
  border: 1px solid #e6e8ef;
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 230px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.twm-offer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
}

.twm-offer-head > div {
  min-width: 0;
}

.twm-global-booking .twm-logo {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  background: white;
  padding: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.twm-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--twm-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.twm-offer {
  color: var(--twm-text);
}

.twm-company {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twm-payment {
  font-size: 12px;
  color: #6b7280;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twm-offer-price {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--twm-text);
}

.twm-offer .twm-btn {
  color: #fff;
}

.twm-offer .twm-btn {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
}

.twm-offer-cheapest {
  border-color: #fbbf24;
  background: #fff7e0;
  box-shadow: 0 12px 26px rgba(251, 191, 36, 0.2);
}

.twm-offer-badge {
  background: #fbbf24;
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  margin-left: auto;
}

.twm-summary {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
}

.twm-summary-item {
  margin-bottom: 6px;
}

.twm-payment-options {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--twm-border);
}

.twm-date-time {
  margin-top: 4px;
}

.twm-payment-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.twm-loader {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--twm-primary);
  border-radius: 50%;
  animation: twm-spin 1s linear infinite;
  margin-bottom: 12px;
}

.twm-empty {
  padding: 16px;
  background: #f3f4f6;
  border-radius: 10px;
}

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