.h4-local-business,
.h4-local-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 100%;
}

.h4-local-business,
.h4-local-location-card,
.h4-local-locator__controls {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: var(--h4bs-radius-md, 6px);
    background: var(--h4bs-surface, #fff);
    color: var(--h4bs-text, #202124);
}

.h4-local-business {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.h4-local-business__details,
.h4-local-hours,
.h4-local-location-card {
    min-width: 0;
}

.h4-local-business h3,
.h4-local-location-card h3,
.h4-local-hours h4 {
    margin-block: 0 .75rem;
}

.h4-local-business address,
.h4-local-location-card address {
    margin: 0 0 .75rem;
    font-style: normal;
}

.h4-local-business__map {
    width: 100%;
    min-height: 18rem;
    border: 0;
    border-radius: var(--h4bs-radius-md, 6px);
}

.h4-local-hours dl {
    display: grid;
    grid-template-columns: minmax(7.5rem, auto) 1fr;
    gap: .4rem 1rem;
    margin: 0;
}

.h4-local-hours dt {
    font-weight: 650;
}

.h4-local-hours dd {
    margin: 0;
}

.h4-local-location-card {
    padding: 1rem;
}

.h4-local-directions {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .6rem .9rem;
    border-radius: var(--h4bs-radius-sm, 4px);
    background: var(--h4bs-primary, #126e67);
    color: var(--h4bs-on-primary, #fff);
    font-weight: 650;
    text-decoration: none;
}

.h4-local-directions:hover,
.h4-local-directions:focus-visible {
    filter: brightness(.9);
    color: var(--h4bs-on-primary, #fff);
}

.h4-local-locator {
    max-width: 100%;
}

.h4-local-locator__controls {
    display: grid;
    grid-template-columns: minmax(11rem, 1fr) auto auto auto;
    gap: .6rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 1rem;
}

.h4-local-locator__controls label:first-child {
    grid-column: 1;
}

.h4-local-locator__controls input,
.h4-local-locator__controls select,
.h4-local-locator__controls button {
    min-height: 2.75rem;
    max-width: 100%;
}

.h4-local-locator__controls input {
    grid-column: 1;
    width: 100%;
}

.h4-local-locator__status {
    min-height: 1.5em;
}

.h4-local-location-card[hidden] {
    display: none;
}

.h4-local-locator [hidden] {
    display: none !important;
}

.h4-local-location-card__distance {
    font-weight: 650;
}

@media (max-width: 767px) {
    .h4-local-locator__controls {
        grid-template-columns: 1fr;
    }

    .h4-local-locator__controls label:first-child,
    .h4-local-locator__controls input {
        grid-column: 1;
    }

    .h4-local-hours dl {
        grid-template-columns: minmax(6.5rem, auto) 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h4-local-directions {
        scroll-behavior: auto;
        transition: none;
    }
}
