/**
 * Lamilka 0.6.50 — checkout reliability and responsive control contracts.
 *
 * This layer intentionally loads after the historical parity styles. It owns
 * only shared phone geometry, legal consent, gateway state presentation and
 * the actionable unavailable-hotel state.
 */

/* One integrated country-code and subscriber-number control. */
body .lamilka-phone-field,
body .lamilka-detail__booking .lamilka-phone-field,
body .lamilka-transfer__booking .lamilka-phone-field,
body .lamilka-private__contact .lamilka-phone-field,
body .lamilka-contact .lamilka-phone-field,
body .lamilka-service .lamilka-phone-field {
  align-items: stretch !important;
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  height: var(--lamilka-control-height, var(--lamilka-booking-control-height, 44px)) !important;
  min-height: var(--lamilka-control-height, var(--lamilka-booking-control-height, 44px)) !important;
  min-width: 0 !important;
  overflow: visible !important;
  width: 100% !important;
}

body .lamilka-phone-field > button.lamilka-phone-field__country {
  align-items: center !important;
  align-self: stretch !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 11px 0 0 11px !important;
  border-right: 1px solid #dbe3ea !important;
  bottom: auto !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: grid !important;
  flex: none !important;
  grid-template-columns: 20px minmax(0, 1fr) 16px !important;
  height: 100% !important;
  left: auto !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 10px !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
}

body .lamilka-detail__booking .lamilka-phone-field > input.lamilka-phone-field__input[type="tel"]:not(#iyzipay-checkout-form input):not(.lmp-iyzico-checkout-frame__content input),
body .lamilka-transfer__booking .lamilka-phone-field > input.lamilka-phone-field__input[type="tel"]:not(#iyzipay-checkout-form input):not(.lmp-iyzico-checkout-frame__content input),
body .lamilka-phone-field > input.lamilka-phone-field__input[type="tel"] {
  align-self: stretch !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 11px 11px 0 !important;
  bottom: auto !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: block !important;
  flex: none !important;
  height: 100% !important;
  left: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  outline: 0 !important;
  padding: 0 14px !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
}

/* Hotel locations are supporting copy, not a second title. */
body .lamilka-hotel-field__option[data-availability] > small,
body .lamilka-transfer__hotel-option[data-availability] > small {
  font-size: 10px !important;
  letter-spacing: .05em !important;
  line-height: 1.25 !important;
}

/* Give every mobile date cell a dependable tap surface. */
.lamilka-date-field__calendar-day {
  min-height: 36px;
  touch-action: manipulation;
}

/* The checkbox is a fixed first column; only the legal copy may wrap. */
body .lamilka-booking-consent,
body .lamilka-detail__secure-payment > label.lamilka-booking-consent,
body .lamilka-transfer__gateway-mount > label.lamilka-booking-consent {
  align-items: start !important;
  color: #334155 !important;
  display: grid !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  gap: 0 10px !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  line-height: 1.45 !important;
  margin: 16px 0 0 !important;
  text-align: left !important;
  width: 100% !important;
}

body .lamilka-booking-consent > input[type="checkbox"][data-lamilka-legal-consent] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  align-self: start !important;
  box-sizing: border-box !important;
  display: block !important;
  grid-column: 1 !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  max-height: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  min-width: 18px !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  width: 18px !important;
}

body .lamilka-booking-consent > span {
  display: inline !important;
  grid-column: 2 !important;
  margin: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body .lamilka-booking-consent a {
  display: inline !important;
  white-space: normal !important;
}

/* Never present a provider-owned canvas as an unexplained empty card. */
[data-lamilka-hosted-checkout][data-lamilka-provider-loading="true"] {
  max-height: 1px !important;
  min-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

[data-lamilka-hosted-checkout][data-lamilka-provider-loading="false"] {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

[data-lamilka-secure-state="embedded-loading"] [data-lamilka-secure-unavailable] {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569 !important;
  display: block !important;
  line-height: 1.45;
  margin-top: 14px !important;
  padding: 12px 14px;
  text-align: center;
}

/* An unavailable region is an actionable warning, not a dead button. */
body .lamilka-detail__booking [data-booking-next="2"].is-region-blocked {
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 767px) {
  body .lamilka-phone-field,
  body .lamilka-detail__booking .lamilka-phone-field,
  body .lamilka-transfer__booking .lamilka-phone-field,
  body .lamilka-private__contact .lamilka-phone-field,
  body .lamilka-contact .lamilka-phone-field,
  body .lamilka-service .lamilka-phone-field {
    grid-template-columns: 98px minmax(0, 1fr) !important;
  }

  body .lamilka-phone-field > button.lamilka-phone-field__country {
    grid-template-columns: 20px minmax(0, 1fr) 14px !important;
    padding: 0 8px !important;
  }

  body .lamilka-detail__booking .lamilka-phone-field > input.lamilka-phone-field__input[type="tel"]:not(#iyzipay-checkout-form input):not(.lmp-iyzico-checkout-frame__content input),
  body .lamilka-transfer__booking .lamilka-phone-field > input.lamilka-phone-field__input[type="tel"]:not(#iyzipay-checkout-form input):not(.lmp-iyzico-checkout-frame__content input),
  body .lamilka-phone-field > input.lamilka-phone-field__input[type="tel"] {
    font-size: 16px !important;
    padding: 0 12px !important;
  }

  .lamilka-home-trust-panel__mobile-break {
    display: block !important;
  }

  .lamilka-home-trust-panel__closing {
    font-size: clamp(10px, 3.3vw, 15px) !important;
    letter-spacing: -.01em !important;
    white-space: nowrap !important;
  }
}
