/* phone-input.css: ported 1:1 from foodforjoe.es CSS modules (hash suffixes removed). */

/* ── PhoneInput ── */
.PhoneInput_phoneInputWrapper {
  position:relative;
}

.PhoneInput_phoneInputContainer {
  min-height:44px;
  padding:0;
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
}

.PhoneInput_phoneInputContainerUnderlined {
  border:none!important;
  border-bottom:2px solid var(--color-green)!important;
  border-radius:0!important;
  height:47px!important;
  background:transparent;
  gap:0;
}

.PhoneInput_phoneInputContainerUnderlined.PhoneInput_phoneInputContainerError {
  border:none!important;
  border-bottom:2px solid var(--color-error)!important;
}

.PhoneInput_phoneInputContainerUnderlined:focus-within {
  border:none!important;
  border-bottom:2px solid var(--color-green)!important;
}

.PhoneInput_phoneInputContainerUnderlined.PhoneInput_phoneInputContainerError:focus-within {
  border:none!important;
  border-bottom:2px solid var(--color-error)!important;
}

.PhoneInput_phoneInputContainerUnderlined .PhoneInput_countryButton {
  height:100%;
  background:rgba(0,0,0,.05);
  border:none;
  border-right:1px solid rgba(0,0,0,.1);
  border-radius:0;
  padding:6px 10px;
}

.PhoneInput_countryButton {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  padding:6px 12px;
  height:44px;
  border:1px solid var(--color-dark-beige);
  border-radius:var(--border-radius-input);
  background:var(--color-white);
  cursor:pointer;
  font-size:16px;
  color:var(--color-green);
  font-family:var(--font-family-serif-light);
  white-space:nowrap;
}

.PhoneInput_countryButton:focus-visible {
  outline:none;
  border-color:var(--color-green);
}

.PhoneInput_countryButtonError,
.PhoneInput_countryButtonError:focus-visible {
  border:2px solid var(--input-error-color,var(--color-input-error));
  padding:5px 11px;
}

.PhoneInput_flag {
  display:inline-flex;
  align-items:center;
  width:22px;
  flex-shrink:0;
}

.PhoneInput_flagImg {
  width:100%;
  height:auto;
  display:block;
  border-radius:2px;
}

.PhoneInput_dialCode {
  font-size:16px;
  color:var(--color-green);
  opacity:.8;
}

.PhoneInput_arrow {
  font-size:10px;
  color:var(--color-green);
  opacity:.6;
}

.PhoneInput_caret {
  flex-shrink:0;
  transition:transform .15s ease;
}

.PhoneInput_caretOpen {
  transform:rotate(180deg);
}

.PhoneInput_phoneInput {
  flex:1 1;
  min-width:0;
  height:44px;
  background:var(--color-white);
  color:var(--color-green);
  border:1px solid var(--color-dark-beige);
  border-radius:var(--border-radius-input);
  font-size:16px;
  font-family:var(--font-family-serif-light);
  line-height:21px;
  padding:6px 12px;
  outline:none;
}

.PhoneInput_phoneInput:focus {
  border-color:var(--color-green);
}

.PhoneInput_phoneInput::placeholder {
  color:var(--color-green);
  opacity:.8;
}

.PhoneInput_phoneInputError,
.PhoneInput_phoneInputError:focus {
  border:2px solid var(--input-error-color,var(--color-input-error));
  padding:5px 11px;
}

.PhoneInput_phoneInputSuccess,
.PhoneInput_phoneInputSuccess:focus {
  border-color:var(--color-yellow);
  padding-right:44px;
}

.PhoneInput_countryButtonSuccess,
.PhoneInput_countryButtonSuccess:focus-visible {
  border-color:var(--color-yellow);
}

.PhoneInput_countrySuccessIcon {
  flex-shrink:0;
}

.PhoneInput_successIcon {
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
}

.PhoneInput_phoneInputUnderlined {
  height:100%;
  background:transparent;
  border:none;
  border-radius:0 var(--border-radius-input) var(--border-radius-input) 0;
  font-size:24px;
  padding:10px 11px 8px;
}

.PhoneInput_phoneInputUnderlined::placeholder {
  font-size:28px;
  opacity:.45;
}

.PhoneInput_dropdown {
  position:absolute;
  top:100%;
  left:0;
  z-index:100;
  list-style:none;
  margin:2px 0 0;
  padding:4px 0;
  background:var(--color-white,#fff);
  border:1px solid rgba(0,0,0,.1);
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
  max-height:220px;
  overflow-y:auto;
  min-width:240px;
  font-family:var(--font-family-serif-light);
}

.PhoneInput_dropdownItem {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  cursor:pointer;
  font-size:14px;
  color:var(--color-green);
}

.PhoneInput_dropdownItem:hover {
  background:rgba(0,0,0,.04);
}

.PhoneInput_dropdownItemSelected {
  background:rgba(0,0,0,.06);
  font-weight:600;
}

.PhoneInput_countryName {
  flex:1 1;
}

.PhoneInput_dialCodeOption {
  opacity:.6;
  font-size:13px;
}

@media (min-width:960px) {
  .PhoneInput_countryButton,
  .PhoneInput_dialCode,
  .PhoneInput_phoneInput {
    font-size:18px;
  }
}

@media (min-width:960px) {
  .PhoneInput_phoneInput {
    line-height:1.4;
  }
}

@media (min-width:960px) {
  .PhoneInput_phoneInputUnderlined::placeholder {
    font-size:46px;
    opacity:.4;
  }
}

@media (min-width:960px) {
  .PhoneInput_phoneInputContainerUnderlined {
    height:62px!important;
  }
}

@media (min-width:960px) {
  .PhoneInput_phoneInputContainerUnderlined .PhoneInput_phoneInputUnderlined {
    font-size:48px!important;
    padding-bottom:16px!important;
    line-height:1!important;
    margin-bottom:0!important;
  }
}

@media (min-width:960px) {
  .PhoneInput_phoneInputContainerUnderlined .PhoneInput_countryButton {
    font-size:28px;
  }
}
