.wp-block-jetpack-map__delete-btn {
	padding: 0;
	margin-top: 10px;

	svg {
		margin-right: 0.4em;
	}
}

.wp-block[data-type="jetpack/map"] {

	.wp-block-group-is-layout-flex:not(.is-vertical) > & {
		flex-basis: 100%;
	}

	.wp-block-group-is-layout-flex.is-vertical > & {
		width: 100%;
	}

	.components-placeholder__label {

		svg {
			fill: currentColor;
			margin-right: 6px;
			margin-right: 1ch;
		}
	}

	.components-placeholder__instructions {
		margin-top: 0;

		.components-external-link {
			display: inline-block;
			margin: 1em auto;
		}
	}
}

.wp-block-jetpack-map {

	.mapboxgl-popup-close-button {
		font-size: 21px;
		padding: 0 10px 5px 9px;
	}

	.wp-block-jetpack-map__map_wrapper {
		overflow: hidden;
		// Matches color that MapBox uses as placeholder before map tiles are loaded.
		background-color: #e4e2de;
	}

	.wp-block-jetpack-map__gm-container {
		inset: 0;
		z-index: 0;
	}

	/* Overlay for block selection */
	.wp-block-jetpack-map__select-overlay {
		position: absolute;
		inset: 0;
		z-index: 2;
		background-color: transparent;
		pointer-events: auto;
	}
}

.wp-block-jetpack-map__marker-caption {
	margin-top: 10px;
}

.component__add-point__popover {

	.components-popover__content {
		width: 250px;

		.component__add-point__close {
			margin-top: -0.55em;
			padding: 0.3em;
		}
	}
}

.jetpack-map-token-settings {

	.jetpack-update-token-button {
		box-shadow: inset 0 0 0 1px #1e1e1e;
		border-radius: 3px 0 0 2px;
	}

	.components-button.is-secondary {
		border-radius: 0 2px 2px 0;
		margin-left: -1px;
	}

	.components-toggle-group-control {
		border: none;
		outline: none;
		box-shadow: none;

		&:focus,
		&:focus-within {
			outline: none;
			box-shadow: none;
		}
	}
}
