.phone-control {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--control-line);
  border-radius: var(--control-radius);
  background: var(--raised);
}
.phone-control:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.phone-control #country {
  flex: 0 0 86px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 9px 0 0 9px;
  background: var(--soft);
  color: var(--text);
  margin: 0;
  padding: 8px;
  min-height: 48px;
  font-size: 14px;
}
.phone-control #credential {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  border-radius: 0 9px 9px 0;
  margin: 0;
  padding: 12px;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  outline: none;
}
#country-help {
  margin: 8px 0 20px;
}
#phone-error[hidden] {
  display: none;
}
.consent {
  margin-bottom: 20px;
}
#country-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 48px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
#country-dialog::backdrop {
  background: #10271f88;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 26px;
}
#close-picker {
  width: 44px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: var(--raised);
  color: var(--text);
  font-size: 24px;
}
#country-dialog label {
  display: block;
  margin-bottom: 8px;
}
#country-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: var(--raised);
  color: var(--text);
  font-size: 16px;
}
#country-options {
  max-height: 340px;
  overflow: auto;
  margin: 0 -8px;
}
.country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  text-align: left;
  padding: 12px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 10px;
}
.country-option:hover,
.country-option[aria-pressed="true"] {
  background: var(--soft);
}
.country-option small {
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 600px) {
  #country-dialog {
    padding: 20px;
  }
  #country-options {
    max-height: 42dvh;
  }
}
.phone-control [hidden] {
  display: none !important;
}
.phone-control #credential {
  border-radius: 9px;
}
