body.woocommerce-checkout .iti { width: 100%; }

/* Input base */
body.woocommerce-checkout .iti input#billing_phone{
  width: 100%;
  height: 48px;
  min-height: 48px;
  line-height: 48px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-size: 15px;
  letter-spacing: .1px;
  padding-right: 14px !important;
  padding-left: var(--wcp-iti-padding, 70px) !important;
  text-align: left !important;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: 0 1px 0 rgba(17,24,39,.02);
}

body.woocommerce-checkout #billing_phone::placeholder{ opacity: .68; }

body.woocommerce-checkout .iti input#billing_phone:hover{
  border-color: #d1d5db;
}

/* Focus state = Primary */
body.woocommerce-checkout .iti input#billing_phone:focus{
  outline: none !important;
  border-color: rgba(var(--wcp-primary-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--wcp-primary-rgb), .16);
  background: #fff;
}

/* Error (keep red) */
body.woocommerce-checkout .woocommerce-invalid .iti input#billing_phone,
body.woocommerce-checkout .woocommerce-invalid #billing_phone{
  border-color: rgba(239,68,68,.55) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.12) !important;
}

/* Valid = Primary */
body.woocommerce-checkout .woocommerce-validated .iti input#billing_phone{
  border-color: rgba(var(--wcp-primary-rgb), .40);
}

/* Flag button area */
body.woocommerce-checkout .iti .iti__selected-flag{
  height: 48px;
  border-radius: 12px;
  margin-left: 6px;
  padding: 0 10px !important;
  background: transparent;
  transition: background-color .15s ease, box-shadow .15s ease;
}

/* Flag hover = Primary tint */
body.woocommerce-checkout .iti .iti__selected-flag:hover{
  background: rgba(var(--wcp-primary-rgb), .08);
}

/* Dropdown menu */
body.woocommerce-checkout .iti__country-list{
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.16) !important;
  padding: 8px !important;
  margin-top: 8px !important;
  max-height: 320px !important;
  overscroll-behavior: contain;
}

/* Country rows */
body.woocommerce-checkout .iti__country{
  border-radius: 10px !important;
  padding: 10px 12px !important;
  transition: background-color .12s ease, box-shadow .12s ease;
}

body.woocommerce-checkout .iti__country-name,
body.woocommerce-checkout .iti__dial-code{
  color: #000000 !important;
}

/* Highlight = Primary tint */
body.woocommerce-checkout .iti__country.iti__highlight,
body.woocommerce-checkout .iti__country:hover{
  background: rgba(var(--wcp-primary-rgb), .10) !important;
}

/* Divider */
body.woocommerce-checkout .iti__divider{
  border-bottom: 1px solid #e5e7eb !important;
  margin: 8px 0 !important;
}

/* Search input */
body.woocommerce-checkout .iti__search-input{
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  height: 42px !important;
  outline: none !important;
}

/* Search focus = Primary */
body.woocommerce-checkout .iti__search-input:focus{
  border-color: rgba(var(--wcp-primary-rgb), .55) !important;
  box-shadow: 0 0 0 4px rgba(var(--wcp-primary-rgb), .14) !important;
}

body.woocommerce-checkout .wcp-hidden{ display:none !important; }

@media (max-width: 480px){
  body.woocommerce-checkout .iti input#billing_phone{
    height: 46px;
    min-height: 46px;
    border-radius: 13px;
    font-size: 15px;
  }
  body.woocommerce-checkout .iti .iti__selected-flag{
    height: 46px;
  }
}
