.requester-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.7rem;
}

.requester-phone > div {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
}

.requester-phone input,
.requester-phone select {
  min-width: 0;
  min-height: 48px;
  font-size: 16px;
}

.requester-phone select[hidden] { display: none; }
.country-picker { container-type: inline-size; min-width: 0; }
.country-picker-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: left;
  box-shadow: none;
}
.country-picker-trigger:hover { border-color: var(--sea); }
.country-picker-current { display: none; }
.country-picker-prefix { white-space: nowrap; }
.country-picker-flag { flex: 0 0 24px; width: 24px; height: 18px; object-fit: contain; }
.country-picker-icon { flex: 0 0 auto; width: 18px; height: 18px; }
.country-picker-trigger > .country-picker-icon { margin-left: auto; }
.country-picker-trigger:focus-visible,
.country-dialog button:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}
@container (min-width: 260px) {
  .country-picker-current {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.country-dialog {
  width: min(480px, calc(100vw - 24px));
  max-width: none;
  height: min(580px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  overscroll-behavior: contain;
}
.country-dialog[open] { display: flex; flex-direction: column; }
.country-dialog::backdrop { background: rgba(6, 47, 73, 0.5); }
.country-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px 20px;
  flex-shrink: 0;
}
.country-dialog-header h2 { margin: 0; font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.country-dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  flex: 0 0 44px;
}
.country-dialog-close:hover { background: var(--foam); }
.country-search { position: relative; margin: 0 16px 12px; flex-shrink: 0; }
.country-search > img { position: absolute; left: 14px; top: 17px; pointer-events: none; }
.country-search input {
  width: 100%;
  height: 52px;
  padding: 12px 12px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.country-search input:focus { outline: 2px solid var(--sea); outline-offset: 1px; }
.country-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.country-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.country-option:hover,
.country-option.is-active { background: var(--foam); }
.country-option[aria-selected="true"] { color: var(--sea); font-weight: 700; }
.country-option-prefix { white-space: nowrap; font-variant-numeric: tabular-nums; }
.country-option-check { visibility: hidden; width: 18px; height: 18px; }
.country-option[aria-selected="true"] .country-option-check { visibility: visible; }
.country-search-status { margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-shrink: 0; }

.stay-mini-form .requester-phone {
  grid-column: 1 / 3;
}

@media (max-width: 760px) {
  .stay-mini-form .requester-phone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .requester-phone {
    grid-template-columns: minmax(0, 1fr);
  }
}
