/* Creek's shared customer-facing cards and controls. Search and calendars own their layouts. */
body {
  --creek-ui-orange: #ff3600;
  --creek-ui-orange-hover: #e63000;
  --creek-ui-ink: #101419;
  --creek-ui-muted: #616671;
  --creek-ui-line: #e1e4e9;
  --creek-ui-soft: #f3f4f6;
  --creek-ui-panel: #d7dae2;
}

/* Fleet: white cards on a quiet gray section, with one clear action per vehicle. */
html body #fleet { background: var(--creek-ui-soft) !important; }
html body #fleet .restored-fleet-grid { gap: 20px; background: transparent !important; }
html body #fleet .restored-vehicle-card,
html body #vehiclesSection .customer-vehicle-card {
  min-width: 0;
  border: 1px solid var(--creek-ui-line) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}
html body #fleet .restored-vehicle-card:hover,
html body #vehiclesSection .customer-vehicle-card:hover {
  border-color: #c6cbd3 !important;
  box-shadow: none !important;
  transform: none;
}
html body #fleet .restored-card-image { border-radius: 0 !important; }
html body #fleet .restored-card-top { padding: 22px 22px 0; }
html body #fleet .restored-card-body { padding: 20px 22px 22px; }
html body #fleet .restored-card-body h3 { line-height: 1.3; }
html body #fleet .restored-price { gap: 12px; flex-wrap: wrap; align-items: center; }
html body #fleet .restored-price > button { flex: 1 1 160px; }
html body #fleet .trip-estimate { border-radius: 18px; background: var(--creek-ui-soft); border: 0; }

/* Primary actions retain disabled states and never affect calendar day buttons. */
html body :is(#fleet .restored-price button, #vehiclePage #detailBook,
  #checkoutApp .reserve, #checkoutApp #applyDenverPickup, #checkoutApp #applyDelivery,
  #checkoutApp .checkout-recovery-primary, #quickRequest > button,
  #locations .location-directory-card button, #locationsSection .customer-location-card > a,
  #vehiclesSection .customer-vehicle-footer a, #vehiclesSection .customer-vehicle-footer button,
  #tripsSection .primary, #currentTrip .primary, #tripDayCenter .primary,
  #reservationLookupButton, #customerApp .empty > a, #tripDayCenter .tdc-empty > a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--creek-ui-orange) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-family: 'DM Sans', Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s ease;
}
html body :is(#fleet .restored-price button, #vehiclePage #detailBook,
  #checkoutApp .reserve, #checkoutApp #applyDenverPickup, #checkoutApp #applyDelivery,
  #checkoutApp .checkout-recovery-primary, #quickRequest > button,
  #locations .location-directory-card button, #locationsSection .customer-location-card > a,
  #vehiclesSection .customer-vehicle-footer a, #vehiclesSection .customer-vehicle-footer button,
  #tripsSection .primary, #currentTrip .primary, #tripDayCenter .primary,
  #reservationLookupButton, #customerApp .empty > a, #tripDayCenter .tdc-empty > a):hover:not(:disabled) {
  background: var(--creek-ui-orange-hover) !important;
  color: #fff !important;
}
html body :is(#vehiclePage #detailBook, #checkoutApp .reserve,
  #checkoutApp #applyDenverPickup, #checkoutApp #applyDelivery, #quickRequest > button,
  #tripsSection .primary, #currentTrip .primary, #tripDayCenter .primary,
  #reservationLookupButton):disabled {
  background: #e5e7eb !important;
  color: #7b828d !important;
  -webkit-text-fill-color: #7b828d;
  cursor: not-allowed;
}

/* Enquiry form and location finder use the same gray panel / white field pairing. */
html body #quickRequest,
html body #locations .location-finder {
  padding: 28px;
  border: 0 !important;
  border-radius: 28px !important;
  background: var(--creek-ui-panel) !important;
  box-shadow: none !important;
}
html body #quickRequest label,
html body #locations .location-finder > label {
  color: var(--creek-ui-muted);
  font: 500 13px/1.5 'DM Sans', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
