/* (UTF8 á) */

/* Wrapper */
.mdc-phone-input-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

/* Text Field Modifications */
.mdc-phone-input-field {
	position: relative;
}

/* Adjust input padding to accommodate prefix elements */
.mdc-phone-input-field .mdc-text-field__input {
	padding-left: 0 !important;
}

/* Country Trigger (Flag + Chevron) */
.mdc-phone-input__country-trigger {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 0 4px;
	margin: auto 8px auto 0;
	cursor: pointer;
	user-select: none;
	border-right: 1px solid #dadce0;
	transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	height: 24px;
	vertical-align: middle;
}

/* Adjust the countries selector for filled and lined controls */
.mdc-phone-input-field.mdc-text-field--filled .mdc-phone-input__country-trigger {
	margin-bottom: 1px;
}

.mdc-phone-input__country-trigger:hover {
	background-color: rgba(0, 0, 0, 0.04);
	border-radius: 4px 0 0 4px;
}

/* Chevron Icon */
.mdc-phone-input__chevron {
	font-size: 20px;
	color: #5f6368;
	transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
	line-height: 1;
}

.mdc-phone-input__country-trigger[aria-expanded="true"] .mdc-phone-input__chevron {
	transform: rotate(180deg);
}

/* Country Code Prefix */
.mdc-phone-input__code-prefix {
	display: inline-block;
	padding: 0 8px 0 0;
	color: #5f6368;
	font-size: 16px;
	font-family: 'Roboto', sans-serif;
	line-height: 1;
	user-select: none;
	pointer-events: none;
	vertical-align: middle;
}

/* Forced Country Code Mode (gray, non-interactive) */
.mdc-phone-input__country-trigger--forced {
	cursor: default;
	opacity: 0.6;
	pointer-events: none;
	border-right-color: #dadce0;
}

.mdc-phone-input__country-trigger--forced:hover {
	background-color: transparent;
}

.mdc-phone-input__code-prefix--forced {
	color: #80868b;
	opacity: 0.8;
}

/* Adjust label position to account for prefix width with active flag selector*/
.mdc-phone-input-field.mdc-text-field--outlined:not(.mdc-phone-input-field--forced) .mdc-floating-label:not(.mdc-floating-label--float-above) {
	left: 110px; /* Adjust based on flag + code width */
}

/* Adjust label position to account for prefix width when the flag selector is forced */
.mdc-phone-input-field.mdc-text-field--outlined.mdc-phone-input-field--forced .mdc-floating-label:not(.mdc-floating-label--float-above) {
	left: 85px; /* Adjust based on flag + code width */
}

/* For filled/lined variants */
.mdc-phone-input-field.mdc-text-field--filled .mdc-floating-label:not(.mdc-floating-label--float-above) {
	left: 110px;
}

/* For forced CountryID filled/lined variants */
.mdc-phone-input-field.mdc-text-field--filled.mdc-phone-input-field--forced .mdc-floating-label:not(.mdc-floating-label--float-above) {
	left: 95px;
}

.mdc-phone-input-field.mdc-text-field--filled.mdc-text-field--label-floating .mdc-floating-label {
	left: 16px;
}

.mdc-phone-input-field.mdc-text-field--outlined,
.mdc-phone-input-field.mdc-text-field--filled {
	padding-right: 1px;
}

/* ========================================
   Country Selection Menu
   ======================================== */

.mdc-phone-input__menu {
	position: fixed;
	z-index: 8;
	min-width: 180px;
	max-width: 230px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2),
	            0 0 2px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top left;
	transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
	            transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* When menu opens below the input */
.mdc-phone-input__menu.menu-below {
	transform-origin: top left;
}

/* When menu opens above the input */
.mdc-phone-input__menu.menu-above {
	transform-origin: bottom left;
}

.mdc-phone-input__menu.is-open {
	display: block !important;
	opacity: 1;
	transform: scaleY(1);
}

.mdc-phone-input__menu-content {
	display: flex;
	flex-direction: column;
	max-height: 360px;
}

/* Search Box */
.mdc-phone-input__search {
	padding: 12px;
	border-bottom: 1px solid #e0e0e0;
	background: #f8f9fa;
	flex-shrink: 0;
}

.mdc-phone-input__search-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	font-size: 14px;
	font-family: 'Roboto', sans-serif;
	outline: none;
	transition: border-color 150ms;
	background: #fff;
	box-sizing: border-box;
}

.mdc-phone-input__search-input:focus {
	border-color: var(--mdc-theme-primary);
	box-shadow: 0 0 0 1px var(--mdc-theme-primary);
}

/* Country List */
.mdc-phone-input__country-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	overflow-y: auto;
	max-height: 300px;
	flex: 1;
}

/* Country Item */
.mdc-phone-input__country-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	cursor: pointer;
	transition: background-color 150ms;
	user-select: none;
	overflow: hidden;
}

