/* Fluent Cart checkout + konto + intl-tel-input */
.fe-fb-checkout-phone .iti {
	width: 100%;
	display: block;
	position: relative;
	z-index: 1;
}

.fe-fb-checkout-phone .iti__tel-input,
.fe-fb-checkout-phone input[type="tel"],
.fe-fb-checkout-phone input[type="text"] {
	width: 100%;
	box-sizing: border-box;
}

/* Flaga + kierunkowy (+49) — Element Plus / FC nadpisują padding z ITI */
.fe-fb-checkout-phone .iti--separate-dial-code .iti__tel-input,
.fe-fb-checkout-phone .iti--separate-dial-code input.iti__tel-input[type="tel"],
.fe-fb-checkout-phone .iti--separate-dial-code input.iti__tel-input[type="text"] {
	padding-left: 7.75rem !important;
}

.fe-fb-checkout-phone .iti--allow-dropdown:not(.iti--separate-dial-code) .iti__tel-input {
	padding-left: 3.25rem !important;
}

.fe-fb-checkout-phone .iti--separate-dial-code .iti__selected-country {
	border-radius: 4px 0 0 4px;
}

.fe-fb-checkout-phone .iti__country-container,
.fe-fb-checkout-phone .iti__selected-country,
.fe-fb-checkout-phone .iti__selected-country-primary {
	pointer-events: auto;
}

.fe-fb-checkout-phone .iti__dropdown-content {
	z-index: 2;
	max-height: 240px;
}

#billing_phone_wrapper.fe-fb-checkout-phone,
#shipping_phone_wrapper.fe-fb-checkout-phone {
	position: relative;
}

/* Dropdown przeniesiony do modala / body — musi być nad overlay Element Plus i FC */
.iti--container {
	z-index: 100000 !important;
}

.iti--fullscreen-popup.iti--container {
	z-index: 100000 !important;
}

[data-fluent-cart-checkout-page-form-address-modal-body] .fe-fb-checkout-phone .iti__dropdown-content,
.fct_add_new_address_form .fe-fb-checkout-phone .iti__dropdown-content,
.fct_address_modal .fe-fb-checkout-phone .iti__dropdown-content {
	z-index: 100001;
}

.fluent-cart-customer-profile-app .fe-fb-checkout-phone .iti,
.fct-customer-root-container .fe-fb-checkout-phone .iti {
	width: 100%;
}

.fluent-cart-customer-profile-app .fe-fb-checkout-phone .iti__dropdown-content,
.fct-customer-root-container .fe-fb-checkout-phone .iti__dropdown-content {
	z-index: 100001;
}

body > .fct_address_modal.show .fe-fb-checkout-phone .iti__dropdown-content,
body > [data-fluent-cart-checkout-page-form-address-modal-body].show .fe-fb-checkout-phone .iti__dropdown-content {
	z-index: 100002;
}

body > .fct_address_modal.show .fct_address_modal_body,
body > [data-fluent-cart-checkout-page-form-address-modal-body].show .fct_address_modal_body,
body > .fct_address_modal.show .fct_add_new_address_form,
body > [data-fluent-cart-checkout-page-form-address-modal-body].show .fct_add_new_address_form {
	overflow: visible;
}

body > .fct_address_modal.show .fct_address_modal_inner,
body > [data-fluent-cart-checkout-page-form-address-modal-body].show .fct_address_modal_inner {
	overflow: visible;
}

.fct_address_modal_body,
.fct_add_new_address_form,
.fluent-cart-customer-profile-app .el-dialog__body,
.fct-customer-root-container .el-dialog__body {
	overflow: visible;
}

/* Element Plus: nie blokuj kliknięcia w flagę ITI */
.fluent-cart-customer-profile-app .fe-fb-checkout-phone .el-input__wrapper,
.fct-customer-root-container .fe-fb-checkout-phone .el-input__wrapper {
	overflow: visible;
}

.fluent-cart-customer-profile-app .fe-fb-checkout-phone .iti__country-container,
.fct-customer-root-container .fe-fb-checkout-phone .iti__country-container {
	z-index: 2;
}