html body #quickRequest :is(input:not([type=hidden]), select, textarea),
html body #locations .location-search-control input {
  min-width: 0;
  min-height: 50px;
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--creek-ui-ink);
  font: 500 16px/1.5 'DM Sans', Arial, sans-serif !important;
  box-shadow: none !important;
}
html body #quickRequest :is(input:not([type=hidden]),select,textarea) { padding: 12px 16px; }
html body #quickRequest textarea { min-height: 120px; resize: vertical; }
html body #quickRequest > button { min-height: 52px; font-size: 16px; }
html body #quickRequest > p { color: #505762; line-height: 1.6; }
html body #locations .location-directory-card {
  border: 1px solid var(--creek-ui-line) !important;
  border-radius: 24px !important;
  background: #fff;
  box-shadow: none !important;
  transform: none !important;
}
html body #locations .location-directory-card:hover { border-color: #c6cbd3 !important; }
html body :is(#locations .location-pin, #locationsSection .customer-location-pin) {
  border-radius: 50%;
  color: var(--creek-ui-orange);
  background: #fff1ec;
}
html body #locations .location-service-tags span,
html body #locations .location-directory-card h3 small { border-radius: 999px; }

/* Filter pills share the search panel's neutral active state. */
html body :is(#locations .location-directory-tabs, #tripsSection .trip-scope,
  #customerApp .trip-tabs) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 0 !important;
  border-radius: 28px !important;
  background: #c9cdd4;
}
html body :is(#locations .location-directory-tabs button, #tripsSection .trip-scope button,
  #customerApp .trip-tabs button) {
  flex: 1 1 auto;
  min-height: 42px;
  margin: 0;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--creek-ui-ink) !important;
  font: 600 14px/1.4 'DM Sans', Arial, sans-serif !important;
  box-shadow: none !important;
}
html body :is(#locations .location-directory-tabs button, #tripsSection .trip-scope button,
  #customerApp .trip-tabs button).active {
  background: var(--creek-ui-ink) !important;
  color: #fff !important;
}
html body :is(#locations .location-directory-tabs button, #tripsSection .trip-scope button,
  #customerApp .trip-tabs button):hover:not(.active) { background: #e5e7eb !important; }
html body #customerApp .trip-tabs button[hidden] { display: none !important; }

/* Vehicle detail: a light booking panel with combined date/time rows. */
html body #vehiclePage :is(.gallery-main,.spec-grid,.detail-assurances,.detail-faq) {
  border-radius: 24px !important;
  box-shadow: none;
}
html body #vehiclePage .gallery-thumbs button { border-radius: 14px !important; }
html body #vehiclePage .gallery-thumbs button.active { border-color: var(--creek-ui-orange); }
html body #vehiclePage .book-panel {
  padding: 24px;
  border: 0;
  border-radius: 28px !important;
  background: var(--creek-ui-panel);
  color: var(--creek-ui-ink);
}
html body #vehiclePage .book-panel .date-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
html body #vehiclePage .book-panel .date-grid > label {
  min-width: 0;
  color: var(--creek-ui-muted);
  font: 500 13px/1.5 'DM Sans', Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none;
}
html body #vehiclePage .book-panel .booking-date-time {
  display: grid;
  grid-template-columns: minmax(0,1fr) 110px;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}
html body #vehiclePage .book-panel .booking-date-time :is(input,select,.creek-trip-date-trigger) {
  min-width: 0;
  width: 100%;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: var(--creek-ui-ink) !important;
  font: 600 14px/1.4 'DM Sans', Arial, sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
