/* Wspólny wybór kraju dla własnych formularzy. */
.sadurscy-phone-control {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #e1e3e7;
  border-radius: var(--phone-radius, 12px);
  background: #fff;
  box-shadow: var(--phone-shadow, none);
}
.sadurscy-phone-control:focus-within { border-color: #ce4651; box-shadow: 0 0 0 2px rgb(206 70 81 / 12%); }
.sadurscy-phone-control:has([aria-invalid="true"]) { border-color: #b42332; box-shadow: 0 0 0 1px rgb(180 35 50 / 16%); }
.sadurscy-phone-control > input:not([type="hidden"]) {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  margin: 0;
  padding-inline: 12px !important;
  border: 0 !important;
  border-radius: 0 var(--phone-radius, 12px) var(--phone-radius, 12px) 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}
.sadurscy-phone-control__country {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 142px;
  min-width: 100px;
  min-height: 46px;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-right: 1px solid #e1e3e7;
  border-radius: var(--phone-radius, 12px) 0 0 var(--phone-radius, 12px);
  background: #f7f7f8;
  color: #24262c;
  font: 500 12px/1.4 Poppins, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.sadurscy-phone-control__country:hover { background: #efeff1; }
.sadurscy-phone-control__country:focus-visible { outline: 2px solid #ce4651; outline-offset: -3px; }
.sadurscy-phone-control__country:disabled { cursor: default; opacity: 0.65; }
.sadurscy-phone-control__country-name { min-width: 0; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sadurscy-phone-control__prefix { white-space: nowrap; }
.sadurscy-phone-input-group > .input-group-text { display: none; }
.input-group > .sadurscy-phone-control { flex: 1; width: 1%; }
.sadurscy-phone-country {
  position: fixed;
  inset: auto;
  z-index: 2147483645;
  display: flex;
  flex-direction: column;
  width: 320px;
  max-width: calc(100% - 24px);
  max-height: 360px;
  margin: 0;
  padding: 0;
  border: 1px solid #dfe1e5;
  border-radius: 12px;
  background: #fff;
  color: #24262c;
  box-shadow: 0 12px 36px rgb(0 0 0 / 18%);
  font: 400 13px/1.5 Poppins, Arial, sans-serif;
  text-align: left;
  box-sizing: border-box;
}
.sadurscy-phone-country[hidden] { display: none !important; }
.sadurscy-phone-country__header { display: flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid #e8e9eb; }
.sadurscy-phone-country input.sadurscy-phone-country__search {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 44px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid #dfe1e5;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: #24262c;
  font: inherit;
}
.sadurscy-phone-country__search:focus { outline: 2px solid #ce4651; outline-offset: -1px; }
.sadurscy-phone-country__close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 7px; background: transparent; color: #575c65; font-size: 24px; cursor: pointer; }
.sadurscy-phone-country__close:hover { background: #f2f3f5; }
.sadurscy-phone-country__close:focus-visible { outline: 2px solid #ce4651; }
.sadurscy-phone-country__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
.sadurscy-phone-country__option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #24262c; font: inherit; text-align: left; cursor: pointer; }
.sadurscy-phone-country__option[aria-selected="true"] { font-weight: 600; }
.sadurscy-phone-country__option:hover,
.sadurscy-phone-country__option.is-active { background: #f9edef; color: #9d2933; }
.sadurscy-phone-country__option-prefix { flex-shrink: 0; color: #666c76; }
.sadurscy-phone-country__empty { margin: 0; padding: 16px; color: #666c76; }
.sadurscy-phone-country__empty[hidden] { display: none; }
.sadurscy-phone-country__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 575.98px) {
  .sadurscy-phone-control__country { max-width: 128px; min-width: 96px; gap: 4px; padding-inline: 8px; }
  .sadurscy-phone-control__country-name { max-width: 56px; }
  .sadurscy-phone-control > input:not([type="hidden"]) { padding-inline: 10px !important; }
}
