.bl-branch-locator {
    direction: rtl;
    font-family: inherit;
    color: #1f1f1f;
}

.bl-title {
    margin: 0 0 20px;
    font-size: 36px;
    font-weight: 700;
    text-align: right;
    text-shadow: 0 2px 14px rgba(60, 60, 60, 0.24);
}

.bl-search-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    direction: ltr;
}

.bl-search-column,
.bl-hero-column {
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    flex: 1 1 0;
    direction: rtl;
}

.bl-results-layout {
    margin-top: 8px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    direction: ltr;
}

.bl-detail-panel {
    flex: 2 1 0;
    direction: rtl;
}

.bl-list-panel {
    flex: 1 1 0;
    direction: rtl;
    max-height: 70vh;
    overflow-y: auto;
    padding-inline-end: 12px;
}

.bl-locator-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
}

.bl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0;
}

.bl-select-wrap {
    position: relative;
    background: #f1f1f1;
}

.bl-select-wrap::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.bl-field select,
.bl-submit {
    width: 100%;
    padding: 12px 12px;
    box-sizing: border-box;
}

.bl-field select {
    border: none;
    border-radius: 0;
    background: transparent;
    color: #666;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-inline-start: 44px;
    padding-inline-end: 12px;
}

.bl-submit {
    background: #222;
    color: #d9d9d9;
    border: none;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    width: auto;
    min-width: 140px;
}

.bl-submit:hover {
    background: #111;
}

.bl-branch-locator .bl-submit {
    background: #2f2f2f !important;
    color: #f5f5f5 !important;
}

.bl-branch-locator .bl-submit:hover {
    background: #1f1f1f !important;
}

.bl-hero-image {
    width: 100%;
    min-height: 220px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    overflow: hidden;
}

.bl-hero-image img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.bl-hero-placeholder {
    color: #555;
    font-weight: 600;
}

.bl-results {
    direction: ltr;
}

.bl-results-header,
.bl-results-list {
    direction: rtl;
}

.bl-results-header {
    font-weight: 600;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #f6f6f6;
    border-radius: 10px;
}

.bl-results-header:empty {
    display: none;
}

.bl-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: none;
    overflow: visible;
    padding-inline-end: 6px;
}

.bl-card-item {
    border-radius: 12px;
    overflow: hidden;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bl-card {
    border: none;
    background: transparent;
    padding: 0;
    text-align: right;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 1 0 auto;
}

.bl-card:focus-visible {
    outline: 2px solid #eeeeee;
    outline-offset: 2px;
}

.bl-branch-locator .bl-card:focus-visible {
    outline: 2px solid #e0e0e0 !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.bl-branch-locator .bl-card,
.bl-branch-locator .bl-card:hover,
.bl-branch-locator .bl-card.is-selected,
.bl-branch-locator .bl-card-expanded {
    background: #f2f2f2 !important;
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
}

.bl-card-band {
    background: #2a2a2a;
    color: #f4f4f4;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    border-radius: 10px;
    background-image: var(--bl-icon-url, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.bl-card-band svg {
    width: 18px;
    height: 18px;
    display: var(--bl-icon-display, block);
}

.bl-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
    min-height: 110px;
}

.bl-card-title {
    font-weight: 700;
    font-size: 22px;
    color: #1f1f1f;
}

.bl-card-stars {
    color: #f0c419;
    letter-spacing: 2px;
}

.bl-card-location-line {
    color: #666;
    font-size: 13px;
}

.bl-card-detail {
    display: none;
    border-top: 1px solid #e9e9e9;
    padding: 16px;
    background: #fafafa;
}

.bl-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bl-card-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bl-detail-image {
    width: 100%;
    min-height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-detail-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.bl-detail-rows {
    display: grid;
    gap: 12px;
}

.bl-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #444;
    word-break: break-word;
}

.bl-detail-row--stacked {
    flex-direction: column;
}

.bl-detail-label {
    font-weight: 700;
    color: #1f1f1f;
    font-size: 14px;
    white-space: nowrap;
}

.bl-detail-value {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: #4a4a4a;
}

.bl-info-message,
.bl-error {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
}

.bl-error {
    background: #efefef;
    color: #3b3b3b;
    border: 1px solid #d6d6d6;
}

.bl-info-message {
    background: #f2f5f9;
    color: #2b3c4d;
    border: 1px solid #d8e0eb;
}

.bl-icon-location::before,
.bl-icon-phone::before,
.bl-icon-website::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    background-repeat: no-repeat;
    background-size: contain;
}

.bl-icon-location::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-7 7-11a7 7 0 10-14 0c0 4 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.bl-icon-phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 01-2.2 2 19.8 19.8 0 01-8.6-3.1 19.5 19.5 0 01-6-6 19.8 19.8 0 01-3.1-8.7A2 2 0 014 2h3a2 2 0 012 1.7c.1.9.3 1.8.6 2.6a2 2 0 01-.5 2.1L8 9a16 16 0 006 6l.6-.9a2 2 0 012.1-.5c.8.3 1.7.5 2.6.6a2 2 0 011.7 2z'/%3E%3C/svg%3E");
}

.bl-icon-website::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 010 20M12 2a15.3 15.3 0 000 20'/%3E%3C/svg%3E");
}

