#serviceLocator{
	margin-bottom: 6rem;
}
/* Keep form, status and result styling inside the plugin shell rather than restyling the theme. */
#serviceLocator .msl {
	--msl-blue: var(--wp--preset--color--multiplex-blue, #08088f);
	color: #262626;
	font-size: 16px;
	line-height: 1.6;
}
/* Preserve the no-JavaScript hidden form even if theme form styles set a display value. */
#serviceLocator .msl [hidden] { display: none !important; }
#serviceLocator .msl :is(h2, h3, p) { color: inherit; }
#serviceLocator .msl h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.3; }
#serviceLocator .msl h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.35; }
#serviceLocator .msl p { margin: 0 0 16px; font-size: 16px; }
#serviceLocator .msl-form { padding: 24px; border: 1px solid #c5ced8; border-radius: 8px; background: #f7f9fc; }
#serviceLocator .msl-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#serviceLocator .msl-fields > * { min-width: 0; }
#serviceLocator .msl label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 600; }
#serviceLocator .msl :is(input, select, button) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #617486; border-radius: 4px; background: #fff; color: #262626; font: inherit; }
#serviceLocator .msl small { display: block; margin-top: 6px; font-size: 13px; }
#serviceLocator .msl-submit { align-self: start; padding-top: 31px; }
#serviceLocator .msl button { border-color: var(--msl-blue); background: var(--msl-blue); color: #fff; font-weight: 700; cursor: pointer; }
#serviceLocator .msl button:hover { filter: brightness(0.85); }
#serviceLocator .msl button:disabled { opacity: 0.65; cursor: wait; }
#serviceLocator .msl select { appearance: none; display: block; height: 46px; padding: 10px 36px 10px 12px; border: 1px solid #617486; border-radius: 4px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23262626' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; color: #262626; font: inherit; font-weight: 400; line-height: 24px; text-align: left; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; }
#serviceLocator .msl select:hover { filter: none; border-color: #3c516a; }
#serviceLocator .msl select:disabled { opacity: 0.65; cursor: not-allowed; }
#serviceLocator .msl :is(a, input, select, button, [tabindex]):focus-visible { outline: 3px solid var(--msl-blue); outline-offset: 3px; }
#serviceLocator .msl .msl-status { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--msl-blue); background: #f1f5fa; }
#serviceLocator .msl .msl-error { border-color: #b32025; background: #fff1f1; }
#serviceLocator .msl-results { display: grid; gap: 16px; margin-bottom: 20px; }
#serviceLocator .msl-card { min-width: 0; padding: 20px; border: 1px solid #d5dce3; border-radius: 24px; box-shadow: 0 2px 4px #182f4614; overflow-wrap: anywhere; }
#serviceLocator .msl-card h3 { margin-bottom: 4px; font-size: 19px; font-weight: 700; }
#serviceLocator .msl .msl-company-count, #serviceLocator .msl .msl-sort-note, #serviceLocator .msl .msl-distance-note { color: #536780; font-size: 13px; }
#serviceLocator .msl .msl-company-count { margin-bottom: 18px; }
#serviceLocator .msl-location-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; }
#serviceLocator .msl-location-row + .msl-location-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid #d5dce3; }
#serviceLocator .msl .msl-column-heading { margin: 0 0 12px; color: #343e47; font-size: 14px; font-weight: 700; line-height: 1.4; text-transform: uppercase; }
#serviceLocator .msl .msl-distance { margin-bottom: 0; color: #3c516a; font-weight: 600; }
#serviceLocator .msl .msl-location-name { margin-bottom: 6px; font-weight: 600; }
#serviceLocator .msl .msl-address { margin-bottom: 12px; }
#serviceLocator .msl-contracts { margin: 0; padding: 0; list-style: none; }
#serviceLocator .msl-contracts li + li { margin-top: 12px; }
#serviceLocator .msl-brand-label { display: block; margin-bottom: 6px; }
#serviceLocator .msl-authorization { display: inline-block; margin: 0 6px 6px 0; padding: 3px 8px; border: 1px solid #d5dce3; border-radius: 12px; color: #3c516a; font-size: 12px; line-height: 1.5; }
#serviceLocator .msl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#serviceLocator .msl-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
#serviceLocator .msl-icon { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; margin-right: 0.45em; vertical-align: -0.15em; fill: currentColor; color: #76716b; }
#serviceLocator .msl-column-heading .msl-icon { width: 24px; height: 24px; vertical-align: -0.4em; }
#serviceLocator .msl-icon-installation { width: 18px; height: 18px; color: #747474; }
#serviceLocator .msl-contacts a { position: relative; padding-left: 1.45em; }
#serviceLocator .msl-contacts .msl-icon { position: absolute; top: 0.3em; left: 0; margin: 0; }
#serviceLocator .msl a { overflow-wrap: anywhere; }
/* Temporarily hide debugging output without disabling the live preview logic. */
#serviceLocator .msl-payload-preview { display: none; margin-top: 20px; padding: 18px; border: 1px solid #c5ced8; border-radius: 8px; background: #f7f9fc; }
#serviceLocator .msl-payload-preview pre { margin: 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; color: #262626; font-size: 14px; line-height: 1.5; }
#serviceLocator .msl-payload-preview code { font: inherit; font-family: monospace; }
#serviceLocator .msl-payload-preview pre + h3 { margin-top: 20px; }
/* Reduce the form grid without changing field order, so visual and keyboard flows stay aligned. */
@media (max-width: 900px) {
	#serviceLocator .msl-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	#serviceLocator .msl-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	#serviceLocator .msl-form, #serviceLocator .msl-card { padding: 18px; }
	#serviceLocator .msl-location-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 440px) {
	#serviceLocator .msl-fields { grid-template-columns: minmax(0, 1fr); }
	#serviceLocator .msl-submit { padding-top: 0; }
	#serviceLocator .msl h2 { font-size: 25px; }
}
