.branch-infinite-sentinel {
    min-height: 2px;
    margin: 20px 0;
    text-align: center;
}

.branch-infinite-sentinel[data-loading="true"]::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #e4d6bf;
    border-top-color: #a77b35;
    border-radius: 50%;
    animation: branch-infinite-spin .7s linear infinite;
}

@keyframes branch-infinite-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 992px) {
    .branch-mobile-filter-button,
    .branch-mobile-categories,
    .branch-mobile-results-heading {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .branch-list-section {
        padding-top: 0 !important;
    }

    .branch-mobile-explorer-shell {
        position: relative;
        min-height: 60px;
        transition: padding-top .3s ease;
    }

    .branch-mobile-explorer-shell.is-filter-open {
        padding-top: 48px;
    }

    .branch-mobile-filter-button {
        width: fit-content;
        min-height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        position: absolute;
        top: 15px;
        right: calc(var(--bs-gutter-x, 1.5rem) * 1);
        z-index: 2;
        margin: 0;
        border: 0;
        border-radius: 0;
        padding: 0;
        color: #111;
        background: transparent;
        box-shadow: none;
        font-size: 13px;
        font-weight: 400;
        line-height: 1;
        transition: color .25s ease;
    }

    .branch-mobile-filter-button::before {
        content: "";
        width: 23px;
        height: 23px;
        display: block;
        flex: 0 0 23px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .branch-mobile-filter-button[aria-expanded="true"] {
        color: #111;
    }

    .branch-mobile-filter-button:hover,
    .branch-mobile-filter-button:focus-visible {
        color: #111;
        opacity: .68;
        outline: none;
    }

    html.im-dark .branch-mobile-filter-button {
        color: var(--im-dark-muted, #c7c0b6);
    }

    html.im-dark .branch-mobile-filter-button[aria-expanded="true"],
    html.im-dark .branch-mobile-filter-button:hover,
    html.im-dark .branch-mobile-filter-button:focus-visible {
        color: var(--im-dark-gold, #c9aa79);
    }

    .branch-filter-box {
        max-height: 0;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height .45s ease, opacity .3s ease, transform .3s ease,
            margin-bottom .3s ease, padding-top .3s ease, padding-bottom .3s ease;
    }

    .branch-filter-box.is-mobile-open {
        max-height: 720px;
        margin-bottom: 22px !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        opacity: 1;
        transform: translateY(0);
    }

    .branch-filter-box .branch-category-field,
    .branch-filter-box .branch-subcategory-field,
    .branch-filter-box .branch-special-field,
    .branch-filter-box .branch-discount-field {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .branch-filter-box .branch-filter-toggle {
        justify-content: center;
        padding: 0 7px;
        font-size: 12px;
    }

    .branch-mobile-categories {
        margin: 10px 0 26px;
    }

    .branch-mobile-category-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
       /* margin-bottom: 20px;*/
        padding-right: 72px;
    }

    body[dir="ltr"] .branch-mobile-category-header {
        padding-right: 78px;
    }

    .branch-mobile-category-back {
        display: none;
        border: 0;
        background: transparent;
        color: #8a6428;
        font-size: 13px;
        font-weight: 800;
    }

    .branch-mobile-categories.is-subcategory-view .branch-mobile-category-back {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .branch-mobile-categories.is-hidden {
        display: none;
    }

    .branch-mobile-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .branch-mobile-category-card {
        position: relative;
        min-width: 0;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border: 0;
        border-radius: 3px;
        padding: 0;
        background: #f5f2ed;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
        text-align: center;
    }

    .branch-mobile-category-card[hidden] {
        display: none !important;
    }

    .branch-mobile-category-card img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .35s ease;
    }

    .branch-mobile-category-card:active img {
        transform: scale(1.04);
    }

    .branch-mobile-category-card span {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        padding: 10px 7px 18px;
        color: #171717;
        background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, 0));
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        text-shadow: 0 1px 2px rgba(255, 255, 255, .8);
    }

    .branch-mobile-results-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 22px;
        padding-top: 26px;
        color: #292929;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
    }

    .branch-mobile-results-heading::before,
    .branch-mobile-results-heading::after {
        content: "";
        height: 1px;
        flex: 1 1 auto;
        background: #e7e1d7;
    }

    @media (max-width: 575.98px) {
    #branchResults .row-40 {
        margin-right: -6px !important;
        margin-left: -6px !important;
        margin-bottom: -14px;
    }

    #branchResults .row-40 > [class*="col-"] {
        padding-right: 6px;
        padding-left: 6px;
        margin-bottom: 14px;
    }

    #branchResults .branch-card {
        padding: 10px;
        border-radius: 16px;
    }

    #branchResults .branch-logo-wrap {
        height: 116px;
        margin-bottom: 10px;
        border-radius: 12px;
        padding: 10px;
    }

    #branchResults .branch-logo-title,
    #branchResults .branch-title {
        font-size: 16px;
        line-height: 1.45;
    }

    #branchResults .branch-logo-text {
        gap: 5px;
    }

    #branchResults .branch-logo-title-en {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    #branchResults .branch-headline {
        margin-bottom: 8px;
    }

    #branchResults .branch-meta-row {
        display: block;
    }

    #branchResults .branch-chip-list {
        gap: 4px;
    }

    #branchResults .branch-chip {
        padding: 4px 7px;
        font-size: 10px;
        line-height: 1.35;
    }

    #branchResults .branch-meta-inline,
    #branchResults .branch-rating {
        margin-top: 8px;
        font-size: 11px;
    }

    #branchResults .branch-rating .rating-star {
        font-size: 15px;
    }
    }
}
