/* ─── Select Delivery Location modal (FNP-style) ─── */
.ga-location-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	box-sizing: border-box;
}

.ga-location-modal[hidden]:not(.is-open) {
	display: none !important;
}

.ga-location-modal.is-open {
	display: flex !important;
}

.ga-location-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.55);
	backdrop-filter: blur(2px);
}

.ga-location-modal__panel {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: min(520px, calc(100vh - 40px));
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ga-location-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 28px 28px 20px;
	border-bottom: none;
}

.ga-location-modal__head h2 {
	margin: 0;
	font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.2;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

.ga-location-modal__close {
	border: none;
	background: none;
	font-size: 1.35rem;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 4px 0 0 12px;
	flex-shrink: 0;
	transition: color 0.2s;
}

.ga-location-modal__close:hover {
	color: #1a1a1a;
}

.ga-location-modal__body {
	padding: 0 28px 28px;
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
}

.ga-location-modal__label {
	display: block;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 10px;
}

.ga-location-modal__input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	padding: 14px 16px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 0.95rem;
	color: #1a1a1a;
	margin-bottom: 0;
	background: #fff;
}

.ga-location-modal__input::placeholder {
	color: #aaa;
}

.ga-location-modal__input:focus {
	outline: none;
	border-color: var(--color-primary, #7a1f3d);
	box-shadow: 0 0 0 1px var(--color-primary, #7a1f3d);
}

.ga-location-modal__results-wrap {
	margin-top: 16px;
	border-top: 1px solid #eee;
	min-height: 0;
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ga-location-modal__results {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
	max-height: 280px;
	-webkit-overflow-scrolling: touch;
}

.ga-location-modal__results li {
	border-bottom: 1px solid #f0f0f0;
}

.ga-location-modal__results li:last-child {
	border-bottom: none;
}

.ga-location-modal__results li button {
	width: 100%;
	text-align: left;
	border: none;
	background: #fff;
	padding: 14px 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	transition: background 0.15s;
}

.ga-location-modal__results li button:hover,
.ga-location-modal__results li button:focus {
	background: #faf8f6;
}

.ga-location-modal__results .city-name {
	font-family: var(--font-body, 'Inter', sans-serif);
	font-weight: 400;
	font-size: 0.95rem;
	color: #1a1a1a;
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ga-location-modal__results .city-ship {
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: #999;
	text-transform: uppercase;
	flex-shrink: 0;
	white-space: nowrap;
}

.ga-location-modal__hint {
	margin: 12px 0 0;
	font-size: 0.8rem;
	color: #999;
	text-align: center;
}

body.ga-location-modal-open {
	overflow: hidden;
}

.ga-location-missing {
	color: var(--color-primary, #7a1f3d) !important;
}

[data-ga-location-lead]:not(:empty) {
	display: block !important;
	font-size: 0.7rem;
	color: #555;
	margin-top: 2px;
}

.ga-delivery-card.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

@media (max-width: 480px) {
	.ga-location-modal {
		padding: 12px;
		align-items: center;
	}

	.ga-location-modal__panel {
		max-width: 100%;
		max-height: calc(100vh - 24px);
	}

	.ga-location-modal__head {
		padding: 22px 20px 16px;
	}

	.ga-location-modal__head h2 {
		font-size: 1.5rem;
	}

	.ga-location-modal__body {
		padding: 0 20px 22px;
	}

	.ga-location-modal__results {
		max-height: 50vh;
	}
}
