/* WordPress.org does not allow "@" in file names, so the bundled 2x flag
   sprite is renamed from flags@2x.webp. */
:root {
  --iti-path-flags-2x: url(../img/flags-2x.webp);
}

/* [intelebox_input] shortcode field (.itb-* kept for markup from 1.0.x) */
.intelebox-container,
.itb-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}
.intelebox-container .iti,
.itb-container .iti {
  width: 100%;
}
.intelebox-phone-input,
.itb-phone-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out;
}
.intelebox-phone-input:focus,
.itb-phone-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.intelebox-phone-input.error,
.itb-phone-input.error {
  border-color: #dc3545;
}
.intelebox-phone-input.error:focus,
.itb-phone-input.error:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Keep the country list above theme headers and Elementor popups. */
.iti--detached-country-selector,
.iti .iti__country-selector {
  z-index: 2147483647 !important;
}

/* Keep the field inside narrow containers: the dial code padding is added
   to inputs sized by their size attribute (e.g. Contact Form 7). */
.iti,
.iti input.iti__tel-input {
  max-width: 100%;
}

/* Fix Style forms: the selected country is a <button> since intl-tel-input
   v21, so undo the button styles that themes and form plugins add. */
.iti button.iti__selected-country,
.iti button.iti__selected-country:hover,
.iti button.iti__selected-country:focus {
  width: auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  line-height: inherit;
  text-transform: none;
}
