.so-stores-page {
  padding-block: clamp(40px, 6vw, 92px) clamp(66px, 8vw, 122px);
  background: #fafafa;
}

.so-locator {
  --locator-accent: var(--so-brand-red, #9b2626);
  --locator-tint: #fcf0ef;
  width: min(1400px, calc(100% - 2 * var(--so-gutter, 24px)));
  margin-inline: auto;
  color: var(--so-ink);
}

.so-locator--home { margin-block-end: clamp(48px, 7vw, 96px); }

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

.so-locator-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 22px;
  margin-block-end: clamp(18px, 3vw, 35px);
}

.so-locator .so-locator-header :is(h1, h2) {
  margin: 0;
  font: 400 clamp(2.1rem, 4.6vw, 4.3rem) / 1 Georgia, "Times New Roman", serif;
  letter-spacing: -.044em;
}

:dir(rtl) .so-locator .so-locator-header :is(h1, h2) {
  font-family: var(--so-font, Arial, sans-serif);
  letter-spacing: normal;
}

.so-locator-layout {
  display: grid;
  grid-template-columns: minmax(290px, 2fr) minmax(0, 3fr);
  overflow: hidden;
  border: 1px solid var(--so-border);
  border-radius: 10px;
  background: #fff;
}

.so-locator-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(18px, 2.8vw, 38px);
  background: #fff;
}

.so-locator-regions {
  display: flex;
  gap: 5px;
  margin-block-end: 17px;
  padding: 4px;
  border: 1px solid var(--so-border);
  border-radius: 999px;
  background: var(--so-subtle);
}

.so-locator-regions button {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--so-ink);
  font: inherit;
  font-size: .87rem;
  font-weight: 700;
  cursor: pointer;
}

.so-locator-regions button:hover { background: #fff; color: var(--locator-accent); }

.so-locator-regions button[aria-pressed="true"] {
  background: var(--locator-accent);
  color: #fff;
}

.so-locator-branch-group + .so-locator-branch-group { margin-block-start: 12px; }
.so-locator-branch-group[hidden] + .so-locator-branch-group { margin-block-start: 0; }
.so-locator-branch-group h3 { margin: 6px 0; color: var(--locator-accent); font-size: 1rem; }
.so-locator--interactive [data-so-locator-group-label] { display: none; }

.so-locator-branch-group ul { display: grid; margin: 0; padding: 0; list-style: none; }

.so-locator-branch {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 12px 10px;
  border-top: 1px solid var(--so-border);
  color: var(--so-ink);
  text-decoration: none;
}

.so-locator-branch:hover { color: var(--locator-accent); background: #fafafa; }

.so-locator-branch[aria-current="true"] {
  border-top-color: transparent;
  border-radius: 6px;
  background: var(--locator-tint);
  box-shadow: inset 3px 0 var(--locator-accent);
}

:dir(rtl) .so-locator-branch[aria-current="true"] { box-shadow: inset -3px 0 var(--locator-accent); }
.so-locator-branch-pin { display: grid; place-items: center; min-width: 0; color: var(--locator-accent); }
.so-locator-branch-pin .so-icon { width: 20px; height: 20px; }
.so-locator-branch-chevron .so-icon { width: 14px; height: 14px; color: var(--locator-accent); }
.so-locator-branch-text { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.so-locator-branch-text strong { font-size: .97rem; line-height: 1.22; }
.so-locator-branch-text > span { color: var(--so-muted); font-size: .79rem; line-height: 1.42; }

.so-locator-map {
  display: grid;
  grid-template-rows: minmax(340px, 1fr) auto;
  min-width: 0;
  background: var(--so-subtle);
  scroll-margin-block-start: 104px;
}

.so-locator-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.so-locator-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-width: 0;
  padding: 14px clamp(14px, 2.2vw, 28px);
  border-top: 1px solid var(--so-border);
  background: #fff;
}

.so-locator-selected { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.so-locator-selected strong { font-size: .94rem; line-height: 1.22; }
.so-locator-selected span { color: var(--so-muted); font-size: .78rem; line-height: 1.42; }

.so-locator-directions { flex-shrink: 0; }

.so-locator :is(a, button):focus-visible { outline: 2px solid var(--locator-accent); outline-offset: 3px; }
.so-locator-branch:focus-visible { outline-offset: -3px; }
:dir(rtl) .so-locator .so-locator-branch-chevron .so-icon {
  transform: scaleX(-1);
}

@media (max-width: 760px) {
  .so-locator-layout { grid-template-columns: minmax(0, 1fr); }
  .so-locator-list { padding: 15px; }
  .so-locator-branch { min-height: 57px; }
  .so-locator-map { grid-template-rows: clamp(260px, 68vw, 420px) auto; }
}

@media (max-width: 380px) {
  .so-locator-header { align-items: start; flex-direction: column; }
  .so-locator-map-footer { align-items: stretch; flex-direction: column; }
  .so-locator-branch { column-gap: 8px; padding-inline: 6px; }
}
