/* intl-tel-input — premium storefront theme */

.phone-field-wrap,
.profile-premium-input-wrap--phone {
	overflow: visible !important;
}

.premium-form-surface .checkout-rounded-field.phone-field-wrap {
	overflow: visible !important;
	transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.premium-form-surface .checkout-rounded-field.phone-field-wrap:focus-within {
	border-color: color-mix(in srgb, var(--primary-color, #717fe0) 42%, #e5e9f2);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #717fe0) 14%, transparent);
}

.phone-field-wrap .iti,
.profile-premium-input-wrap--phone .iti,
.bor8.phone-field-wrap .iti,
.checkout-rounded-field.phone-field-wrap .iti,
.header-account-field.phone-field-wrap .iti {
	display: block;
	width: 100%;
	min-height: 40px;
}

.phone-field-wrap .iti .iti__tel-input,
.profile-premium-input-wrap--phone .iti .iti__tel-input,
.bor8.phone-field-wrap .iti .iti__tel-input,
.checkout-rounded-field.phone-field-wrap .iti .iti__tel-input,
.header-account-field.phone-field-wrap .iti .iti__tel-input,
.contact-us-field.phone-field-wrap .iti .iti__tel-input,
.profile-premium-input.iti-phone-input,
.iti .iti__tel-input.iti-phone-input {
	width: 100%;
	height: 40px;
	min-height: 40px;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	font-family: var(--main-font, Poppins-Regular, sans-serif) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 40px !important;
	color: #111827 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-right: 15px !important;
	border-radius: 0 12px 12px 0;
	transition: color 0.18s ease;
}

.phone-field-wrap .iti .iti__tel-input::placeholder,
.checkout-rounded-field.phone-field-wrap .iti .iti__tel-input::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.phone-field-wrap .iti .iti__country-container,
.checkout-rounded-field.phone-field-wrap .iti .iti__country-container,
.header-account-field.phone-field-wrap .iti .iti__country-container {
	padding: 0;
	left: 0;
}

.phone-field-wrap .iti .iti__selected-country,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country,
.header-account-field.phone-field-wrap .iti .iti__selected-country {
	position: relative;
	height: 40px;
	padding: 0 0.55rem 0 0.65rem;
	border-radius: 12px 0 0 12px;
	transition: background-color 0.18s ease;
}

.phone-field-wrap .iti .iti__selected-country::after,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country::after,
.header-account-field.phone-field-wrap .iti .iti__selected-country::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 1px;
	height: 22px;
	background: color-mix(in srgb, var(--primary-color, #717fe0) 16%, #e5e9f2);
	pointer-events: none;
}

.phone-field-wrap .iti .iti__selected-country-primary,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country-primary {
	height: 40px;
	padding: 0 0.2rem 0 0;
	border-radius: 8px;
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.phone-field-wrap .iti .iti__selected-dial-code,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-dial-code,
.header-account-field.phone-field-wrap .iti .iti__selected-dial-code,
.profile-premium-input-wrap--phone .iti .iti__selected-dial-code {
	font-family: var(--main-font, Poppins-Regular, sans-serif) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 40px !important;
	color: color-mix(in srgb, var(--primary-ink, var(--primary-color, #717fe0)) 78%, #111827) !important;
	margin-left: 0.35rem;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
	transition: color 0.18s ease;
}

.checkout-rounded-field.phone-field-wrap:focus-within .iti .iti__selected-dial-code,
.phone-field-wrap:focus-within .iti .iti__selected-dial-code {
	color: var(--primary-ink, var(--primary-color, #717fe0)) !important;
}

.phone-field-wrap .iti .iti__arrow,
.checkout-rounded-field.phone-field-wrap .iti .iti__arrow {
	margin-left: 0.4rem;
	border-top-color: color-mix(in srgb, var(--primary-ink, var(--primary-color, #717fe0)) 55%, #64748b);
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.phone-field-wrap .iti .iti__selected-country:hover .iti__selected-country-primary,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country:hover .iti__selected-country-primary,
.phone-field-wrap .iti .iti__selected-country-primary:hover,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country-primary:hover {
	background: color-mix(in srgb, var(--primary-color, #717fe0) 10%, #fff);
}

.phone-field-wrap .iti .iti__selected-country:hover .iti__arrow,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country:hover .iti__arrow,
.phone-field-wrap .iti .iti__selected-country:has(.iti__selected-country-primary[aria-expanded="true"]) .iti__arrow,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country:has(.iti__selected-country-primary[aria-expanded="true"]) .iti__arrow {
	border-top-color: var(--primary-ink, var(--primary-color, #717fe0));
}

.phone-field-wrap .iti .iti__selected-country:has(.iti__selected-country-primary[aria-expanded="true"]) .iti__arrow,
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country:has(.iti__selected-country-primary[aria-expanded="true"]) .iti__arrow {
	transform: rotate(180deg);
}

.phone-field-wrap .iti .iti__selected-country-primary[aria-expanded="true"],
.checkout-rounded-field.phone-field-wrap .iti .iti__selected-country-primary[aria-expanded="true"] {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--primary-color, #717fe0) 14%, #fff) 0%,
		color-mix(in srgb, var(--primary-color, #717fe0) 8%, #fff) 100%
	);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-color, #717fe0) 18%, transparent);
}

/* Dropdown — body overlay */
.iti--container {
	z-index: 1305 !important;
}

.iti--container .iti__dropdown-content,
.iti--inline-dropdown .iti__dropdown-content {
	min-width: 300px;
	max-width: min(380px, calc(100vw - 24px));
	border-radius: 14px;
	border: 1px solid color-mix(in srgb, var(--primary-color, #717fe0) 22%, #e8ecf2);
	box-shadow:
		0 18px 44px rgba(15, 23, 42, 0.14),
		0 0 0 1px color-mix(in srgb, var(--primary-color, #717fe0) 8%, transparent);
	overflow: hidden;
	background: #fff;
}

.iti--container .iti__search-input,
.iti--inline-dropdown .iti__search-input {
	width: 100%;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #717fe0) 12%, #eef0f4);
	border-radius: 0;
	padding: 0.78rem 0.95rem 0.78rem 2.35rem;
	font-family: var(--main-font, Poppins-Regular, sans-serif);
	font-size: 13px;
	line-height: 1.4;
	color: #111827;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")
		0.95rem 50% / 16px 16px no-repeat,
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--primary-color, #717fe0) 6%, #fff) 0%,
			#fff 100%
		);
	transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

.iti--container .iti__search-input:focus,
.iti--inline-dropdown .iti__search-input:focus {
	outline: none;
	box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--primary-color, #717fe0) 55%, transparent);
	background-color: #fff;
}

.iti--container .iti__search-input::placeholder,
.iti--inline-dropdown .iti__search-input::placeholder {
	color: #94a3b8;
}

.iti--container .iti__country-list,
.iti--inline-dropdown .iti__country-list {
	max-height: 240px;
	padding: 0.28rem 0;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--primary-color, #717fe0) 35%, #cbd5e1) transparent;
}

.iti--container .iti__country-list::-webkit-scrollbar,
.iti--inline-dropdown .iti__country-list::-webkit-scrollbar {
	width: 6px;
}

.iti--container .iti__country-list::-webkit-scrollbar-thumb,
.iti--inline-dropdown .iti__country-list::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--primary-color, #717fe0) 38%, #cbd5e1);
	border-radius: 999px;
}

.iti--container .iti__country,
.iti--inline-dropdown .iti__country {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.58rem 0.9rem;
	margin: 0 0.28rem;
	border-radius: 9px;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.iti--container .iti__country:hover,
.iti--inline-dropdown .iti__country:hover {
	background: color-mix(in srgb, var(--primary-color, #717fe0) 11%, #fff);
}

.iti--container .iti__country.iti__highlight,
.iti--inline-dropdown .iti__country.iti__highlight {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--primary-color, #717fe0) 18%, #fff) 0%,
		color-mix(in srgb, var(--primary-color, #717fe0) 10%, #fff) 100%
	);
	box-shadow: inset 3px 0 0 var(--primary-ink, var(--primary-color, #717fe0));
}

.iti--container .iti__country.iti__highlight .iti__country-name,
.iti--inline-dropdown .iti__country.iti__highlight .iti__country-name {
	color: var(--primary-ink, var(--primary-color, #717fe0));
	font-weight: 600;
}

.iti--container .iti__country.iti__highlight .iti__dial-code,
.iti--inline-dropdown .iti__country.iti__highlight .iti__dial-code {
	color: color-mix(in srgb, var(--primary-ink, var(--primary-color, #717fe0)) 72%, #475569);
	font-weight: 600;
}

.iti--container .iti__country-name,
.iti--inline-dropdown .iti__country-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	color: #1e293b;
	margin-right: 0.35rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.16s ease;
}

.iti--container .iti__country:hover .iti__country-name,
.iti--inline-dropdown .iti__country:hover .iti__country-name {
	color: color-mix(in srgb, var(--primary-ink, var(--primary-color, #717fe0)) 82%, #111827);
}

.iti--container .iti__dial-code,
.iti--inline-dropdown .iti__dial-code {
	flex: 0 0 auto;
	font-size: 12px;
	color: #64748b;
	margin-left: auto;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	transition: color 0.16s ease;
}

.iti--container .iti__country:hover .iti__dial-code,
.iti--inline-dropdown .iti__country:hover .iti__dial-code {
	color: color-mix(in srgb, var(--primary-ink, var(--primary-color, #717fe0)) 65%, #64748b);
}

.js-fv-field.fv-has-msg .iti .iti__tel-input,
.js-fv-field .iti .iti__tel-input.fv-invalid {
	color: #111827 !important;
}

@media (max-width: 767.98px) {
	.iti--container .iti__dropdown-content,
	.iti--inline-dropdown .iti__dropdown-content {
		min-width: min(320px, calc(100vw - 20px));
	}

	.iti--container .iti__country,
	.iti--inline-dropdown .iti__country {
		padding: 0.62rem 0.85rem;
	}
}

/* Account drawer — kayıt ol paneli */
.js-panel-account .header-account-field.phone-field-wrap {
	overflow: visible !important;
	margin-bottom: 0 !important;
	border-radius: 12px !important;
	border-color: #e2e8f0 !important;
	background: #fff;
	transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.js-panel-account .header-account-field.phone-field-wrap:focus-within {
	border-color: color-mix(in srgb, var(--primary-color, #717fe0) 45%, #e2e8f0) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #717fe0) 12%, transparent);
}

.js-panel-account .header-account-field.phone-field-wrap.fv-invalid,
.js-panel-account .header-account-field.phone-field-wrap.fv-invalid:focus-within {
	border-color: var(--fv-error, #dc2626) !important;
	box-shadow: 0 0 0 3px var(--fv-error-soft, rgba(220, 38, 38, 0.18)) !important;
	background-color: var(--fv-error-bg, #fff7f7) !important;
}

.js-panel-account .header-account-field.phone-field-wrap .iti {
	min-height: 48px;
	height: 48px;
	width: 100%;
}

.js-panel-account .header-account-field.phone-field-wrap .iti .iti__tel-input,
.js-panel-account .header-account-field.phone-field-wrap .iti .iti__selected-country,
.js-panel-account .header-account-field.phone-field-wrap .iti .iti__selected-country-primary {
	min-height: 48px;
	height: 48px;
}

.js-panel-account .header-account-field.phone-field-wrap .iti .iti__tel-input {
	line-height: 48px !important;
	font-size: 15px !important;
	padding-right: 14px !important;
	border-radius: 0 11px 11px 0;
}

.js-panel-account .header-account-field.phone-field-wrap .iti .iti__selected-dial-code {
	line-height: 48px !important;
	font-size: 15px !important;
}

.js-panel-account .header-account-field.phone-field-wrap .iti .iti__selected-country {
	padding: 0 0.5rem 0 0.75rem;
	border-radius: 11px 0 0 11px;
}

.js-panel-account .header-account-field.phone-field-wrap .iti .iti__selected-country::after {
	height: 24px;
}

.header-account-field.phone-field-wrap .iti,
.header-account-field.phone-field-wrap .iti .iti__tel-input,
.header-account-field.phone-field-wrap .iti .iti__selected-country,
.header-account-field.phone-field-wrap .iti .iti__selected-country-primary {
	min-height: 48px;
	height: 48px;
}

.header-account-field.phone-field-wrap .iti .iti__tel-input,
.header-account-field.phone-field-wrap .iti .iti__selected-dial-code {
	line-height: 48px !important;
	font-size: 15px !important;
}

.header-account-field.phone-field-wrap .iti .iti__selected-country::after {
	height: 24px;
}

/* Profil */
.profile-premium-input-wrap--phone .iti {
	min-height: 48px;
	border: 1.5px solid var(--account-border, #e5e9f2);
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.profile-premium-input-wrap--phone .iti:focus-within {
	border-color: var(--account-ink, var(--account-primary, #717fe0));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--account-ink, var(--account-primary, #717fe0)) 22%, transparent);
}

.profile-premium-input-wrap--phone .iti .iti__tel-input,
.profile-premium-input-wrap--phone .iti .iti__selected-country,
.profile-premium-input-wrap--phone .iti .iti__selected-country-primary {
	min-height: 48px;
	height: 48px;
}

.profile-premium-input-wrap--phone .iti .iti__tel-input,
.profile-premium-input-wrap--phone .iti .iti__selected-dial-code {
	line-height: 48px !important;
	font-size: 0.95rem !important;
	border: 0 !important;
	box-shadow: none !important;
}

.profile-premium-input-wrap--phone .profile-premium-input.iti-phone-input {
	border: 0;
	min-height: 48px;
	padding-left: 0;
}

.profile-premium-input-wrap--phone .iti .iti__selected-country::after {
	height: 24px;
}

.profile-premium-input-wrap--phone .iti .iti__selected-dial-code {
	color: color-mix(in srgb, var(--account-ink, var(--account-primary, #717fe0)) 78%, #111827) !important;
}

.profile-premium-input-wrap--phone .iti:focus-within .iti__selected-dial-code {
	color: var(--account-ink, var(--account-primary, #717fe0)) !important;
}

.profile-premium-input-wrap--phone .iti .iti__selected-country:hover .iti__selected-country-primary,
.profile-premium-input-wrap--phone .iti .iti__selected-country-primary:hover {
	background: color-mix(in srgb, var(--account-ink, var(--account-primary, #717fe0)) 10%, #fff);
}

.profile-premium-input-wrap--phone .iti .iti__selected-country-primary[aria-expanded="true"] {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--account-ink, var(--account-primary, #717fe0)) 14%, #fff) 0%,
		color-mix(in srgb, var(--account-ink, var(--account-primary, #717fe0)) 8%, #fff) 100%
	);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--account-ink, var(--account-primary, #717fe0)) 18%, transparent);
}
