/* Token colours live here. Component rules use the variables only. */

[data-oew-locator] {
    --oewl-text: #16181D;
    --oewl-muted: #5B6270;
    --oewl-rule: #E3E5E9;
    --oewl-surface: #FFFFFF;
    --oewl-panel: #F5F6F8;
    --oewl-accent: #24469F;
    --oewl-accent-text: #FFFFFF;
    --oewl-pin: #16181D;
    --oewl-pin-selected: #2A8CD8;
    display: block;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 16px;
    background: var(--oewl-surface);
    color: var(--oewl-text);
    font-family: inherit;
    line-height: 1.4;
}

[data-oew-locator][data-preset="oew-llc"] {
    --oewl-accent: #203772;
    --oewl-pin: #16181D;
    --oewl-pin-selected: #203772;
}

[data-oew-locator][data-preset="4play"] {
    --oewl-accent: #DA2625;
    --oewl-pin: #16181D;
    --oewl-pin-selected: #DA2625;
}

[data-oew-locator][data-preset="defiant"] {
    --oewl-accent: #16181D;
    --oewl-pin: #16181D;
    --oewl-pin-selected: #BC1C1B;
}

[data-oew-locator][data-preset="b2b"] {
    --oewl-accent: #24469F;
    --oewl-pin: #16181D;
    --oewl-pin-selected: #2A8CD8;
}

[data-oew-locator] *,
[data-oew-locator] *::before,
[data-oew-locator] *::after {
    box-sizing: border-box;
}

[data-oew-locator] [hidden] {
    display: none !important;
}

[data-oew-locator] :focus-visible {
    outline: 2px solid var(--oewl-accent);
    outline-offset: 2px;
}

[data-oew-locator] button,
[data-oew-locator] input,
[data-oew-locator] a {
    font-family: inherit;
}

.oewl-heading {
    margin: 0;
    color: var(--oewl-text);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.oewl-head .oewl-heading {
    font-size: 1.35rem;
}

.oewl-sub,
.oewl-hours,
.oewl-geo,
.oewl-count,
.oewl-dist,
.oewl-street,
.oewl-place {
    color: var(--oewl-muted);
}

.oewl-sub {
    margin: 6px 0 0;
}

.oewl-search {
    margin-top: 16px;
}

.oewl-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.oewl-search-row,
.oewl-actions,
.oewl-sheet-actions,
.oewl-become-actions,
.oewl-views,
.oewl-radius,
.oewl-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oewl-search-row input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--oewl-rule);
    border-radius: 6px;
    background: var(--oewl-surface);
    color: var(--oewl-text);
    font-size: 1rem;
}

.oewl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--oewl-rule);
    border-radius: 6px;
    background: var(--oewl-surface);
    color: var(--oewl-text);
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.oewl-btn-primary,
.oewl-radius [aria-pressed="true"],
.oewl-brands [aria-pressed="true"],
.oewl-views [aria-pressed="true"] {
    border-color: var(--oewl-accent);
    background: var(--oewl-accent);
    color: var(--oewl-accent-text);
}

.oewl-msg {
    margin: 8px 0 0;
}

.oewl-radius,
.oewl-brands,
.oewl-tabs,
.oewl-views {
    margin-top: 12px;
}

.oewl-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--oewl-rule);
}

.oewl-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--oewl-muted);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.oewl-tab[aria-selected="true"] {
    border-bottom-color: var(--oewl-accent);
    color: var(--oewl-text);
}

.oewl-views {
    display: none;
}

.oewl-main {
    margin-top: 12px;
}

.oewl-list {
    background: var(--oewl-panel);
    padding: 12px;
}

.oewl-status {
    margin: 0 0 10px;
    font-weight: 700;
}

.oewl-mapwrap {
    position: relative;
    min-width: 0;
    background: var(--oewl-panel);
}

