/* Public branch finder: scoped to the locator and its independent directory. */
.ds-branch-finder, .ds-branch-directory {
    --ds-ink: #102d4c;
    --ds-blue: #002e6e;
    --ds-muted: #526879;
    --ds-line: #dbe5eb;
    --ds-soft: #f2f6f9;
    color: var(--ds-ink);
    font-family: quicksand, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
.ds-branch-finder *, .ds-branch-directory * { box-sizing: border-box; }
.ds-branch-finder ::selection, .ds-branch-directory ::selection { color: #fff; background: #002e6e; }
.ds-branch-finder a, .ds-branch-directory a { text-underline-offset: 4px; }
.ds-branch-finder :focus-visible, .ds-branch-directory :focus-visible { outline: 3px solid #1476bf; outline-offset: 4px; }
.ds-branch-finder [hidden] { display: none !important; }
.ds-branch-tools { position: relative; padding: 12px 0 24px; }
.ds-finder-intro { max-width: 760px; }
.ds-branch-finder .ds-finder-intro h2 { margin: 0 0 12px; color: var(--ds-blue); font-size: clamp(30px, 3.1vw, 44px); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; }
.ds-finder-intro h2 span { color: #526879; }
.ds-finder-intro p { max-width: 650px; margin: 0 0 20px; color: var(--ds-muted); font-size: 17px; }
.ds-branch-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 !important; }
.ds-branch-shortcuts li { padding: 0; margin: 0; }
.ds-branch-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--ds-line); border-radius: 24px; color: var(--ds-ink); background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s ease-out, border-color .18s ease-out; }
.ds-branch-shortcuts a:hover { background: var(--ds-soft); border-color: #8ba6be; }
#ds-nearest-tools { margin-top: 8px; }
#ds-nearest-branch { display: inline-flex; gap: 9px; justify-content: center; align-items: center; min-height: 52px; padding: 10px 20px; border: 1px solid #b3c4d4; border-radius: 10px; background: #fff; color: var(--ds-blue) !important; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; cursor: pointer; white-space: nowrap; text-transform: none; }
#ds-nearest-branch svg { width: 20px; height: 20px; flex: none; }
#ds-nearest-branch:hover { background: #edf3f8; }
#ds-nearest-branch:disabled { opacity: .65; cursor: wait; }
#ds-location-help { margin: 10px 0 0; color: var(--ds-muted); font-size: 13px; }
#ds-location-status, #ds-area-status { margin: 12px 0; color: var(--ds-ink); font-size: 14px; }
#ds-location-status:empty, #ds-area-status:empty { display: none; }
.ds-branch-finder .ds-branch-name, .ds-branch-directory .ds-branch-name { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.ds-branch-finder #wpsl-stores h3 .ds-branch-name, .ds-branch-finder .leaflet-popup-content h3 .ds-branch-name, .ds-branch-directory h3 .ds-branch-name { font: inherit !important; }
.ds-branch-name:hover { text-decoration: underline; }
.ds-branch-finder #wpsl-map .ds-map-interact { min-height: 44px; padding: 10px 14px; border: 1px solid #a8bdce; border-radius: 8px; background: #fff; color: #002e6e !important; font: 600 14px/1.4 quicksand, sans-serif; cursor: pointer; text-transform: none; letter-spacing: normal; }
.ds-branch-finder #wpsl-map .ds-map-interact:hover, .ds-branch-finder #wpsl-map .ds-map-interact[aria-pressed="true"] { background: #edf3f8; }
.ds-location-pin { color: #002e6e; }
.ds-location-pin.ds-current-location { color: #b01224; }
.ds-location-pin svg { display: block; width: 26px; height: 34px; }
.ds-branch-finder #wpsl-wrap { display: grid; grid-template-columns: minmax(310px, .44fr) minmax(0, .56fr); gap: 0; margin: 0; width: 100%; overflow: visible; }
.ds-branch-finder #wpsl-wrap .wpsl-search { grid-column: 1 / -1; padding: 20px 0 22px; margin: 0; background: transparent; border-top: 1px solid var(--ds-line); border-radius: 0; }
.ds-branch-finder #wpsl-search-wrap { width: 100%; }
.ds-branch-finder #wpsl-search-wrap form { display: flex; gap: 10px; align-items: center; width: 100%; }
.ds-branch-finder #wpsl-wrap .wpsl-input { flex: 1; min-width: 0; margin: 0; position: relative; height: 52px !important; }
.ds-branch-finder #wpsl-wrap .wpsl-input > div:has(label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.ds-branch-finder #wpsl-search-input { width: 100%; height: 52px !important; min-height: 52px !important; max-height: 52px !important; margin: 0; padding: 13px 16px; border: 1px solid #a8bdce; border-radius: 10px; color: var(--ds-ink); background: #fff; font: inherit; caret-color: var(--ds-blue); }
.ds-branch-finder #wpsl-search-input::placeholder { color: #526879; opacity: 1; }
.ds-branch-finder #wpsl-wrap .wpsl-search-btn-wrap { margin: 0; flex: none; height: 52px !important; }
.ds-branch-finder #wpsl-search-btn { height: 52px !important; min-height: 52px !important; max-height: 52px !important; min-width: 124px; margin: 0; padding: 12px 24px; border: 0; border-radius: 10px; background: var(--ds-blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: none; }
.ds-branch-finder #wpsl-search-btn:hover { background: #064b8e; }
.ds-branch-finder #wpsl-search-btn:disabled { opacity: .65; cursor: wait; }
.ds-branch-finder #wpsl-wrap .ds-location-inline { flex: none; }
.ds-branch-finder #wpsl-wrap .wpsl-search-btn-wrap input { float: none; }
.ds-branch-finder #wpsl-map { grid-column: 2; grid-row: 2; float: none; width: 100%; height: 560px !important; margin: 0; border-radius: 0 14px 14px 0; background: #e6edf1; z-index: 0; }
.ds-branch-finder #wpsl-result-list { grid-column: 1; grid-row: 2; width: 100%; float: none; margin: 0; border: 1px solid var(--ds-line); border-radius: 14px 0 0 14px; overflow: hidden; background: #fff; }
.ds-results-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 24px; border-bottom: 1px solid var(--ds-line); background: var(--ds-soft); }
.ds-branch-finder .ds-results-header h3 { margin: 0; color: var(--ds-ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
.ds-results-header p { margin: 0; color: var(--ds-muted); font-size: 12px; }
.ds-branch-finder #wpsl-result-list #wpsl-stores { height: 500px !important; padding: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #9bb1c2 #eef3f6; }
.ds-branch-finder #wpsl-result-list #wpsl-stores > ul { margin: 0; padding: 0; }
.ds-branch-finder #wpsl-result-list #wpsl-stores li { padding: 24px; margin: 0; border: 0; border-bottom: 1px solid var(--ds-line); background: #fff; }
.ds-branch-finder #wpsl-result-list #wpsl-stores li:last-child { border-bottom: 0; }
.ds-branch-finder #wpsl-result-list #wpsl-stores li:hover { background: #f8fafc; }
.ds-result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ds-branch-finder #wpsl-result-list #wpsl-stores h3 { color: var(--ds-ink); font-size: 21px !important; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.ds-distance { flex: none; font-size: 13px; font-weight: 600; color: var(--ds-muted); font-variant-numeric: tabular-nums; }
.ds-branch-finder #wpsl-result-list #wpsl-stores .ds-address { color: var(--ds-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.ds-result-actions { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.ds-directions { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ds-blue); text-decoration: none; min-height: 44px; }
.ds-directions:hover { text-decoration: underline; }
.ds-directions svg { width: 15px; height: 15px; }
.ds-hours { font-size: 13px; color: var(--ds-muted); }
.ds-hours summary { min-height: 44px; padding: 11px 0; cursor: pointer; color: var(--ds-ink); }
.ds-hours[open] { width: 100%; }
.ds-hours table { width: 100%; margin: 10px 0 0; font-size: 13px; color: var(--ds-muted); }
.ds-hours td { padding: 4px 0; border: 0; }
.ds-branch-finder .leaflet-popup-content { font-family: inherit; }
.ds-branch-finder .leaflet-control-attribution { color: #334f66; background: #fff; font-size: 11px; }
.ds-branch-finder .leaflet-control-attribution a { color: #002e6e; }
.ds-branch-finder .wpsl-skip-to-results { grid-column: 1 / -1; }
.ds-branch-finder .wpsl-preloader { grid-column: 1 / -1; }
.ds-branch-directory { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ds-line); }
.ds-directory-heading { margin-bottom: 24px; }
.ds-branch-directory h2 { color: var(--ds-ink); font-size: 26px; margin: 0 0 8px; line-height: 1.25; }
.ds-directory-heading p { color: var(--ds-muted); margin: 0; font-size: 14px; }
.ds-branch-directory > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.ds-branch-directory > ul > li { padding: 24px 0; border-top: 1px solid var(--ds-line); scroll-margin-top: 30px; }
.ds-branch-directory > ul > li:target { background: #edf3f8; border-radius: 12px; padding: 24px 16px; }
.ds-branch-directory h3 { color: var(--ds-ink); margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.ds-branch-directory li p { color: var(--ds-muted); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.ds-branch-directory details { font-size: 14px; margin: 0 0 8px; }
.ds-branch-directory summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.ds-branch-directory dl, .ds-hours dl { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4px 12px; font-size: 13px; margin: 12px 0; }
.ds-branch-directory dt, .ds-branch-directory dd, .ds-hours dt, .ds-hours dd { margin: 0; }
.ds-branch-directory li > a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ds-blue); font-size: 14px; font-weight: 600; }
.ds-map-credit { color: var(--ds-muted); margin: 24px 0 0; font-size: 12px; }
@media (max-width: 800px) {
    .ds-branch-finder #wpsl-wrap { grid-template-columns: minmax(0, 1fr); }
    .ds-branch-finder #wpsl-map { grid-column: 1; grid-row: 2; height: 320px !important; border-radius: 14px 14px 0 0; }
    .ds-branch-finder #wpsl-map.ds-map-scroll { touch-action: pan-y; }
    .ds-branch-finder #wpsl-result-list { grid-column: 1; grid-row: 3; border-radius: 0 0 14px 14px; overflow: visible; }
    .ds-branch-finder #wpsl-result-list #wpsl-stores { height: auto !important; max-height: none !important; overflow: visible !important; }
    .ds-results-header p { display: none; }
    .ds-branch-finder .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
    .ds-branch-finder #wpsl-search-wrap form { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; }
    .ds-branch-finder #wpsl-wrap .wpsl-input, .ds-branch-finder #wpsl-wrap .wpsl-search-btn-wrap { width: 100%; margin: 0; clear: none; float: none; }
    .ds-branch-finder #wpsl-search-btn { width: 100%; min-width: 0; }
    .ds-branch-finder #wpsl-wrap .wpsl-input { flex-basis: calc(100% - 135px); }
    .ds-branch-finder #wpsl-wrap .ds-location-inline { grid-column: 1 / -1; }
    .ds-branch-finder #ds-nearest-branch { width: 100%; }
    .ds-branch-directory > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 480px) {
    .ds-branch-tools { padding-top: 0; }
    .ds-branch-finder .ds-finder-intro h2 { font-size: 30px; }
    .ds-finder-intro p { font-size: 15px; margin-bottom: 20px; }
    .ds-branch-shortcuts { gap: 7px; }
    .ds-branch-shortcuts a { padding: 8px 14px; font-size: 13px; }
    .ds-branch-finder #wpsl-search-btn { min-width: 90px; padding: 12px 14px; font-size: 14px; }
    .ds-branch-finder #wpsl-wrap .wpsl-input { flex-basis: calc(100% - 100px); }
    .ds-branch-finder #wpsl-search-input { font-size: 16px; padding: 12px; }
    .ds-branch-finder #wpsl-result-list #wpsl-stores li { padding: 20px; }
    .ds-branch-directory { margin-top: 36px; padding-top: 28px; }
    .ds-branch-directory > ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ds-branch-shortcuts a { transition: none; } }

.ds-branch-finder .leaflet-popup-content h3 { margin: 0; font-size: 20px !important; line-height: 1.3; color: var(--ds-ink); }
.ds-branch-finder .leaflet-popup-content .ds-address { color: var(--ds-muted); font-size: 14px; margin: 8px 0 0; }
.ds-branch-finder h2, .ds-branch-finder h3, .ds-branch-directory h2, .ds-branch-directory h3 { text-transform: none; }
