.office-map-block {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100%;

	.office-map {
		background-color: var(--wp--preset--color--white);
		border: 1px solid var(--wp--preset--color--black);
		border-radius: 16px;
		min-height: 360px;
		overflow: hidden;
		position: relative;
		width: 100%;

		/* Once office-map-block.js swaps in the live Google Map, its own
		   canvas fills this element and the CSS-only pin is emptied out —
		   see $canvas.empty() in that script. The label/address below stay
		   put either way, since they're siblings of the canvas, not inside it. */
		.office-map-canvas {
			background-color: var(--wp--preset--color--light-grey);
			height: 100%;
			left: 0;
			position: absolute;
			top: 0;
			width: 100%;
		}

		.office-map-canvas-pin {
			background-color: transparent;
			border: 2px solid var(--wp--preset--color--green);
			border-radius: 50% 50% 50% 0;
			display: block;
			height: 32px;
			left: 50%;
			position: absolute;
			top: 45%;
			transform: translate(-50%, -50%) rotate(-45deg);
			width: 32px;

			&::after {
				background-color: var(--wp--preset--color--green);
				border-radius: 50%;
				content: "";
				display: block;
				height: 10px;
				left: 50%;
				position: absolute;
				top: 50%;
				transform: translate(-50%, -50%);
				width: 10px;
			}
		}

		.office-map-label {
			background-color: var(--wp--preset--color--white);
			border-radius: 6px;
			box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
			color: var(--wp--preset--color--black);
			font-weight: 700;
			left: 50%;
			padding: 8px 14px;
			position: absolute;
			top: 58%;
			transform: translate(-50%, 0);
			white-space: nowrap;
			z-index: 1;
		}

		.office-map-address {
			background-color: var(--wp--preset--color--white);
			border-radius: 8px;
			bottom: 20px;
			box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
			font-size: 14px;
			font-weight: 400;
			left: 20px;
			margin: 0;
			padding: 14px 18px;
			position: absolute;
			z-index: 1;
		}
	}

	.office-map-link {
		color: var(--wp--preset--color--green);
		font-size: 14px;
		font-weight: 700;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}
}

/* Google Maps InfoWindow chrome, stripped down to just our own
   .office-map-marker-label styling below - see the InfoWindow
   office-map-block.js opens on the marker once the live map loads. These
   class names (.gm-style-iw-*, .gm-ui-hover-effect) are Google's own
   internal InfoWindow structure, not ours, so they sit outside the
   .office-map-block nesting above. */
.gm-style .gm-style-iw-t::after {
	display: none;
}

.gm-style .gm-style-iw-c {
	border-radius: 6px !important;
	box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1) !important;
	padding: 0 !important;
}

.gm-style .gm-style-iw-d {
	overflow: hidden !important;
}

.gm-style .gm-ui-hover-effect {
	display: none !important;
}

.gm-style .gm-style-iw-ch {
	padding: 0 !important;
}

.office-map-marker-label {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	font-weight: 700;
	padding: 8px 14px;
	white-space: nowrap;
}
