.lwsm-rate-map {
	clear: both;
	display: none;
	flex: 0 0 100%;
	margin: 0.65rem 0 0;
	max-width: 100%;
	width: 100%;
}

.lwsm-rate-map.is-open,
.lwsm-map-shell {
	display: block;
}

.woocommerce-shipping-methods li:has( input[name^="shipping_method"]:checked[value^="lwsm_area_shipping:"] ) .lwsm-rate-map {
	display: block;
}

.woocommerce-shipping-methods li:has( .lwsm-rate-map ) {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.5rem;
}

.woocommerce-shipping-methods li:has( .lwsm-rate-map ) > input[name^="shipping_method"],
.woocommerce-shipping-methods li:has( .lwsm-rate-map ) > label {
	flex: 0 0 auto;
	margin-bottom: 0;
}

.lwsm-map-panel {
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 8px;
	margin: 0 0 0.85rem;
	overflow: hidden;
	background: #fff;
}

.lwsm-map-title {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
}

.lwsm-map-body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.lwsm-map-canvas {
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
	min-height: 320px;
	width: 100%;
	z-index: 0;
}

.lwsm-area-list {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 0.45rem;
	padding: 0.65rem;
	background: #f8fafc;
}

.lwsm-area-button {
	align-items: center;
	background: #fff;
	border: 1px solid rgba( 15, 23, 42, 0.18 );
	border-radius: 6px;
	color: #111827;
	cursor: pointer;
	display: grid;
	font: inherit;
	font-size: 0.92rem;
	gap: 0.45rem;
	grid-template-columns: 0.8rem minmax( 0, 1fr ) auto;
	line-height: 1.25;
	min-height: 2.5rem;
	padding: 0.55rem 0.6rem;
	text-align: left;
	transition: border-color 140ms ease, box-shadow 140ms ease;
	width: 100%;
}

.lwsm-area-button:hover,
.lwsm-area-button:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.16 );
	outline: none;
}

.lwsm-area-button.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.22 );
}

.lwsm-area-swatch {
	border-radius: 999px;
	display: inline-block;
	height: 0.8rem;
	width: 0.8rem;
}

.lwsm-area-name {
	overflow-wrap: anywhere;
}

.lwsm-area-price {
	white-space: nowrap;
}

.lwsm-map-notice,
.lwsm-map-status {
	display: none;
	margin: 0;
	padding: 0.65rem 0.85rem;
	border-top: 1px solid rgba( 0, 0, 0, 0.08 );
	font-size: 0.88rem;
}

.lwsm-map-notice {
	background: #fff8e5;
	color: #6b4e00;
}

.lwsm-map-status {
	background: #eef6ff;
	color: #1d4f7a;
}

.lwsm-map-unavailable .lwsm-map-notice,
.lwsm-map-panel.is-busy .lwsm-map-status {
	display: block;
}

.lwsm-map-panel.is-busy {
	opacity: 0.78;
	pointer-events: none;
}

.lwsm-map-shell--blocks {
	margin: 1rem 0;
}

@media ( max-width: 700px ) {
	.lwsm-rate-map {
		margin-left: 0;
		width: 100%;
	}

	.lwsm-area-list {
		grid-template-columns: 1fr;
	}
}
