.ohsa-field {
	--ohsa-green: #4b922f;
	--ohsa-green-dark: #34731f;
	--ohsa-soft: #f3f8f0;
	--ohsa-border: #dce3e6;
	--ohsa-text: #172331;
	--ohsa-muted: #6d7881;
	position: relative;
	width: 100%;
}

.ohsa-field,
.ohsa-field * {
	box-sizing: border-box;
}

.ohsa-heading-row {
	margin-bottom: 10px;
}

.ohsa-label {
	display: block;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ohsa-text);
}

.ohsa-required {
	color: #c53931;
}

.ohsa-description {
	margin: 4px 0 0;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--ohsa-muted);
}

.ohsa-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(250px, 0.85fr);
	border: 1px solid var(--ohsa-border);
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
}

.ohsa-map-column {
	position: relative;
	min-width: 0;
}

.ohsa-city-search {
	position: relative;
	display: flex;
	gap: 8px;
	padding: 12px;
	border-bottom: 1px solid var(--ohsa-border);
	background: #ffffff;
	z-index: 500;
}

.ohsa-search-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid #ccd5da;
	border-radius: 6px;
	background: #ffffff;
	font: inherit;
	color: var(--ohsa-text);
}

.ohsa-search-button,
.ohsa-draw-button {
	min-height: 42px;
	padding: 9px 15px;
	border: 0;
	border-radius: 6px;
	background: var(--ohsa-green);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	color: #ffffff;
	cursor: pointer;
}

.ohsa-draw-button.is-drawing {
	background: #1f5f18;
	box-shadow: 0 0 0 3px rgba(75, 146, 47, 0.18);
}

.ohsa-search-button:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ohsa-search-results {
	position: absolute;
	top: calc(100% - 6px);
	left: 12px;
	right: 12px;
	max-height: 230px;
	border: 1px solid #ccd5da;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 12px 28px rgba(16, 34, 49, 0.16);
	overflow-y: auto;
}

.ohsa-search-result {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #edf0f2;
	background: #ffffff;
	text-align: left;
	font: inherit;
	font-size: 0.84rem;
	line-height: 1.4;
	color: var(--ohsa-text);
	cursor: pointer;
}

.ohsa-search-result:last-child {
	border-bottom: 0;
}

.ohsa-search-result:hover,
.ohsa-search-result:focus {
	background: var(--ohsa-soft);
	outline: 0;
}

.ohsa-search-message {
	padding: 12px;
	font-size: 0.82rem;
	color: var(--ohsa-muted);
}

.ohsa-map {
	width: 100%;
	min-height: 360px;
	background: #e8ecee;
}

.ohsa-panel {
	padding: 16px;
	border-left: 1px solid var(--ohsa-border);
	background: #fbfcfb;
}

.ohsa-panel-title {
	margin: 0 0 10px;
	font-size: 0.86rem;
	font-weight: 800;
	color: var(--ohsa-text);
}

.ohsa-modes {
	display: grid;
	gap: 7px;
}

.ohsa-mode {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 9px;
	align-items: start;
	width: 100%;
	padding: 10px 11px;
	border: 1px solid #dce3e6;
	border-radius: 7px;
	background: #ffffff;
	text-align: left;
	font: inherit;
	color: var(--ohsa-text);
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ohsa-mode.is-active {
	border-color: #8dbb72;
	background: #f0f7ec;
}

.ohsa-radio-dot {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	border: 1px solid #7e8991;
	border-radius: 50%;
	background: #ffffff;
}

.ohsa-mode.is-active .ohsa-radio-dot {
	border-color: var(--ohsa-green);
}

.ohsa-mode.is-active .ohsa-radio-dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--ohsa-green);
}

.ohsa-mode strong,
.ohsa-mode small {
	display: block;
}

.ohsa-mode strong {
	margin-bottom: 2px;
	font-size: 0.82rem;
}

.ohsa-mode small {
	font-size: 0.72rem;
	line-height: 1.35;
	color: var(--ohsa-muted);
}

.ohsa-radius-options {
	margin-top: 14px;
}

.ohsa-radius-options label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ohsa-text);
}

.ohsa-radius-select {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid #ccd5da;
	border-radius: 6px;
	background: #ffffff;
	font: inherit;
	font-size: 0.84rem;
	color: var(--ohsa-text);
}

.ohsa-draw-button {
	width: 100%;
	margin-top: 14px;
}

.ohsa-instruction {
	min-height: 38px;
	margin: 10px 0 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--ohsa-muted);
}

.ohsa-selection-summary {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--ohsa-border);
}

.ohsa-selection-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 0.77rem;
	color: var(--ohsa-text);
}

.ohsa-clear-button,
.ohsa-remove-selection {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--ohsa-green-dark);
	cursor: pointer;
}

.ohsa-selection-list {
	display: grid;
	gap: 6px;
	max-height: 160px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
}

.ohsa-selection-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 8px;
	border: 1px solid #e2e7e9;
	border-radius: 5px;
	background: #ffffff;
	font-size: 0.72rem;
	line-height: 1.35;
	color: var(--ohsa-text);
}

.ohsa-selection-item span {
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: normal;
}

.ohsa-empty-selection {
	padding: 8px;
	border: 1px dashed #d9e0e3;
	border-radius: 5px;
	font-size: 0.72rem;
	color: var(--ohsa-muted);
}

.ohsa-error,
.ohsa-validation-summary {
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid #e5aaa6;
	border-radius: 7px;
	background: #fff5f4;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #9f241d;
}

.ohsa-validation-summary {
	margin-bottom: 14px;
}

.ohsa-field.has-error .ohsa-shell {
	border-color: #d95f57;
	box-shadow: 0 0 0 3px rgba(217, 95, 87, 0.12);
}

.ohsa-field .leaflet-container {
	font-family: inherit;
}

.ohsa-field .leaflet-control-attribution {
	font-size: 9px;
}

@media (max-width: 767px) {
	.ohsa-shell {
		grid-template-columns: 1fr;
	}

	.ohsa-panel {
		border-top: 1px solid var(--ohsa-border);
		border-left: 0;
	}

	.ohsa-map {
		min-height: 310px;
	}

	.ohsa-city-search {
		flex-wrap: wrap;
	}

	.ohsa-search-input,
	.ohsa-search-button {
		width: 100%;
	}
}

/* Storage fields are submitted with Gravity Forms but never displayed. */
.ohsa-gform-hidden-fields,
.ohsa-form-json-input,
.ohsa-form-summary-input,
.ohsa-json-input,
.ohsa-summary-input {
	display: none !important;
}
