/* Front + block editor */
.wom-offices-block {
	box-sizing: border-box;
	/* Chiều cao thống nhất mọi card; chỉnh một số này nếu cần */
	--wom-card-max-height: 200px;
}

/* -------------------------------------------------------------------------- */
/* Front style (match screenshot)                                              */
/* -------------------------------------------------------------------------- */

.wom-offices-block .prefecture-section {
	margin: 0 0 18px;
}


.wom-offices-block .prefecture-heading {
	margin: 0 0 14px;
	padding: 0;
	background: transparent;
	font-family: "Noto Sans JP", sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 24px;
	line-height: 150%;
	letter-spacing: 0;
	color: #F2086C;
	border: none;
	box-sizing: border-box;
}

.wom-offices-block .offices-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: start;
}

.wom-offices-block .office-card {
	position: relative;
	/* background: #FAFAFA; */
	padding: 16px 24px 16px 0;
	width: 100%;
	min-height: var(--wom-card-max-height);
	max-height: var(--wom-card-max-height);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	row-gap: 4px;
	column-gap: 12px;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE / Edge legacy */
}

.wom-offices-block .office-card::-webkit-scrollbar {
	display: none;
	/* Chrome, Safari, Edge */
	width: 0;
	height: 0;
}

.wom-offices-block .office-name-link,
.wom-offices-block .office-name,
.wom-offices-block .office-address,
.wom-offices-block .office-number,
.wom-offices-block .office-time {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	font-style: normal;
	line-height: 150%;
	/* letter-spacing: 0; */
}

.wom-offices-block .office-address,
.wom-offices-block .office-number,
.wom-offices-block .office-time {
	color: #222;
}

.wom-offices-block .office-name,
.wom-offices-block .office-name-link {
	color: #222;
}

.wom-offices-block .office-address,
.wom-offices-block .office-number,
.wom-offices-block .office-time,
.wom-offices-block .map-link {
	font-size: 20px;
}

.wom-offices-block .office-name {
	font-weight: 700;
	font-size: 16px;
	position: relative;
	padding-left: 16px;
}


.wom-offices-block .office-name,
.wom-offices-block .office-name-link {
	font-weight: 700;
	font-size: 20px;
	text-decoration: none;
	word-break: break-word;
}

.wom-offices-block .office-name::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 32px;
	background: #EF8600;
}

.wom-offices-block .office-address {
	margin-top: 6px;
	word-break: break-word;
	font-weight: 400;
}

.wom-offices-block .office-number,
.wom-offices-block .office-time {
	margin-top: 4px;
	font-weight: 400;
}

.wom-offices-block .office-number a,
.wom-offices-block .map-link {
	color: #006CB5;
	text-decoration: underline;
}

.wom-offices-block .map-link {
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	align-self: center;
	font-size: 16px;
	line-height: 1.5;
	color: #EF8600;
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}

.wom-offices-block .map-link-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 26px;
	display: inline-block;
	background: url("./map-icon.svg") no-repeat center / contain;
	font-size: 0;
	line-height: 0;
}



.wom-offices-block .office-label {
	font-weight: 400;
	margin-right: 10px;
	white-space: nowrap;
}

.wom-offices-block .office-address,
.wom-offices-block .office-number,
.wom-offices-block .office-time {
	position: relative;
	padding-left: 50px;
	grid-column: 1 / -1;
}

.wom-offices-block .office-name {
	align-self: center;
}

.wom-offices-block .office-time {
	grid-column: 1 / 2;
}

.wom-offices-block .map-link {
	grid-column: 2 / 3;
}

.wom-offices-block .office-address::before,
.wom-offices-block .office-number::before,
.wom-offices-block .office-time::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 24px;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.wom-offices-block .office-address::before {
	background-image: url("./location.svg");
}

.wom-offices-block .office-number::before {
	background-image: url("./phone.svg");
}

.wom-offices-block .office-time::before {
	background-image: url("./time.svg");
}

@media (max-width: 700px) {
	.wom-offices-block .offices-container {
		grid-template-columns: 1fr;
	}

	.wom-offices-block .office-name,
	.wom-offices-block .office-name-link,
	.wom-offices-block .office-address,
	.wom-offices-block .office-number,
	.wom-offices-block .office-time {
		font-size: 14px;
	}

	.wom-offices-block .map-link {
		font-size: 14px;
		grid-column: 1 / -1;
		justify-self: end;
		margin-top: 8px;
	}


	.wom-offices-block .office-time {
		grid-column: 1 / -1;
	}

	.wom-offices-block .prefecture-heading {
		font-size: 20px;
	}
}

.wom-block-edit-wrap {
	margin-bottom: 1rem;
}

.wom-editor-layout {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 12px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 2px;
}

.wom-editor-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 2px;
	overflow: hidden;
}

.wom-editor-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	background: #f0f0f1;
	border-bottom: 1px solid #c3c4c7;
}

.wom-editor-section-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	flex: 1;
}

.wom-section-move {
	flex-shrink: 0;
}

.wom-editor-offices {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wom-editor-office-row {
	padding-bottom: 12px;
	border-bottom: 1px solid #e0e0e0;
}

.wom-editor-office-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wom-editor-office-meta {
	font-size: 11px;
	color: #646970;
	margin-bottom: 6px;
}

.office-name-link {
	text-decoration: underline;
}

.office-name-link:hover {
	text-decoration: none;
}