.oewl-map {
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.oewl-area {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    border: 1px solid var(--oewl-rule);
    border-radius: 999px;
    background: var(--oewl-surface);
    color: var(--oewl-text);
    font-family: inherit;
    min-height: 40px;
    padding: 8px 14px;
    cursor: pointer;
}

.oewl-sheet {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px;
    border-top: 1px solid var(--oewl-rule);
    background: var(--oewl-surface);
}

.oewl-sheet-top {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.oewl-sheet-actions .oewl-btn {
    flex: 1 1 0;
    min-height: 44px;
}

.oewl-card {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--oewl-rule);
    border-radius: 8px;
    background: var(--oewl-surface);
}

.oewl-card.is-on {
    border-color: var(--oewl-pin-selected);
    border-width: 2px;
}

.oewl-pick {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "num name dist"
        "num street street"
        "num place place";
    gap: 2px 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.oewl-num {
    grid-area: num;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--oewl-pin);
    color: var(--oewl-surface);
    font-weight: 700;
}

.oewl-card.is-on .oewl-num {
    background: var(--oewl-pin-selected);
}

.oewl-name {
    grid-area: name;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.oewl-dist {
    grid-area: dist;
    white-space: nowrap;
}

.oewl-street {
    grid-area: street;
    overflow-wrap: anywhere;
}

.oewl-place {
    grid-area: place;
    overflow-wrap: anywhere;
}

.oewl-tel {
    display: inline-block;
    margin-top: 8px;
    color: var(--oewl-accent);
}

.oewl-actions {
    margin-top: 8px;
}

.oewl-more {
    min-height: 44px;
    margin-top: 4px;
    border: 1px solid var(--oewl-rule);
    border-radius: 6px;
    background: var(--oewl-surface);
    color: var(--oewl-text);
    font-family: inherit;
    padding: 8px 14px;
    cursor: pointer;
}

.oewl-region {
    margin-top: 14px;
}

.oewl-region > .oewl-heading {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.oewl-country {
    border-top: 1px solid var(--oewl-rule);
}

.oewl-country-btn {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--oewl-text);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.oewl-country-panel {
    padding-bottom: 8px;
}

.oewl-states {
    margin-top: 20px;
}

.oewl-states .oewl-heading {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.oewl-state-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.oewl-state {
    min-height: 44px;
    padding: 8px 10px;
    overflow-wrap: anywhere;
    border: 1px solid var(--oewl-rule);
    border-radius: 6px;
    background: var(--oewl-surface);
    color: var(--oewl-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.oewl-state[aria-pressed="true"] {
    border-color: var(--oewl-accent);
}

.oewl-foot {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--oewl-rule);
}

.oewl-phone-line {
    margin: 6px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.oewl-phone-line a {
    color: var(--oewl-accent);
    text-decoration: none;
}

.oewl-hours,
.oewl-geo {
    margin: 4px 0 0;
}

.oewl-popup .maplibregl-popup-content {
    background: var(--oewl-surface);
    color: var(--oewl-text);
    font-family: inherit;
}

.oewl-popup a {
    color: var(--oewl-accent);
}

[data-oew-locator] .maplibregl-map,
[data-oew-locator] .maplibregl-ctrl {
    font-family: inherit;
}

@media (min-width: 750px) and (max-width: 989px) {
    .oewl-main {
        display: flex;
        flex-direction: column;
    }

    .oewl-mapwrap {
        order: -1;
        height: 480px;
    }

    .oewl-list {
        max-height: 728px;
        overflow: auto;
    }
}

@media (min-width: 990px) {
    .oewl-main {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .oewl-list {
        flex: 0 0 420px;
        width: 420px;
        height: 728px;
        overflow: auto;
    }

    .oewl-mapwrap {
        flex: 1 1 auto;
        height: 728px;
    }
}

@media (max-width: 749px) {
    [data-oew-locator] {
        padding: 12px;
    }

    .oewl-views {
        display: flex;
    }

    .oewl-search-row input {
        flex-basis: 100%;
    }

    .oewl-search-row .oewl-btn,
    .oewl-btn,
    .oewl-state,
    .oewl-tab,
    .oewl-view,
    .oewl-area {
        min-height: 44px;
    }

    .oewl-state-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oewl-mapwrap {
        height: 70vh;
        min-height: 320px;
    }

    .oewl.is-list .oewl-mapwrap {
        display: none;
    }

    .oewl.is-map .oewl-list,
    .oewl.is-map .oewl-states {
        display: none;
    }

    .oewl .maplibregl-ctrl-bottom-right {
        top: 8px;
        bottom: auto;
    }
}

/* ---------- Polish 2026-10-16 (Clint review) ----------
   Sizes in px: themes set the page root font size (B2B uses 62.5%), which shrank every rem in this
   file. Closer to the approved design: big uppercase heading, tall search row, bold tabs and cards. */
[data-oew-locator] {
    font-size: 16px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}
.oewl-head .oewl-heading {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.05;
    letter-spacing: 0.02em;
}
.oewl-sub { font-size: 17px; }
.oewl-label {
    color: var(--oewl-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.oewl-search-row input {
    min-height: 52px;
    border: 2px solid var(--oewl-text);
    border-radius: 4px;
    font-size: 17px;
}
.oewl-btn {
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.oewl-search-row .oewl-btn {
    min-height: 52px;
    padding: 0 18px;
    font-size: 15px;
}
.oewl-search-row .oewl-btn-primary {
    padding: 0 26px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.oewl-radius .oewl-btn,
.oewl-brands .oewl-btn,
.oewl-views .oewl-btn { min-height: 40px; font-size: 14px; }
.oewl-tab { font-size: 15px; border-bottom-width: 3px; }
.oewl-status { font-size: 16px; }
.oewl-card { padding: 14px 16px; border-radius: 6px; }
.oewl-name { font-size: 17px; line-height: 1.25; }
.oewl-street,
.oewl-place { font-size: 14px; }
.oewl-dist { color: var(--oewl-text); font-size: 14px; font-weight: 700; }
.oewl-tel { color: var(--oewl-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.oewl-actions .oewl-btn { min-height: 36px; font-size: 13px; font-weight: 700; }
.oewl-actions .oewl-btn:first-child {
    border-color: var(--oewl-text);
    background: var(--oewl-text);
    color: var(--oewl-surface);
}
.oewl-states .oewl-heading,
.oewl-region > .oewl-heading { font-size: 22px; }
.oewl-state,
.oewl-country-btn { font-size: 15px; }
.oewl-more { font-size: 14px; }
.oewl-phone-line { font-size: 24px; }
.oewl-popup .maplibregl-popup-content { padding: 12px 14px; font-size: 14px; line-height: 1.4; }
@media (max-width: 749px) {
    [data-oew-locator] { padding: 20px 12px 32px; }
    .oewl-head .oewl-heading { font-size: 28px; }
    .oewl-search-row .oewl-btn { flex: 1 1 auto; }
}
@media (max-width: 749px) {
    .oewl-tab { padding: 10px 6px; font-size: 14px; letter-spacing: 0.02em; }
}

/* ---------- Type-ahead suggestions (2026-10-16) ---------- */
.oewl-combo {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
}
.oewl-combo input {
    width: 100%;
}
.oewl-suggest {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 340px;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--oewl-rule);
    border-radius: 6px;
    background: var(--oewl-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.oewl-opt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 44px;
    padding: 8px 14px;
    cursor: pointer;
}
.oewl-opt[aria-selected="true"],
.oewl-opt:hover {
    background: var(--oewl-panel);
}
.oewl-opt-label {
    color: var(--oewl-text);
    font-size: 16px;
    font-weight: 600;
}
.oewl-opt-sub {
    color: var(--oewl-muted);
    font-size: 13px;
}
@media (max-width: 749px) {
    .oewl-combo { flex-basis: 100%; }
}
