/* Checkout form fields (phone, nationality, passport/date wheels).
   Extracted from styles.css lines 28-415.
   Load after styles.css to preserve cascade. */

.checkout-flag-img {
  display: block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}
.checkout-phone-composite {
  display: grid;
  grid-template-columns: minmax(108px, 128px) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  align-items: stretch;
}
.checkout-phone-national {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  padding: 8px 12px;
  color: var(--ink);
}
.checkout-phone-country-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.checkout-phone-country-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
.checkout-phone-country-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 8px 26px 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 1px 1px rgba(15, 23, 42, 0.02);
}
.checkout-phone-country-trigger::after {
  content: '';
  position: absolute;
  right: 11px;
  top: 50%;
  margin-top: -3px;
  border: 5px solid transparent;
  border-top-color: #516089;
  pointer-events: none;
}
.checkout-phone-country-text {
  white-space: nowrap;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.checkout-phone-country-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 4px);
  left: 0;
  min-width: min(100%, 280px);
  max-height: 280px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 14px 30px rgba(13, 22, 42, 0.16);
}
.checkout-phone-country-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 12px;
  color: #13203d;
  cursor: pointer;
  font: inherit;
}
.checkout-phone-country-option-code {
  font-weight: 700;
  white-space: nowrap;
}
.checkout-phone-country-option-name {
  font-size: 0.86rem;
  color: #516089;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkout-phone-country-option:hover,
.checkout-phone-country-option.is-selected,
.checkout-phone-country-option.is-keyboard-active {
  background: rgba(17, 114, 255, 0.08);
}
.checkout-phone-country-trigger:focus-visible {
  outline: none;
  border-color: rgba(11, 95, 197, 0.45);
  box-shadow:
    0 0 0 4px rgba(11, 95, 197, 0.12),
    0 8px 18px rgba(11, 95, 197, 0.06);
}
.checkout-date-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.checkout-date-field .checkout-date-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  border-radius: 14px 0 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-right: 0;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  padding: 8px 12px;
  color: var(--ink);
}
.checkout-date-picker-btn {
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #1b4fbf;
  cursor: pointer;
  padding: 0;
}
.checkout-date-picker-btn:hover {
  background: rgba(17, 114, 255, 0.08);
}
.checkout-date-picker-btn:focus-visible {
  outline: 2px solid rgba(17, 114, 255, 0.45);
  outline-offset: 2px;
}
.checkout-uppercase-input,
.checkout-passport-input {
  text-transform: uppercase;
}
.checkout-passport-input {
  letter-spacing: 0.02em;
}
.duffel-passenger-grid label {
  position: relative;
}
.checkout-nationality-field {
  position: relative;
  width: 100%;
}
.checkout-nationality-input-flag {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.checkout-nationality-input.checkout-nationality-input--has-flag {
  padding-left: 38px;
}
.checkout-nationality-suggestions {
  position: absolute;
  z-index: 120;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 14px 30px rgba(13, 22, 42, 0.16);
  overflow: hidden;
}
.checkout-nationality-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  color: #13203d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.checkout-nationality-option-lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.checkout-nationality-flag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.checkout-nationality-label {
  font-weight: 700;
}
.checkout-nationality-country {
  flex: 0 1 auto;
  font-weight: 500;
  color: #516089;
  text-align: right;
}
.checkout-nationality-option:hover {
  background: rgba(17, 114, 255, 0.08);
}
.checkout-date-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 12, 24, 0.45);
}
.checkout-date-sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 121;
  width: min(440px, calc(100vw - 28px));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #fdfdff;
  box-shadow: 0 26px 54px rgba(9, 14, 30, 0.28);
  padding: 14px;
}
.checkout-date-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.checkout-date-close {
  border: 0;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  background: rgba(17, 114, 255, 0.12);
  color: #0f2c6e;
  font-size: 1.25rem;
}
.checkout-date-wheel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.checkout-date-wheel {
  display: grid;
  gap: 4px;
}
.checkout-date-wheel span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #56617f;
}
.checkout-date-wheel select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(13, 22, 42, 0.14);
  padding: 0 10px;
}
.checkout-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
  font-size: 0.74rem;
  color: #6a7391;
  text-align: center;
}
.checkout-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.checkout-date-cell {
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 11px;
  background: #fff;
  color: #13203d;
  font-weight: 700;
}
.checkout-date-cell.is-empty {
  border: 0;
  background: transparent;
}
.checkout-date-cell.is-disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: not-allowed;
}
.checkout-date-cell.is-selected {
  background: linear-gradient(180deg, #2f8bff, #1b71ef);
  color: #fff;
  border-color: transparent;
}
.checkout-date-sheet-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
[data-theme='dark'] .checkout-phone-country-trigger,
[data-theme='dark'] .checkout-phone-national,
[data-theme='dark'] .checkout-phone-country-menu,
[data-theme='dark'] .checkout-date-field .checkout-date-input,
[data-theme='dark'] .checkout-date-picker-btn,
[data-theme='dark'] .checkout-date-wheel select,
[data-theme='dark'] .checkout-date-cell {
  background: rgba(14, 24, 46, 0.9);
  border-color: rgba(154, 173, 212, 0.24);
  color: #f2f6ff;
}
[data-theme='dark'] .checkout-nationality-suggestions,
[data-theme='dark'] .checkout-date-sheet {
  background: #0d162b;
  border-color: rgba(153, 176, 220, 0.28);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.45);
}
[data-theme='dark'] .checkout-nationality-option {
  color: #e8efff;
}
[data-theme='dark'] .checkout-nationality-country,
[data-theme='dark'] .checkout-date-weekdays,
[data-theme='dark'] .checkout-date-wheel span {
  color: #9cb0dd;
}
[data-theme='dark'] .checkout-date-sheet-head strong {
  color: #eef4ff;
}
[data-theme='dark'] .checkout-date-close {
  background: rgba(74, 165, 255, 0.18);
  color: #eef4ff;
}
[data-theme='dark'] .checkout-date-close:hover,
[data-theme='dark'] .checkout-date-close:focus-visible {
  background: rgba(74, 165, 255, 0.32);
  color: #fff;
}
[data-theme='dark']
  .checkout-date-cell:not(.is-selected):not(.is-disabled):hover {
  border-color: rgba(126, 176, 255, 0.42);
  background: rgba(74, 165, 255, 0.12);
}
[data-theme='dark'] .checkout-date-cell.is-selected {
  background: linear-gradient(180deg, #4b8cff, #2563eb);
  border-color: rgba(126, 176, 255, 0.55);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(74, 165, 255, 0.24),
    0 10px 22px rgba(47, 110, 232, 0.28);
}