.bl-branch-locator.bl-state-results .bl-hero-column {
    display: none;
}

.bl-appearance-theme .bl-search-column,
.bl-appearance-theme .bl-hero-column {
    background: white;
}

.bl-appearance-light {
    background: #f6f7fb;
    color: #111;
}

.bl-appearance-light .bl-search-column,
.bl-appearance-light .bl-hero-column {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.bl-appearance-dark {
    background: #1f1f1f;
    color: #f5f5f5;
}

.bl-appearance-dark .bl-search-column,
.bl-appearance-dark .bl-hero-column {
    background: #2b2b2b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    color: #f5f5f5;
}

.bl-appearance-dark .bl-card-title,
.bl-appearance-dark .bl-card-location-line {
    color: #e0e0e0;
}

.bl-appearance-dark .bl-card-band {
    background: #1f1f1f;
    color: #f7d046;
}

.bl-appearance-dark .bl-card-detail {
    background: #222;
    border-top-color: #333;
}

.bl-appearance-dark .bl-results-header {
    background: #2a2a2a;
    color: #f5f5f5;
}

.bl-appearance-dark .bl-submit {
    background: #2b2b2b;
    color: #f2f2f2;
}

.bl-branch-locator.bl-state-initial .bl-locator-form {
    flex-direction: column;
    align-items: stretch;
}

.bl-branch-locator.bl-state-initial .bl-submit {
    width: 100%;
    min-width: 0;
}

.bl-branch-locator.bl-state-results .bl-locator-form {
    flex-direction: row;
    align-items: flex-end;
}

@media (max-width: 900px) {
    .bl-search-layout {
        flex-direction: column;
        direction: rtl;
    }

    .bl-results-layout {
        flex-direction: column;
        direction: rtl;
    }

    .bl-locator-form {
        flex-direction: column;
        align-items: stretch;
    }

    .bl-submit {
        width: 100%;
        min-width: 0;
    }

    .bl-detail-panel {
        display: none;
    }

    .bl-list-panel {
        max-height: none;
        overflow: visible;
    }

    .bl-branch-locator .bl-results-list {
        max-height: none;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    .bl-branch-locator .bl-card-item {
        display: block !important;
        width: 95% !important;
        min-width: 95% !important;
        max-width: 95% !important;
        flex: 0 0 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .bl-branch-locator .bl-card,
    .bl-branch-locator .bl-card-header {
        display: block !important;
        width: 95% !important;
        max-width: 95% !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bl-card-item.is-selected .bl-card-detail {
        display: block;
    }
}

@media (max-width: 768px) {
    .bl-card,
    .blc-card {
        display: block !important;
        width: 95% !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex: none !important;
    }

    .bl-results,
    .blc-results {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .bl-results-list {
        align-items: stretch;
    }

    .bl-card-item,
    .bl-branch-card,
    .blc-branch-card {
        width: 95% !important;
        max-width: 95% !important;
        min-width: 95% !important;
        margin-left: auto;
        margin-right: auto;
    }
}

.bl-branch-locator .bl-select-enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bl-branch-locator .bl-combobox {
    position: relative;
    width: 100%;
    direction: rtl;
}

.bl-branch-locator .bl-combobox-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #666;
    font: inherit;
    font-weight: 600;
    direction: rtl;
    text-align: right;
}

.bl-branch-locator .bl-combobox-input:focus {
    outline: 2px solid #d9d9d9;
    outline-offset: -2px;
}

.bl-branch-locator .bl-combobox-input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.bl-branch-locator .bl-combobox-list {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-width: 100%;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d9d9d9;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    direction: rtl;
}

.bl-branch-locator .bl-combobox.is-open .bl-combobox-list {
    display: block;
}

.bl-branch-locator .bl-combobox-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: #fff;
    color: #333;
    cursor: pointer;
    font: inherit;
    text-align: right;
    direction: rtl;
}

.bl-branch-locator .bl-combobox-option:hover,
.bl-branch-locator .bl-combobox-option:focus,
.bl-branch-locator .bl-combobox-option.is-highlighted {
    background: #efefef;
    color: #111;
    outline: none;
}

.bl-branch-locator .bl-combobox-empty {
    padding: 10px 12px;
    color: #777;
    background: #fff;
    text-align: right;
}

.bl-appearance-dark .bl-combobox-list,
.bl-appearance-dark .bl-combobox-option,
.bl-appearance-dark .bl-combobox-empty {
    background: #2b2b2b;
    color: #f5f5f5;
    border-color: #444;
}

.bl-appearance-dark .bl-combobox-option:hover,
.bl-appearance-dark .bl-combobox-option:focus,
.bl-appearance-dark .bl-combobox-option.is-highlighted {
    background: #3a3a3a;
    color: #fff;
}

@media (max-width: 768px) {
    .bl-branch-locator .bl-combobox-list {
        max-height: 180px;
    }
}

/* Phone numbers must be tappable/clickable on mobile and desktop. */
.bl-phone-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    direction: ltr;
    unicode-bidi: plaintext;
}
.bl-phone-link:hover,
.bl-phone-link:focus {
    color: var(--bl-primary, #CD161B);
    text-decoration: underline;
}