html body #vehiclePage .book-panel .booking-date-time select {
  border-left: 1px solid var(--creek-ui-line) !important;
  padding-left: 8px !important;
  appearance: auto;
  -webkit-appearance: menulist;
}
/* Combined fields do not need a second square focus box around their contents. */
html body #vehiclePage .book-panel .booking-date-time :is(select,.creek-trip-date-trigger) {
  outline: none !important;
  box-shadow: none !important;
}
html body #vehiclePage .book-panel .booking-date-time :is(select,.creek-trip-date-trigger):focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
html body #vehiclePage .book-panel .creek-trip-date-trigger::after { display: none; }
html body #vehiclePage #detailBook { min-height: 52px; height: auto; font-size: 16px; }
html body #vehiclePage .book-panel :is(.booking-policy-note,.detail-availability-message) { color: #505762; }
html body #vehiclePage .book-panel :is(.trip-estimate,.rental-requirements) {
  border: 0;
  border-radius: 18px;
  background: #fff;
}
html body #vehiclePage .detail-faq { background: var(--creek-ui-soft); }
html body #vehiclePage .detail-faq details { border-radius: 16px !important; }

/* Checkout: readable sections and a separate trip summary. */
html body:has(#checkoutApp) { background: var(--creek-ui-soft); }
html body:has(#checkoutApp) > header { background: #fff; }
html body #checkoutApp .checkout-grid { gap: 24px; }
html body #checkoutApp .checkout-main { display: grid; gap: 16px; }
html body #checkoutApp .checkout-main > .checkout-section {
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid var(--creek-ui-line) !important;
  border-radius: 24px !important;
  background: #fff;
  box-shadow: none;
}
html body #checkoutApp :is(.checkout-summary,.checkout-recovery) {
  border: 1px solid var(--creek-ui-line);
  border-radius: 24px !important;
  background: #fff;
  box-shadow: none;
}
html body #checkoutApp .checkout-summary .summary-content { padding: 24px; }
html body #checkoutApp .checkout-summary .trip-box {
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: var(--creek-ui-soft);
}
html body #checkoutApp :is(.summary-image,.checkout-next-steps,.checkout-long-term,.promo-entry,
  .protection-disclosure,.choice-card,.extra-row) { border-radius: 18px !important; }
html body #checkoutApp :is(.choice-card.selected,.extra-row.selected) {
  border-color: var(--creek-ui-orange);
  background: #fff3ee;
}
html body #checkoutApp :is(.fields,.checkout-billing-grid,.promo-entry,.pickup-section) :is(input,select):not([type=checkbox]):not([type=radio]):not([type=hidden]),
html body #checkoutApp :is(.checkout-card-field,.dob-control,.phone-field) {
  min-height: 48px !important;
  height: 48px !important;
  border: 1px solid #d4d8df;
  border-radius: 16px !important;
  background: #fff;
  font-family: 'DM Sans', Arial, sans-serif !important;
  font-size: 16px !important;
  box-shadow: none;
}
html body #checkoutApp .driver-section .fields :is(.phone-field,.dob-control) > :is(input,select,button):not([type=hidden]) {
  min-height: 46px !important;
  height: 46px !important;
  border: 0 !important;
  border-radius: 16px !important;
}
html body #checkoutApp .checkout-card-field { padding: 13px; }
html body #checkoutApp .extra-row select { border-radius: 12px !important; min-height: 44px; }
html body #checkoutApp .payment-book-button { min-height: 52px !important; font-size: 16px; }
html body #checkoutApp input[type=checkbox] { accent-color: var(--creek-ui-orange); }

/* Secondary actions remain easy to distinguish from booking/payment actions. */
html body :is(#checkoutApp .mobile-extras-toggle, #checkoutApp .mobile-summary-toggle,
  #checkoutApp .summary-edit-trip, :is(#currentTrip,#customerApp) .current-trip-actions > :is(a,button):not(.primary),
  #tripDayCenter .tdc-actions > :is(a,button):not(.primary),
  #customerApp .tab-panel :is(form,.panel) > button:not(.primary):not(.danger), #checkoutApp .promo-entry button) {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--creek-ui-line) !important;
  border-radius: 999px !important;
  background: var(--creek-ui-soft);
  color: var(--creek-ui-ink);
  font: 600 14px/1.5 'DM Sans', Arial, sans-serif;
  text-decoration: none;
  box-shadow: none;
}
html body #checkoutApp .summary-edit-trip { display: inline-flex; align-items: center; }

