/* Layout/visuals for the map preview block (product page, shortcode, and embed page). */

/* Catalog-style download action, replaces the WooCommerce add-to-cart button. */
.mpa-catalog-action {
	margin: 16px 0;
}

.mpa-download-btn {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	padding: 10px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
}

.mpa-download-btn:hover {
	background: #005580;
	color: #fff;
}

.mpa-login-prompt {
	font-size: 14px;
	color: #444;
}

.mpa-map-wrapper {
	position: relative;
	width: 100%;
	font-family: sans-serif;
	clear: both;
}

.mpa-map-canvas {
	width: 100%;
	height: 100%;
	background-color: #f4f3f0;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.mpa-map-controls {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 10;
	background: rgba( 255, 255, 255, 0.95 );
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.15 );
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 250px;
}

.mpa-map-controls h4 {
	margin: 0 0 5px 0;
	font-size: 14px;
	color: #333;
}

.mpa-toggle-btn {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: bold;
}

.mpa-toggle-btn.is-hidden {
	background: #555555;
}

.mpa-control-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.mpa-control-row label {
	font-size: 12px;
	color: #555;
}

.mpa-control-row select {
	padding: 4px;
	font-size: 12px;
	border-radius: 4px;
	border: 1px solid #ccc;
}

.mpa-control-row input[type='color'] {
	border: none;
	width: 40px;
	height: 25px;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

/* Click-to-inspect data popup (shared across every layer). */
.mpa-popup-content {
	font-size: 12px;
	max-height: 220px;
	overflow-y: auto;
}

.mpa-popup-table {
	border-collapse: collapse;
	width: 100%;
}

.mpa-popup-table th,
.mpa-popup-table td {
	text-align: left;
	padding: 3px 8px 3px 0;
	vertical-align: top;
	border-bottom: 1px solid #eee;
}

.mpa-popup-table th {
	color: #555;
	font-weight: 600;
	white-space: nowrap;
}
