/* Light mode defaults */
.iti {
	--iti-country-selector-bg: var(--bs-dropdown-bg, #ffffff);
	--iti-border-color: var(--bs-border-color, #dbdfe9);
	--iti-hover-color: var(--bs-dropdown-link-hover-bg, #f9f9f9);
	--iti-icon-color: #78829D;
	width: 100% !important;
}
.iti__country-selector {
	background-color: var(--bs-dropdown-bg, #ffffff) !important;
	border: 1px solid var(--bs-border-color, #dbdfe9) !important;
	box-shadow: var(--bs-dropdown-box-shadow) !important;
}
.iti__country-list {
	background-color: var(--bs-dropdown-bg, #ffffff) !important;
}
.iti__search-input-wrapper {
	border-bottom: 1px solid var(--bs-border-color, #dbdfe9) !important;
}
.iti__search-input {
	background-color: var(--bs-dropdown-bg, #ffffff) !important;
	color: var(--bs-body-color, #071437) !important;
}
.iti__country {
	color: var(--bs-body-color, #071437) !important;
}
.iti__country.iti__highlight {
	background-color: var(--bs-dropdown-link-hover-bg, #f9f9f9) !important;
	color: var(--bs-dropdown-link-hover-color, #1b84ff) !important;
}
.iti__divider {
	border-bottom: 1px solid var(--bs-border-color, #dbdfe9) !important;
}
.iti__dial-code {
	color: var(--bs-text-muted, #78829d) !important;
}
.iti__no-results {
	color: var(--bs-text-muted, #78829d) !important;
	background-color: var(--bs-dropdown-bg, #ffffff) !important;
}

/* Dark mode overrides */
html[data-bs-theme="dark"] .iti,
[data-bs-theme="dark"] .iti,
html[data-theme="dark"] .iti,
[data-theme="dark"] .iti {
	--iti-country-selector-bg: #1e1e2d;
	--iti-border-color: #2b2b40;
	--iti-hover-color: #212130;
	--iti-icon-color: #99a1b7;
}
html[data-bs-theme="dark"] .iti__country-selector,
[data-bs-theme="dark"] .iti__country-selector,
html[data-theme="dark"] .iti__country-selector,
[data-theme="dark"] .iti__country-selector {
	background-color: #1e1e2d !important;
	border: 1px solid #2b2b40 !important;
}
html[data-bs-theme="dark"] .iti__country-list,
[data-bs-theme="dark"] .iti__country-list,
html[data-theme="dark"] .iti__country-list,
[data-theme="dark"] .iti__country-list {
	background-color: #1e1e2d !important;
}
html[data-bs-theme="dark"] .iti__search-input-wrapper,
[data-bs-theme="dark"] .iti__search-input-wrapper,
html[data-theme="dark"] .iti__search-input-wrapper,
[data-theme="dark"] .iti__search-input-wrapper {
	border-bottom: 1px solid #2b2b40 !important;
}
html[data-bs-theme="dark"] .iti__search-input,
[data-bs-theme="dark"] .iti__search-input,
html[data-theme="dark"] .iti__search-input,
[data-theme="dark"] .iti__search-input {
	background-color: #15171c !important;
	color: #f5f5f5 !important;
}
html[data-bs-theme="dark"] .iti__country,
[data-bs-theme="dark"] .iti__country,
html[data-theme="dark"] .iti__country,
[data-theme="dark"] .iti__country {
	color: #f5f5f5 !important;
}
html[data-bs-theme="dark"] .iti__country.iti__highlight,
[data-bs-theme="dark"] .iti__country.iti__highlight,
html[data-theme="dark"] .iti__country.iti__highlight,
[data-theme="dark"] .iti__country.iti__highlight {
	background-color: #2b2b40 !important;
	color: #1b84ff !important;
}
html[data-bs-theme="dark"] .iti__divider,
[data-bs-theme="dark"] .iti__divider,
html[data-theme="dark"] .iti__divider,
[data-theme="dark"] .iti__divider {
	border-bottom: 1px solid #2b2b40 !important;
}
html[data-bs-theme="dark"] .iti__dial-code,
[data-bs-theme="dark"] .iti__dial-code,
html[data-theme="dark"] .iti__dial-code,
[data-theme="dark"] .iti__dial-code {
	color: #99a1b7 !important;
}
html[data-bs-theme="dark"] .iti__no-results,
[data-bs-theme="dark"] .iti__no-results,
html[data-theme="dark"] .iti__no-results,
[data-theme="dark"] .iti__no-results {
	color: #99a1b7 !important;
	background-color: #1e1e2d !important;
}
