/* Ambiguous international calling-code chooser for Accommodation booking forms. */
.pxab-phone-country-choice-modal {
  position: fixed;
  inset: 0;
  z-index: var(--pxab-z-modal, 100000);
  display: grid;
  place-items: center;
  padding: 20px;
}

.pxab-phone-country-choice-modal[hidden] {
  display: none !important;
}

.pxab-phone-country-choice-modal__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, .64);
  backdrop-filter: blur(3px);
  cursor: default;
}

.pxab-phone-country-choice-modal__panel {
  position: relative;
  width: min(590px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid #fbcfe8;
  border-color: color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 25%, #e2e8f0);
  border-radius: 22px;
  background: #fff;
  color: var(--pxab-single-text, #111827);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .36);
}

.pxab-phone-country-choice-modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #475569 !important;
  padding: 0 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12) !important;
}

.pxab-phone-country-choice-modal__close:hover,
.pxab-phone-country-choice-modal__close:focus-visible {
  background: #f8fafc !important;
  color: #0f172a !important;
  outline: 3px solid rgba(15, 23, 42, .12) !important;
  outline-offset: 2px;
}

.pxab-phone-country-choice-modal__close .pxab-icon {
  width: 18px;
  height: 18px;
}

.pxab-phone-country-choice-modal__header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 24px 62px 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff7f9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 9%, #fff), #fff 74%);
}

.pxab-phone-country-choice-modal__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--pxab-single-reserve-bg, #e11d48);
  color: #fff;
  box-shadow: 0 10px 28px rgba(225, 29, 72, .22);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 24%, transparent);
}

.pxab-phone-country-choice-modal__icon .pxab-icon {
  width: 25px;
  height: 25px;
}

.pxab-phone-country-choice-modal__copy {
  min-width: 0;
}

.pxab-phone-country-choice-modal__eyebrow {
  margin: 0 0 4px;
  color: var(--pxab-single-reserve-bg, #e11d48);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pxab-phone-country-choice-modal h2 {
  margin: 0 0 7px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
}

.pxab-phone-country-choice-modal__copy > p:last-child {
  margin: 0;
  color: var(--pxab-single-muted, #475569);
  line-height: 1.55;
}

.pxab-phone-country-choice-modal__choices {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 20px 24px 8px;
}

.pxab-phone-country-choice-modal__choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.pxab-phone-country-choice-modal__choice:hover {
  border-color: color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 45%, #dbe3ed);
  background: #f8fafc;
}

.pxab-phone-country-choice-modal__choice:has(input:checked) {
  border-color: var(--pxab-single-reserve-bg, #e11d48);
  background: color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 6%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 13%, transparent);
}

.pxab-phone-country-choice-modal__choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--pxab-single-reserve-bg, #e11d48);
}

.pxab-phone-country-choice-modal__choice input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 24%, transparent);
  outline-offset: 3px;
}

.pxab-phone-country-choice-modal__choice-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pxab-phone-country-choice-modal__choice-body strong {
  color: #0f172a;
  overflow-wrap: anywhere;
}

.pxab-phone-country-choice-modal__choice-body span {
  color: #64748b;
  font-size: .86rem;
  font-weight: 700;
}

.pxab-phone-country-choice-modal__status {
  margin: 8px 24px 0;
  border-radius: 10px;
  background: #fff1f2;
  color: #9f1239;
  padding: 9px 11px;
  font-weight: 750;
}

.pxab-phone-country-choice-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
}

.pxab-phone-country-choice-modal__actions .pxab-button--ghost {
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  color: #334155 !important;
}

.pxab-phone-country-choice-modal__actions .pxab-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 560px) {
  .pxab-phone-country-choice-modal {
    padding: 12px;
  }
  .pxab-phone-country-choice-modal__panel {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
  }
  .pxab-phone-country-choice-modal__header {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 54px 17px 18px;
  }
  .pxab-phone-country-choice-modal__icon {
    width: 46px;
    height: 46px;
  }
  .pxab-phone-country-choice-modal__choices {
    padding: 16px 18px 6px;
  }
  .pxab-phone-country-choice-modal__actions {
    flex-direction: column-reverse;
    padding: 16px 18px 20px;
  }
  .pxab-phone-country-choice-modal__actions .pxab-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pxab-phone-country-choice-modal,
  .pxab-phone-country-choice-modal__panel,
  .pxab-phone-country-choice-modal__choice {
    animation: none !important;
    transition: none !important;
  }
}

.pxab-phone-country-choice-modal__update-country {
  margin: 10px 24px 0;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px 14px;
}
.pxab-phone-country-choice-modal__update-country label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #0f172a;
  font-weight: 750;
  cursor: pointer;
}
.pxab-phone-country-choice-modal__update-country input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--pxab-single-reserve-bg, #e11d48);
}
.pxab-phone-country-choice-modal__update-country input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pxab-single-reserve-bg, #e11d48) 24%, transparent);
  outline-offset: 3px;
}
.pxab-phone-country-choice-modal__update-country p {
  margin: 6px 0 0 28px;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.45;
}
@media (max-width: 560px) {
  .pxab-phone-country-choice-modal__update-country { margin-inline: 18px; }
}