.mdc-phone-input__country-ripple {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.mdc-phone-input__country-item:hover .mdc-phone-input__country-ripple:before {
	opacity: var(--mdc-ripple-hover-opacity, 0.04);
}

.mdc-phone-input__country-item .mdc-phone-input__country-ripple:before {
	transition: opacity 15ms linear, background-color 15ms linear;
	z-index: var(--mdc-ripple-z-index, 1);
}

.mdc-phone-input__country-item .mdc-phone-input__country-ripple:before,
.mdc-phone-input__country-item .mdc-phone-input__country-ripple:after {
	background-color: var(--mdc-ripple-color, #000);
	top: calc(50% - 100%);
	left: calc(50% - 100%);
	width: 200%;
	height: 200%;
	position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    content: "";
}

.mdc-phone-input__country-item .mdc-phone-input__country-ripple:after {
	transition: opacity 150ms linear;
}

.mdc-phone-input__country-item.selected .mdc-phone-input__country-ripple:before,
.mdc-phone-input__country-item.selected .mdc-phone-input__country-ripple:after {
	opacity: var(--mdc-ripple-activated-opacity, 0.12);
}

.mdc-phone-input__country-item:focus .mdc-phone-input__country-ripple:before {
	transition-duration: 75ms;
	opacity: var(--mdc-ripple-focus-opacity, 0.12);
}

.mdc-phone-input__country-item:focus {
	outline: none;
}

.mdc-phone-input__country-item.selected {
	font-weight: 500;
}

.mdc-phone-input__country-item[style*="display: none"] {
	display: none !important;
}

/* Flag in list */
.mdc-phone-input__country-item .flags-cont {
	flex-shrink: 0;
}

/* Country Name */
.mdc-phone-input__country-name {
	flex: 1;
	font-size: 14px;
	color: #202124;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Country Code in list */
.mdc-phone-input__country-item .mdc-phone-input__country-code {
	flex-shrink: 0;
	font-size: 13px;
	color: #5f6368;
	font-weight: 400;
}

/* No Results State */
.mdc-phone-input__no-results {
	padding: 20px;
	text-align: center;
	color: #5f6368;
	font-size: 14px;
}

/* Disabled State */
.mdc-phone-input-field.mdc-text-field--disabled .mdc-phone-input__country-trigger {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
	background-color: transparent;
}

.mdc-phone-input-field.mdc-text-field--disabled .mdc-phone-input__code-prefix {
	opacity: 0.6;
}

/* ========================================
   Extension Input
   ======================================== */

.mdc-phone-input__extension-input {
	display: inline-block;
	width: 60px;
	padding: 0 0 0 8px;
	margin: auto 0 auto 5px;
	border: none;
	border-left: 1px solid #dadce0;
	background: transparent;
	color: #202124;
	font-size: 14px;
	font-family: 'Roboto', sans-serif;
	line-height: 1;
	outline: none;
	vertical-align: middle;
	box-sizing: border-box;
}

.mdc-phone-input__extension-input::placeholder {
	color: #80868b;
	opacity: 0.7;
}

.mdc-phone-input__extension-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mdc-phone-input-field.mdc-text-field--filled .mdc-phone-input__extension-input {
	margin: 0;
}

/* ========================================
   Dark Mode Support
   ======================================== */
/*
@media (prefers-color-scheme: dark) {
	.mdc-phone-input__country-trigger {
		border-right-color: #5f6368;
	}

	.mdc-phone-input__country-trigger:hover {
		background-color: rgba(255, 255, 255, 0.08);
	}

	.mdc-phone-input__code-prefix {
		color: #9aa0a6;
	}

	.mdc-phone-input__menu {
		background: #292a2d;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	}

	.mdc-phone-input__search {
		background: #202124;
		border-bottom-color: #3c4043;
	}

	.mdc-phone-input__search-input {
		background: #292a2d;
		border-color: #5f6368;
		color: #e8eaed;
	}

	.mdc-phone-input__search-input:focus {
		border-color: #8ab4f8;
		box-shadow: 0 0 0 1px #8ab4f8;
	}

	.mdc-phone-input__country-item {
		color: #e8eaed;
	}

	.mdc-phone-input__country-item:hover {
		background-color: #3c4043;
	}

	.mdc-phone-input__country-item:focus,
	.mdc-phone-input__country-item.selected {
		background-color: #1e3a5f;
	}

	.mdc-phone-input__country-name {
		color: #e8eaed;
	}

	.mdc-phone-input__country-item .mdc-phone-input__country-code {
		color: #9aa0a6;
	}

	.mdc-phone-input__no-results {
		color: #9aa0a6;
	}
}
*/
/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 600px) {
	.mdc-phone-input__menu {
		position: fixed;
		left: 8px !important;
		right: 8px !important;
		min-width: auto;
		max-width: none;
		top: auto !important;
		bottom: 8px;
		transform-origin: bottom center;
	}

	.mdc-phone-input__menu-content {
		max-height: 50vh;
	}
}