:root {
	--mtu-brand-blue: #0f4db8;
	--mtu-brand-blue-dark: #0a327d;
	--mtu-brand-blue-soft: #f3f8ff;
	--mtu-brand-blue-soft-2: #e8f1ff;
	--mtu-brand-border: #d7e3f4;
	--mtu-brand-text: #102a43;
}

body.mtu-ubicacion-modal-open {
	overflow: hidden;
}

.mtu-ubicacion-trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid var(--mtu-brand-border);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(10, 50, 125, 0.14);
	cursor: pointer;
	min-width: 220px;
	max-width: min(84vw, 340px);
}

.mtu-ubicacion-trigger.is-floating {
	position: fixed;
	top: 88px;
	right: 18px;
	z-index: 99990;
}

.mtu-ubicacion-trigger.is-inline-header {
	position: relative;
	z-index: 30;
	margin-left: 14px;
	padding: 10px 14px;
	min-width: 210px;
	max-width: 320px;
	box-shadow: none;
	flex: 0 1 320px;
}

.mtu-ubicacion-trigger[hidden] {
	display: none !important;
}

.mtu-ubicacion-trigger-icono {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 999px;
	background: var(--mtu-brand-blue-soft);
	color: var(--mtu-brand-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.mtu-ubicacion-trigger.is-inline-header .mtu-ubicacion-trigger-icono {
	width: 30px;
	height: 30px;
	min-width: 30px;
	font-size: 14px;
}

.mtu-ubicacion-trigger-copy {
	min-width: 0;
	text-align: left;
}

.mtu-ubicacion-trigger-copy strong,
.mtu-ubicacion-trigger-copy span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mtu-ubicacion-trigger-copy strong {
	font-size: 12px;
	line-height: 1.1;
	color: var(--mtu-brand-blue-dark);
	margin-bottom: 3px;
}

.mtu-ubicacion-trigger.is-inline-header .mtu-ubicacion-trigger-copy strong {
	font-size: 11px;
}

.mtu-ubicacion-trigger-copy span {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--mtu-brand-text);
}

.mtu-ubicacion-trigger.is-inline-header .mtu-ubicacion-trigger-copy span {
	font-size: 13px;
}

.mtu-ubicacion-trigger-flecha {
	font-size: 14px;
	color: var(--mtu-brand-blue);
	margin-left: auto;
}

#mtu-ubicacion-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(12, 31, 66, 0.42);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

#mtu-ubicacion-overlay.is-visible {
	display: flex;
}

#mtu-ubicacion-modal {
	width: min(100%, 680px);
	max-height: calc(100vh - 36px);
	overflow: auto;
	background: #fff;
	border: 1px solid rgba(215, 227, 244, 0.85);
	border-radius: 26px;
	padding: 26px 24px 24px;
	box-shadow: 0 22px 60px rgba(10, 50, 125, 0.24);
}

.mtu-ubicacion-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.mtu-ubicacion-headline {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.mtu-ubicacion-pin {
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 999px;
	background: var(--mtu-brand-blue-soft);
	color: var(--mtu-brand-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.mtu-ubicacion-head h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.15;
	color: var(--mtu-brand-blue-dark);
}

.mtu-ubicacion-close {
	border: 0;
	background: transparent;
	color: var(--mtu-brand-blue);
	font-size: 28px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.mtu-ubicacion-close[hidden] {
	display: none !important;
}

.mtu-ubicacion-intro {
	background: linear-gradient(180deg, var(--mtu-brand-blue-soft) 0%, var(--mtu-brand-blue-soft-2) 100%);
	border: 1px solid #dbe8fb;
	border-radius: 20px;
	padding: 18px 18px;
	text-align: center;
	margin-bottom: 18px;
}

.mtu-ubicacion-intro strong,
.mtu-ubicacion-intro span {
	display: block;
}

.mtu-ubicacion-intro strong {
	font-size: 16px;
	line-height: 1.35;
	color: var(--mtu-brand-blue-dark);
	margin-bottom: 6px;
}

.mtu-ubicacion-intro span {
	font-size: 14px;
	line-height: 1.45;
	color: #355070;
}

.mtu-ubicacion-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.mtu-ubicacion-campo label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mtu-brand-blue-dark);
}

.mtu-ubicacion-campo select {
	width: 100%;
	height: 58px;
	border: 1px solid var(--mtu-brand-border);
	border-radius: 16px;
	padding: 0 16px;
	font-size: 17px;
	font-weight: 500;
	color: var(--mtu-brand-text);
	background: #fff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mtu-ubicacion-campo select:focus {
	border-color: var(--mtu-brand-blue);
	box-shadow: 0 0 0 3px rgba(15, 77, 184, 0.12);
}

.mtu-ubicacion-campo select:disabled {
	background: #f8fbff;
	color: #98a2b3;
}

.mtu-ubicacion-error {
	min-height: 18px;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #dc2626;
}

.mtu-ubicacion-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

.mtu-ubicacion-confirmar {
	min-width: 200px;
	height: 54px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--mtu-brand-blue) 0%, #2b7cff 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 77, 184, 0.22);
}

.mtu-ubicacion-confirmar:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 767px) {
	.mtu-ubicacion-trigger.is-floating {
		top: 180px;
		left: 12px;
		right: 12px;
		max-width: none;
		min-width: 0;
	}

	.mtu-ubicacion-trigger.is-inline-header {
		display: flex;
		width: calc(100% - 24px);
		max-width: none;
		min-width: 0;
		margin: 10px 12px 0;
		padding: 12px 14px;
		box-sizing: border-box;
		box-shadow: 0 10px 24px rgba(10, 50, 125, 0.14);
		flex: none;
	}

	#mtu-ubicacion-overlay {
		padding: 12px;
	}

	#mtu-ubicacion-modal {
		padding: 20px 16px 18px;
		border-radius: 22px;
		max-height: calc(100vh - 24px);
	}

	.mtu-ubicacion-head h2 {
		font-size: 18px;
	}

	.mtu-ubicacion-pin {
		width: 38px;
		height: 38px;
		min-width: 38px;
		font-size: 18px;
	}

	.mtu-ubicacion-intro {
		padding: 16px 14px;
		border-radius: 18px;
	}

	.mtu-ubicacion-intro strong {
		font-size: 15px;
	}

	.mtu-ubicacion-intro span {
		font-size: 13px;
	}

	.mtu-ubicacion-campo select {
		height: 52px;
		font-size: 16px;
		padding: 0 16px;
	}

	.mtu-ubicacion-confirmar {
		width: 100%;
		min-width: 0;
		height: 50px;
		font-size: 17px;
	}
}
