/* Shared telephone controls. The country menu is an overlay in its form's DOM. */
.services-phone.fk-phone-control {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.services-phone > .services-phone__country {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 45%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c8d5ce;
  border-radius: 6px;
  background: #fff;
  color: #14231f;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.services-phone > .services-phone__country:hover {
  border-color: #15533f;
  background: #f4f8f5;
  color: #0f3d2e;
}

.services-phone .services-phone__selected-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.services-phone :is(.services-phone__iso, .services-phone__code, .services-phone__chevron) {
  flex: none;
  white-space: nowrap;
}

.services-phone .services-phone__iso {
  font-size: 11px;
  font-weight: 700;
  color: #65746f;
}

.services-phone .services-phone__code {
  font-weight: 600;
}

.services-phone .services-phone__chevron {
  color: #65746f;
}

.services-phone > input[name="phone"] {
  flex: 1 1 55%;
  width: 0;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c8d5ce;
  border-radius: 6px;
  background: #fff;
  color: #14231f;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.services-phone .services-phone__picker.fk-phone-popover {
  position: fixed;
  inset: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: none;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  max-width: calc(100vw - 20px);
  max-height: 320px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #bbcfc3;
  border-radius: 8px;
  background: #fff;
  color: #14231f;
  box-shadow: 0 12px 32px rgb(7 31 24 / 18%);
}

.services-phone .services-phone__picker.fk-phone-popover[hidden] {
  display: none;
}

.services-phone .fk-phone-popover::backdrop {
  background: transparent;
  pointer-events: none;
}

.services-phone .fk-phone-popover > label {
  flex: none;
  margin: 0 0 7px;
  color: #52615c;
  font-size: 13px;
  line-height: 1.4;
}

.services-phone .fk-phone-popover > input[data-phone-search] {
  flex: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0 0 8px;
  padding: 9px 11px;
  border: 1px solid #c8d5ce;
  border-radius: 6px;
  background: #fff;
  color: #14231f;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.services-phone .fk-phone-popover > .services-phone__options {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  list-style: none;
}

.services-phone .fk-phone-popover .services-phone__option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #14231f;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.services-phone .fk-phone-popover .services-phone__option-name {
  flex: 1 1 auto;
  min-width: 0;
}

.services-phone .fk-phone-popover .services-phone__option-code {
  flex: none;
  color: #15533f;
  font-weight: 600;
  white-space: nowrap;
}

.services-phone .fk-phone-popover .services-phone__empty {
  padding: 12px 10px;
  color: #65746f;
  font-size: 14px;
  line-height: 1.5;
}

.services-phone .fk-phone-popover .services-phone__option:is(:hover, [aria-selected="true"]) {
  background: #edf5ef;
  color: #0f3d2e;
}

.services-phone :is(button, input):focus-visible {
  outline: 2px solid #15533f;
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .services-phone > .services-phone__country {
    flex-basis: 43%;
    gap: 5px;
    padding-inline: 8px;
  }
  .services-phone .services-phone__iso {
    display: none;
  }
  .services-phone .services-phone__selected-name {
    display: block;
    font-size: 12px;
  }
}
