/**
 * UD Geo Redirect popup styles.
 *
 * A full-screen modal dialog offering to switch to the visitor's detected
 * country site. Renders as a centered card on every viewport (mobile gets
 * viewport-edge padding, desktop caps out at 480px wide).
 */
.ud-geo-redirect-popup,
.ud-geo-redirect-popup *,
.ud-geo-redirect-popup *::before,
.ud-geo-redirect-popup *::after {
	box-sizing: border-box;
}

.ud-geo-redirect-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}

.ud-geo-redirect-popup--hidden {
	display: none !important;
}

.ud-geo-redirect-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.6 );
	-webkit-backdrop-filter: blur( 4px );
	backdrop-filter: blur( 4px );
}

.ud-geo-redirect-popup__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 0 0 rgba( 0, 0, 0, 0.03 ), 2px 2px 6px rgba( 0, 0, 0, 0.03 ),
		7px 9px 11px rgba( 0, 0, 0, 0.03 ), 16px 20px 15px rgba( 0, 0, 0, 0.01 );
}

@media ( min-width: 768px ) {
	.ud-geo-redirect-popup__panel {
		gap: 32px;
		padding: 40px;
	}
}

.ud-geo-redirect-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: transparent;
	color: #5c554e;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.ud-geo-redirect-popup__close:hover,
.ud-geo-redirect-popup__close:focus {
	background: #f7f4ee;
}

@media ( min-width: 768px ) {
	.ud-geo-redirect-popup__close {
		top: 24px;
		right: 24px;
	}
}

.ud-geo-redirect-popup__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-right: 32px;
}

.ud-geo-redirect-popup__title {
	margin: 0;
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	color: #101114;
}

@media ( min-width: 768px ) {
	.ud-geo-redirect-popup__title {
		font-size: 28px;
		line-height: 32px;
	}
}

.ud-geo-redirect-popup__text {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: #5c554e;
}

.ud-geo-redirect-popup__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ud-geo-redirect-popup__option {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 72px;
	padding: 12px 16px;
	border: 1px solid #f1ece2;
	border-radius: 8px;
	background: #fcfbf8;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.3s ease;
}

a.ud-geo-redirect-popup__option {
	cursor: pointer;
}

a.ud-geo-redirect-popup__option:hover,
a.ud-geo-redirect-popup__option:focus {
	border-color: #aba294;
}

.ud-geo-redirect-popup__option--current {
	border-color: #d24346;
}

.ud-geo-redirect-popup__option-flag {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
}

.ud-geo-redirect-popup__option-info {
	display: flex;
	flex-direction: column;
	flex: 1 1 0%;
	min-width: 0;
}

.ud-geo-redirect-popup__option-name {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: #101114;
}

.ud-geo-redirect-popup__option-domain {
	font-size: 12px;
	line-height: 16px;
	color: rgba( 16, 17, 20, 0.6 );
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ud-geo-redirect-popup__option-check {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #d24346;
}

.ud-geo-redirect-popup__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.ud-geo-redirect-popup__switch {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	background: #d24346;
	color: #fff;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.ud-geo-redirect-popup__switch:hover,
.ud-geo-redirect-popup__switch:focus {
	background: #a63e3d;
	color: #fff;
}

.ud-geo-redirect-popup__switch:active {
	background: #973b36;
}

.ud-geo-redirect-popup__dismiss {
	background: transparent;
	border: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #101114;
	text-decoration: underline;
	cursor: pointer;
}

.ud-geo-redirect-popup__dismiss:hover,
.ud-geo-redirect-popup__dismiss:focus {
	color: #38332f;
}
