﻿.scb-locator {
    --scb-blue: #0047ba;
    --scb-blue-2: #0075c0;
    --scb-ink: #17233c;
    --scb-muted: #667085;
    --scb-line: #e6eaf0;
    --scb-soft: #f5f8fc;
    --scb-white: #fff;
    padding: 46px 0 70px;
    background: #f7f9fc;
    color: var(--scb-ink);
}

.scb-locator *, .scb-locator *::before, .scb-locator *::after { box-sizing: border-box; }

.locator-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    padding: 36px;
    border-radius: 24px;
    background: linear-gradient(135deg, #003b93, #0075c0);
    color: #fff;
    box-shadow: 0 20px 55px rgba(0, 71, 186, .18);
}

.locator-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -95px;
    top: -130px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}

.locator-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    opacity: .82;
}

.locator-hero h1 { margin: 0 0 10px; color: #fff; font-size: 34px; line-height: 1.2; }
.locator-hero p { margin: 0; max-width: 650px; color: rgba(255,255,255,.88); font-size: 16px; }

.locator-hero__stats { display: flex; position: relative; z-index: 1; }
.stat { min-width: 100px; padding: 6px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.22); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; color: #fff; font-size: 25px; }
.stat span { font-size: 12px; opacity: .82; }

.locator-panel {
    position: relative;
    z-index: 2;
    margin: -12px 22px 28px;
    padding: 24px;
    border: 1px solid var(--scb-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(18, 38, 63, .08);
}

.locator-panel label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.search-box { position: relative; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: .55; }
.locator-input, .locator-select {
    width: 100%;
    height: 48px;
    border: 1px solid #d9e0e9;
    border-radius: 12px;
    background: #fff;
    color: var(--scb-ink);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.locator-input { padding: 0 16px; }
.locator-input--search { padding-left: 46px; font-size: 15px; }
.locator-select { padding: 0 12px; }
.locator-input:focus, .locator-select:focus { border-color: var(--scb-blue-2); box-shadow: 0 0 0 3px rgba(0,117,192,.12); }

.locator-filters {
    display: grid;
    grid-template-columns: 1fr 1.25fr auto;
    gap: 14px;
    align-items: end;
    margin-top: 16px;
}
.filter-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.locator-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none !important;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.locator-btn:hover { transform: translateY(-1px); }
.locator-btn--primary { background: var(--scb-blue); color: #fff !important; box-shadow: 0 8px 20px rgba(0,71,186,.18); }
.locator-btn--primary:hover { background: #003b9b; }
.locator-btn--secondary { background: #fff; color: var(--scb-blue) !important; border-color: #cfd8e6; }
.locator-btn--location { background: #eef6ff; color: var(--scb-blue); border-color: #cfe5ff; }
.locator-btn--small { min-height: 40px; padding: 0 15px; border-radius: 10px; }

.locator-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf0f4; color: var(--scb-muted); font-size: 13px; }
.locator-meta strong { color: var(--scb-ink); }
.location-status { color: var(--scb-blue); }

.locator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.location-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 22px;
    border: 1px solid var(--scb-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(18,38,63,.055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.location-card:hover { transform: translateY(-4px); border-color: #cbd8ea; box-shadow: 0 18px 38px rgba(18,38,63,.10); }
.location-card__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.location-badge, .distance-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.location-badge--branch { background: #eaf2ff; color: #0047ba; }
.location-badge--atm { background: #eaf9f3; color: #087a55; }
.distance-badge { background: #f2f4f7; color: #475467; }
.location-card__title { margin: 0 0 8px; color: var(--scb-ink); font-size: 20px; line-height: 1.3; }
.location-card__area { margin-bottom: 12px; color: var(--scb-blue); font-weight: 700; font-size: 13px; }
.location-card__address { margin: 0 0 17px; color: var(--scb-muted); line-height: 1.65; }
.location-card__details { display: grid; gap: 9px; margin-bottom: 20px; }
.location-detail { display: grid; gap: 2px; color: #475467; font-size: 13px; }
.detail-label { color: #98a2b3; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.location-card__actions { margin-top: auto; }
.is-hidden { display: none !important; }

.locator-empty, .locator-message, .locator-help {
    margin: 20px 0;
    padding: 26px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--scb-line);
}
.locator-empty { text-align: center; }
.locator-empty__icon { font-size: 30px; }
.locator-empty h3 { margin: 8px 0 5px; }
.locator-empty p { margin: 0; color: var(--scb-muted); }
.locator-message--error { border-color: #f1c4c4; background: #fff8f8; color: #9d2525; }

.locator-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.locator-help h3 { margin: 0 0 4px; }
.locator-help p { margin: 0; color: var(--scb-muted); }

@media (max-width: 991px) {
    .locator-hero { align-items: flex-start; flex-direction: column; }
    .locator-filters { grid-template-columns: 1fr 1fr; }
    .filter-actions { grid-column: 1 / -1; }
    .locator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .scb-locator { padding-top: 24px; }
    .locator-hero { padding: 26px 20px; border-radius: 18px; }
    .locator-hero h1 { font-size: 27px; }
    .locator-hero__stats { width: 100%; }
    .stat { flex: 1; min-width: 0; padding: 6px 8px; }
    .locator-panel { margin: 14px 0 22px; padding: 18px; }
    .locator-filters, .locator-grid { grid-template-columns: 1fr; }
    .filter-actions { grid-column: auto; }
    .filter-actions .locator-btn { flex: 1 1 45%; }
    .locator-meta, .locator-help { align-items: flex-start; flex-direction: column; }
}

/* ===== Locator page rules moved from Locator_New.aspx for CSP ===== */
.scb-locator .locator-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }
        .scb-locator .location-card {
            min-width: 0;
            padding: 15px;
            border-radius: 13px;
        }
        .scb-locator .location-card__title {
            margin: 9px 0 5px;
            font-size: 17px;
            line-height: 1.3;
        }
        .scb-locator .location-card__area,
        .scb-locator .location-card__address,
        .scb-locator .location-detail {
            font-size: 13px;
            line-height: 1.4;
        }
        .scb-locator .location-card__address { margin: 6px 0 9px; }
        .scb-locator .location-card__footer { margin-top: 10px; }
        .scb-locator .locator-panel { padding: 17px; }
        .scb-locator .locator-input,
        .scb-locator .locator-select {
            width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }

        @media (max-width: 991px) {
            .scb-locator .locator-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 767px) {
            .scb-locator { overflow-x: hidden; }
            .scb-locator .container {
                width: 100%;
                max-width: 100%;
                padding-left: 14px;
                padding-right: 14px;
                box-sizing: border-box;
            }
            .scb-locator .locator-hero {
                padding: 20px 16px;
                border-radius: 14px;
            }
            .scb-locator .locator-hero h1 {
                font-size: 25px;
                line-height: 1.2;
            }
            .scb-locator .locator-stats {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 7px;
            }
            .scb-locator .stat {
                min-width: 0;
                padding: 9px 5px;
            }
            .scb-locator .locator-panel {
                padding: 13px;
                border-radius: 13px;
            }
            .scb-locator .locator-filters {
                display: grid;
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .scb-locator .filter-actions {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .scb-locator .locator-btn {
                width: 100%;
                min-width: 0;
                padding: 10px 8px;
            }
            .scb-locator .locator-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .scb-locator .location-card {
                padding: 13px;
                border-radius: 11px;
            }
            .scb-locator .location-card__title { font-size: 16px; }
        }

        @media (max-width: 420px) {
            .scb-locator .locator-stats { grid-template-columns: 1fr; }
            .scb-locator .filter-actions { grid-template-columns: 1fr; }
        }

/* Compact locator layout */
        .scb-locator {
            font-size: 13px;
        }

        .scb-locator > .container {
            max-width: 1120px;
        }

        .scb-locator .locator-hero {
            padding: 20px 24px;
            margin-bottom: 14px;
            border-radius: 16px;
        }

        .scb-locator .locator-eyebrow {
            font-size: 10px;
            letter-spacing: 1.2px;
        }

        .scb-locator .locator-hero h1 {
            margin: 5px 0 6px;
            font-size: 25px;
            line-height: 1.15;
        }

        .scb-locator .locator-hero p {
            margin: 0;
            max-width: 620px;
            font-size: 12px;
            line-height: 1.5;
        }

        .scb-locator .locator-stats {
            gap: 8px;
        }

        .scb-locator .stat {
            padding: 9px 10px;
            border-radius: 11px;
        }

        .scb-locator .stat strong {
            font-size: 19px;
            line-height: 1;
        }

        .scb-locator .stat span {
            font-size: 10px;
        }

        .scb-locator .locator-panel {
            padding: 14px 16px;
            margin-bottom: 14px;
            border-radius: 14px;
        }

        .scb-locator .locator-search label,
        .scb-locator .filter-field label {
            margin-bottom: 5px;
            font-size: 11px;
        }

        .scb-locator .search-box,
        .scb-locator .locator-input,
        .scb-locator .locator-select {
            min-height: 38px;
        }

        .scb-locator .locator-input,
        .scb-locator .locator-select {
            padding: 8px 11px;
            font-size: 13px;
            border-radius: 10px;
        }

        .scb-locator .locator-filters {
            gap: 9px;
        }

        .scb-locator .filter-actions {
            align-items: end;
        }

        .scb-locator .locator-btn {
            min-height: 34px;
            padding: 7px 11px;
            font-size: 11px;
            border-radius: 9px;
        }

        .scb-locator .locator-meta {
            margin-top: 10px;
            padding-top: 9px;
            font-size: 11px;
        }

        .scb-locator .locator-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
        }

        .scb-locator .location-card {
            padding: 11px 12px;
            border-radius: 11px;
        }

        .scb-locator .location-card__top {
            margin-bottom: 5px;
        }

        .scb-locator .location-badge,
        .scb-locator .distance-badge {
            padding: 3px 7px;
            font-size: 9px;
            border-radius: 999px;
        }

        .scb-locator .location-card__title {
            margin: 5px 0 4px;
            font-size: 14px;
            line-height: 1.25;
        }

        .scb-locator .location-card__area {
            margin-bottom: 4px;
            font-size: 10.5px;
            line-height: 1.35;
        }

        .scb-locator .location-card__address {
            margin: 4px 0 6px;
            font-size: 10.5px;
            line-height: 1.4;
        }

        .scb-locator .location-detail {
            margin-top: 3px;
            font-size: 10px;
            line-height: 1.35;
        }

        .scb-locator .location-card__footer {
            margin-top: 8px;
            padding-top: 7px;
        }

        .scb-locator .location-card__footer .locator-btn,
        .scb-locator .location-card__footer a {
            min-height: 30px;
            padding: 6px 9px;
            font-size: 10px;
        }

        @media (max-width: 1199px) {
            .scb-locator .locator-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (max-width: 900px) {
            .scb-locator .locator-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .scb-locator .locator-hero {
                padding: 18px;
            }
        }

        @media (max-width: 600px) {
            .scb-locator > .container {
                padding-left: 10px;
                padding-right: 10px;
            }

            .scb-locator .locator-hero {
                padding: 15px;
                margin-bottom: 10px;
                border-radius: 12px;
            }

            .scb-locator .locator-hero h1 {
                font-size: 20px;
            }

            .scb-locator .locator-hero p {
                font-size: 11px;
            }

            .scb-locator .locator-stats {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 5px;
            }

            .scb-locator .stat {
                padding: 7px 4px;
            }

            .scb-locator .stat strong {
                font-size: 16px;
            }

            .scb-locator .locator-panel {
                padding: 11px;
                margin-bottom: 10px;
            }

            .scb-locator .locator-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 7px;
            }

            .scb-locator .location-card {
                padding: 9px;
            }

            .scb-locator .location-card__title {
                font-size: 12px;
            }

            .scb-locator .location-card__area,
            .scb-locator .location-card__address {
                font-size: 9.5px;
            }

            .scb-locator .location-detail {
                font-size: 9px;
            }
        }

        @media (max-width: 390px) {
            .scb-locator .locator-grid {
                grid-template-columns: 1fr;
            }
        }

/* Refined search + card design */
        .scb-locator > .container {
            max-width: 1180px;
        }

        .scb-locator .locator-panel {
            background: #fff;
            border: 1px solid #e7edf5;
            border-radius: 18px;
            padding: 16px 18px;
            box-shadow: 0 8px 28px rgba(21, 57, 96, 0.07);
        }

        .scb-locator .locator-search label,
        .scb-locator .filter-field label {
            display: block;
            margin: 0 0 6px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            color: #24364b;
        }

        .scb-locator .search-box {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            height: 44px;
            min-height: 44px;
            padding: 0 !important;
            overflow: hidden;
            background: #f8fafc;
            border: 1px solid #d9e3ef;
            border-radius: 12px;
            box-shadow: none;
        }

        .scb-locator .search-box:focus-within {
            background: #fff;
            border-color: #0b62c4;
            box-shadow: 0 0 0 3px rgba(11, 98, 196, 0.10);
        }

        .scb-locator .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            z-index: 2;
            width: 16px;
            height: 16px;
            margin: 0;
            padding: 0;
            transform: translateY(-50%);
            font-size: 0;
            pointer-events: none;
        }

        .scb-locator .search-icon:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 9px;
            height: 9px;
            border: 2px solid #6f849d;
            border-radius: 50%;
            box-sizing: border-box;
        }

        .scb-locator .search-icon:after {
            content: "";
            position: absolute;
            left: 10px;
            top: 10px;
            width: 6px;
            height: 2px;
            background: #6f849d;
            border-radius: 2px;
            transform: rotate(45deg);
            transform-origin: left center;
        }

        .scb-locator .search-box .locator-input,
        .scb-locator .locator-input--search {
            display: block;
            width: 100% !important;
            height: 42px !important;
            min-height: 42px !important;
            margin: 0 !important;
            padding: 0 14px 0 42px !important;
            background: transparent !important;
            border: 0 !important;
            outline: 0 !important;
            box-shadow: none !important;
            border-radius: 12px !important;
            font-size: 13px !important;
            line-height: 42px !important;
            color: #17283d !important;
            box-sizing: border-box !important;
        }

        .scb-locator .locator-input--search::placeholder {
            color: #8a99aa;
            opacity: 1;
        }

        .scb-locator .locator-filters {
            margin-top: 12px;
        }

        .scb-locator .locator-select {
            height: 40px;
            min-height: 40px;
            padding: 0 34px 0 12px;
            background-color: #fff;
            border: 1px solid #d9e3ef;
            border-radius: 11px;
            color: #26384d;
            font-size: 12px;
        }

        .scb-locator .locator-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
        }

        .scb-locator .location-card {
            position: relative;
            display: flex;
            flex-direction: column;
            min-height: 205px;
            padding: 14px;
            overflow: hidden;
            background: #fff;
            border: 1px solid #e4eaf2;
            border-radius: 15px;
            box-shadow: 0 5px 18px rgba(30, 59, 91, 0.06);
            transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
        }

        .scb-locator .location-card:hover {
            transform: translateY(-2px);
            border-color: #c8d9ee;
            box-shadow: 0 10px 24px rgba(30, 59, 91, 0.10);
        }

        .scb-locator .location-card:before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: #0757b8;
        }

        .scb-locator .location-card__top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 24px;
            margin: 0 0 8px;
        }

        .scb-locator .location-badge {
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            padding: 3px 8px;
            background: #edf4ff;
            border-radius: 999px;
            color: #0757b8;
            font-size: 9px;
            font-weight: 700;
            line-height: 1;
            text-transform: uppercase;
            letter-spacing: .25px;
        }

        .scb-locator .location-badge--atm {
            background: #eef8f5;
            color: #16745b;
        }

        .scb-locator .location-card__title {
            margin: 0 0 7px;
            color: #17283d;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.3;
        }

        .scb-locator .location-card__area {
            display: flex;
            align-items: center;
            gap: 4px;
            margin: 0 0 6px;
            color: #0757b8;
            font-size: 10px;
            font-weight: 600;
            line-height: 1.3;
        }

        .scb-locator .location-card__address {
            display: -webkit-box;
            margin: 0 0 8px;
            overflow: hidden;
            color: #66788d;
            font-size: 10.5px;
            line-height: 1.45;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }

        .scb-locator .location-detail {
            margin: 2px 0 0;
            color: #7c8ca0;
            font-size: 9.5px;
            line-height: 1.35;
        }

        .scb-locator .location-card__footer {
            display: flex;
            align-items: center;
            margin-top: auto;
            padding-top: 10px;
            border-top: 1px solid #edf1f6;
        }

        .scb-locator .location-card__footer .locator-btn,
        .scb-locator .location-card__footer a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto !important;
            min-width: 82px;
            min-height: 30px;
            padding: 6px 10px;
            background: #0757b8;
            border: 0;
            border-radius: 9px;
            box-shadow: none;
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            line-height: 1;
            text-decoration: none;
        }

        .scb-locator .location-card__footer .locator-btn:hover,
        .scb-locator .location-card__footer a:hover {
            background: #064b9d;
            color: #fff;
            text-decoration: none;
        }

        @media (max-width: 1199px) {
            .scb-locator .locator-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (max-width: 900px) {
            .scb-locator .locator-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 600px) {
            .scb-locator .locator-panel {
                padding: 12px;
                border-radius: 14px;
            }

            .scb-locator .search-box {
                height: 42px;
                min-height: 42px;
            }

            .scb-locator .search-box .locator-input,
            .scb-locator .locator-input--search {
                height: 40px !important;
                min-height: 40px !important;
                line-height: 40px !important;
            }

            .scb-locator .locator-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            .scb-locator .location-card {
                min-height: 190px;
                padding: 11px;
                border-radius: 12px;
            }

            .scb-locator .location-card__title {
                font-size: 12px;
            }

            .scb-locator .location-card__address {
                font-size: 9.5px;
            }
        }

        @media (max-width: 390px) {
            .scb-locator .locator-grid {
                grid-template-columns: 1fr;
            }

            .scb-locator .location-card {
                min-height: 175px;
            }
        }

/* Used by external filtering JS instead of element.style.display */
.scb-locator .is-filter-hidden { display: none !important; }


/* ===== Nearest-location experience ===== */
.locator-nearest-trigger {
    gap: 7px;
    white-space: nowrap;
}
.locator-nearest-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 71, 186, .10);
    font-size: 15px;
    line-height: 1;
}
.locator-btn--location:hover {
    background: #e3f1ff;
    border-color: #b9d9ff;
}
.locator-btn:disabled {
    cursor: wait;
    opacity: .68;
    transform: none !important;
}
.location-status.is-loading { color: #475467; }
.location-status.is-success { color: #087a55; }
.location-status.is-error { color: #b42318; }

.locator-dialog-open { overflow: hidden; }
.locator-location-dialog[hidden] { display: none !important; }
.locator-location-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.locator-location-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 25, 45, .58);
    backdrop-filter: blur(4px);
}
.locator-location-dialog__card {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(8, 32, 67, .28);
    text-align: center;
    animation: locatorDialogIn .18s ease-out;
}
.locator-location-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f5f9;
    color: #344054;
    cursor: pointer;
    font-size: 23px;
    line-height: 32px;
}
[dir="rtl"].locator-location-dialog .locator-location-dialog__close {
    right: auto;
    left: 12px;
}
.locator-location-dialog__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e8f2ff, #f5f9ff);
    color: #0047ba;
    font-size: 35px;
    box-shadow: inset 0 0 0 1px #d6e7ff;
}
.locator-location-dialog__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #0075c0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.locator-location-dialog__card h2 {
    margin: 0 0 10px;
    color: #17233c;
    font-size: 23px;
    line-height: 1.3;
}
.locator-location-dialog__card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.65;
}
.locator-location-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}
.locator-location-dialog__actions .locator-btn {
    width: 100%;
}
.locator-location-dialog__note {
    margin-top: 13px !important;
    color: #98a2b3 !important;
    font-size: 11px !important;
}
@keyframes locatorDialogIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
    .locator-location-dialog { padding: 14px; align-items: flex-end; }
    .locator-location-dialog__card {
        width: 100%;
        padding: 26px 18px 20px;
        border-radius: 22px 22px 16px 16px;
    }
    .locator-location-dialog__card h2 { font-size: 20px; }
    .locator-location-dialog__actions { grid-template-columns: 1fr; }
    .locator-nearest-trigger { width: 100%; }
}


/* ============================================================
   Location permission dialog - final button override
   Keep at the END of this stylesheet.
   ============================================================ */
#locationPermissionDialog .locator-location-dialog__actions #btnAllowLocation,
#locationPermissionDialog button#btnAllowLocation,
.locator-location-dialog #btnAllowLocation {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 16px !important;

    background: #0047ba !important;
    background-color: #0047ba !important;
    background-image: none !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    border: 1px solid #0047ba !important;
    border-radius: 10px !important;

    box-shadow: 0 8px 18px rgba(0, 71, 186, 0.20) !important;
    opacity: 1 !important;
    visibility: visible !important;

    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

#locationPermissionDialog .locator-location-dialog__actions #btnAllowLocation:hover,
#locationPermissionDialog .locator-location-dialog__actions #btnAllowLocation:focus,
#locationPermissionDialog .locator-location-dialog__actions #btnAllowLocation:active,
#locationPermissionDialog button#btnAllowLocation:hover,
#locationPermissionDialog button#btnAllowLocation:focus,
#locationPermissionDialog button#btnAllowLocation:active {
    background: #003b9b !important;
    background-color: #003b9b !important;
    background-image: none !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    border-color: #003b9b !important;
    outline: none !important;
}

/* Secondary dialog button stays white with visible text */
#locationPermissionDialog .locator-location-dialog__actions .locator-btn--secondary {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;

    color: #344054 !important;
    -webkit-text-fill-color: #344054 !important;

    border: 1px solid #d0d5dd !important;
    opacity: 1 !important;
}

#locationPermissionDialog .locator-location-dialog__actions .locator-btn--secondary:hover,
#locationPermissionDialog .locator-location-dialog__actions .locator-btn--secondary:focus {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #17233c !important;
    -webkit-text-fill-color: #17233c !important;
    border-color: #b8c2cf !important;
}
