.gfplm-location-control {
	margin-bottom: 1rem;
}

.gfplm-location-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.gfplm-location-button[style*="--gfplm-button-text-color"] {
	color: var(--gfplm-button-text-color) !important;
}

.gfplm-location-button[style*="--gfplm-button-background-color"] {
	background: var(--gfplm-button-background-color) !important;
}

.gfplm-location-button[style*="--gfplm-button-border-color"] {
	border-color: var(--gfplm-button-border-color) !important;
	border-style: solid;
}

.gfplm-location-button[style*="--gfplm-button-border-width"] {
	border-width: var(--gfplm-button-border-width) !important;
	border-style: solid;
}

.gfplm-location-button[style*="--gfplm-button-border-radius"] {
	border-radius: var(--gfplm-button-border-radius) !important;
}

.gfplm-location-button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.gfplm-location-button-icon-img {
	display: block;
	width: var(--gfplm-button-icon-width, 20px);
	height: var(--gfplm-button-icon-height, 20px);
	max-width: none;
	object-fit: contain;
}

.gfplm-location-status {
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
}

.gfplm-map-modal[hidden] {
	display: none !important;
}

.gfplm-map-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: #ffffff;
	color: #1f2933;
}

.gfplm-map-modal__header,
.gfplm-map-modal__footer {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	background: #ffffff;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14);
}

.gfplm-map-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
}

.gfplm-map-modal__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.gfplm-map-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f1f3f5;
	color: #111827;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}

.gfplm-map-modal__close:hover,
.gfplm-map-modal__close:focus {
	background: #e5e7eb;
	outline: none;
}

.gfplm-map-modal__body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: #f3f3f3;
}

.gfplm-map-instructions {
	position: absolute;
	top: 0.75rem;
	left: 50%;
	z-index: 3;
	box-sizing: border-box;
	max-width: calc(100% - 2rem);
	margin: 0;
	padding: 0.6rem 0.8rem;
	transform: translateX(-50%);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.gfplm-map {
	width: 100%;
	height: 100%;
	min-height: 0;
	border-radius: 0;
	overflow: hidden;
	background: #f3f3f3;
}

.gfplm-map-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 1rem;
}

.gfplm-map-modal__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-left: auto;
}

.gfplm-map-modal button.gfplm-current-location-link {
	padding: 0.42rem 0.7rem;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #ffffff !important;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: underline;
	text-decoration-color: currentColor;
	cursor: pointer;
}

.gfplm-map-modal button.gfplm-current-location-link:hover,
.gfplm-map-modal button.gfplm-current-location-link:focus,
.gfplm-map-modal button.gfplm-current-location-link:active,
.gfplm-map-modal button.gfplm-current-location-link:visited {
	background: #111827;
	color: #ffffff !important;
}

.gfplm-map-modal button.gfplm-current-location-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.gfplm-selected-coordinates {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	word-break: break-word;
}

.gfplm-map-confirm {
	white-space: nowrap;
}

body.gfplm-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.gfplm-map-modal__header {
		padding: 0.75rem 0.85rem;
	}

	.gfplm-map-modal__footer {
		align-items: stretch;
		flex-direction: column;
		gap: 0.65rem;
		padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom));
	}

	.gfplm-map-modal__actions {
		align-items: stretch;
		flex-direction: column;
		gap: 0.6rem;
		margin-left: 0;
	}

	.gfplm-map-modal button.gfplm-current-location-link {
		align-self: center;
	}

	.gfplm-map-confirm {
		width: 100%;
	}

	.gfplm-map-instructions {
		top: 3.75rem;
		left: 0.75rem;
		right: 0.75rem;
		max-width: none;
		transform: none;
		border-radius: 0.75rem;
		font-size: 0.86rem;
		pointer-events: none;
	}
}

.gfplm-selected-map-marker {
	position: relative;
	width: 42px;
	height: 42px;
	transform: translateY(-20px) rotate(-45deg);
	border-radius: 999px 999px 999px 0;
	background: #dc2626;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.gfplm-selected-map-marker::before {
	content: "";
	position: absolute;
	inset: 3px;
	border: 3px solid #ffffff;
	border-radius: inherit;
}

.gfplm-selected-map-marker__dot {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: #ffffff;
}

.gfplm-detected-address-control {
	box-sizing: border-box;
	max-width: 36rem;
	margin: 0.75rem 0 0;
}

.gfplm-detected-address-label {
	display: block;
	margin: 0 0 0.25rem;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
}

.gfplm-detected-address-input {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	background: #f8fafc;
	cursor: default;
}