/* My rentals: trip summaries, check-in actions and forms share the public design. */
html body :is(#currentTrip .current-trip, #customerApp .trip-card, #tripDayCenter .tdc-shell,
  #customerApp .empty, #currentTrip .empty, #tripDayCenter .tdc-empty) {
  border: 1px solid var(--creek-ui-line) !important;
  border-radius: 24px !important;
  background: #fff;
  box-shadow: none !important;
}
html body #currentTrip .current-trip-main { background: #fff; }
html body #currentTrip .current-trip-finance { background: var(--creek-ui-soft); color: var(--creek-ui-ink); }
html body #currentTrip .current-trip-finance .extras-quick :is(strong,b) { color: var(--creek-ui-ink); }
html body #currentTrip .current-trip-finance .extras-quick span { color: var(--creek-ui-muted); }
html body #customerApp .trip-card > .current-trip-actions { padding: 16px 16px 0; }
html body :is(#currentTrip,#customerApp) .current-trip-actions > :is(a,button) { display: inline-flex; align-items: center; justify-content: center; }
html body #customerApp .trip-summary { border-radius: 24px 24px 0 0; background: var(--creek-ui-soft); }
html body #customerApp .trip-tabs { margin: 16px; }
html body :is(#customerApp .panel, #tripDayCenter .tdc-task, #tripDayCenter .tdc-countdown,
  #tripDayCenter .tdc-access, #currentTrip .next-required-action) { border-radius: 18px !important; }
html body #tripsSection .reservation-lookup {
  border: 0 !important;
  border-radius: 24px;
  background: var(--creek-ui-panel);
}
html body #tripsSection .reservation-lookup-controls { gap: 10px; }
html body :is(#tripsSection,#currentTrip) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]) {
  border-radius: 16px !important;
  background-color: #fff;
  box-shadow: none;
}
html body #tripDayCenter .tdc-actions > :disabled {
  background: #eef1f3 !important;
  color: #8a959e !important;
  cursor: not-allowed;
}
html body #locationsSection {
  border: 0;
  border-radius: 28px;
  background: var(--creek-ui-soft);
}
html body #locationsSection .customer-location-card {
  border: 1px solid var(--creek-ui-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  transform: none;
}
html body #locationsSection .customer-location-guide { border-radius: 20px; overflow: hidden; }

/* Keyboard focus is visible without restoring the old heavy field shadows. */
html body :is(#quickRequest,#vehiclePage .book-panel,#checkoutApp,#locations,#tripsSection,#currentTrip,#tripDayCenter)
  :is(button,a,input,select,textarea):focus-visible {
  outline: 2px solid #737d8d;
  outline-offset: 3px;
  box-shadow: none;
}
html body #checkoutApp [aria-invalid=true] { border-color: #b42318 !important; }

@media (max-width: 760px) {
  html body #fleet .restored-card-body { padding: 18px; }
  html body #fleet .restored-card-top { padding: 18px 18px 0; }
  html body #fleet .restored-price > button { width: 100%; min-height: 48px; }
  html body #quickRequest, html body #locations .location-finder { padding: 20px; }
  html body #vehiclePage .book-panel { padding: 20px 16px; }
  html body #checkoutApp .checkout-grid { gap: 18px; }
  html body #checkoutApp .checkout-main > .checkout-section { padding: 20px 16px !important; }
  html body #checkoutApp .checkout-summary .summary-content { padding: 20px 16px; }
  html body #tripsSection .reservation-lookup-controls { height: auto !important; }
  html body #locations .location-directory-tabs { width: 100%; }
  html body #locations .location-directory-tabs button { padding: 10px 12px !important; font-size: 13px !important; }
}

@media (max-width: 360px) {
  html body #vehiclePage .book-panel .booking-date-time { grid-template-columns: minmax(0,1fr) 94px; padding-inline: 10px; gap: 6px; }
  html body #vehiclePage .book-panel .booking-date-time :is(select,.creek-trip-date-trigger) { font-size: 13px !important; }
  html body #tripsSection .reservation-lookup-controls { flex-wrap: wrap; }
  html body #tripsSection #reservationLookupButton { width: 100%; }
}
