.tbe-ss {
    --tbe-ss-ink: #263241;
    --tbe-ss-muted: #53616f;
    --tbe-ss-line: #d8e1ec;
    --tbe-ss-soft: #f8fafc;
    --tbe-ss-soft-strong: #eef2f7;
    --tbe-ss-accent: #315f99;
    --tbe-ss-accent-dark: #173459;
    --tbe-ss-green: #1f6f3a;
    --tbe-ss-accent-ink: #ffffff;
    --tbe-ss-warm: #5c4611;
    --tbe-ss-warm-soft: #fff9df;
    --tbe-ss-warm-line: #e6d8a8;
    color: var(--tbe-ss-ink);
    font-size: 16px;
    line-height: 1.45;
    max-width: 960px;
    margin: 0 auto;
}

.tbe-ss * {
    box-sizing: border-box;
}

.tbe-ss [hidden] {
    display: none !important;
}

.tbe-ss-sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.tbe-ss-spinner {
    animation: tbe-ss-spin 0.75s linear infinite;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 1em;
    width: 1em;
}

@keyframes tbe-ss-spin {
    to {
        transform: rotate(360deg);
    }
}

.tbe-ss-search-panel {
    border: 1px solid var(--tbe-ss-line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    margin-bottom: 18px;
}

.tbe-ss-location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--tbe-ss-line);
    color: var(--tbe-ss-muted);
}

.tbe-ss-location-row strong {
    color: var(--tbe-ss-ink);
}

.tbe-ss-location-context {
    color: var(--tbe-ss-muted);
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbe-ss-location-row a {
    color: var(--tbe-ss-accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.tbe-ss-location-row--shared {
    justify-content: flex-start;
}

.tbe-ss--location-ui-shared .tbe-ss-location-row {
    padding-bottom: 10px;
}

.tbe-ss-modes {
    display: inline-flex;
    border: 1px solid var(--tbe-ss-line);
    border-radius: 8px;
    margin: 14px 0;
    overflow: hidden;
}

.tbe-ss-mode-link {
    appearance: none;
    background: #fff;
    border: 0;
    color: var(--tbe-ss-muted);
    cursor: pointer;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
}

.tbe-ss-mode-link + .tbe-ss-mode-link {
    border-left: 1px solid var(--tbe-ss-line);
}

.tbe-ss-mode-link.is-active {
    background: var(--tbe-ss-accent);
    color: var(--tbe-ss-accent-ink);
}

.tbe-ss.is-loading button,
.tbe-ss.is-loading input {
    cursor: wait;
}

.tbe-ss-mode-link:focus-visible,
.tbe-ss-type-button:focus-visible,
.tbe-ss-keyword-row button:focus-visible,
.tbe-ss-more-toggle:focus-visible {
    outline: 3px solid rgba(49, 95, 153, 0.28);
    outline-offset: 2px;
}

.tbe-ss-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 360px) {
    .tbe-ss-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 10px;
    }
}

.tbe-ss-type-button,
.tbe-ss-keyword-row button {
    min-height: 58px;
    border-radius: 8px;
    border: 1px solid var(--tbe-ss-line);
    background: #fff;
    color: var(--tbe-ss-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0 12px;
    text-align: center;
}

.tbe-ss-type-button {
    align-items: center;
    box-shadow: 0 1px 2px rgba(23, 52, 89, 0.05);
    display: flex;
    gap: 9px;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    padding: 9px 10px;
    position: relative;
    text-align: left;
    width: 100%;
    word-break: normal;
    overflow-wrap: normal;
}

.tbe-ss-type-icon {
    align-items: center;
    background: var(--tbe-ss-soft-strong);
    border-radius: 999px;
    color: var(--tbe-ss-accent);
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.tbe-ss-type-icon svg {
    display: block;
    height: 19px;
    width: 19px;
}

.tbe-ss-type-button--happy_hour .tbe-ss-type-icon {
    background: #fff3cf;
}

.tbe-ss-type-button--drink_specials .tbe-ss-type-icon,
.tbe-ss-type-button--live_music .tbe-ss-type-icon {
    background: #e6f3f6;
}

.tbe-ss-type-button--food_specials .tbe-ss-type-icon {
    background: #edf7e7;
}

.tbe-ss-type-button--karaoke .tbe-ss-type-icon,
.tbe-ss-type-button--trivia .tbe-ss-type-icon {
    background: #f3eafa;
}

.tbe-ss-type-button--events .tbe-ss-type-icon {
    background: #fff0e8;
}

.tbe-ss-type-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.tbe-ss-type-main,
.tbe-ss-type-sub {
    display: block;
}

.tbe-ss-type-main {
    line-height: 1.16;
    max-width: 100%;
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
}

.tbe-ss-type-sub {
    color: var(--tbe-ss-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 3px;
    white-space: nowrap;
}

.tbe-ss-type-button--full {
    grid-column: 1 / -1;
    gap: 12px;
    min-height: 62px;
    padding: 10px 14px;
}

.tbe-ss-type-button--odd-tail {
    grid-column: 1 / -1;
}

.tbe-ss-type-button--full .tbe-ss-type-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    flex-basis: 38px;
    height: 38px;
    width: 38px;
}

.tbe-ss-type-button--full .tbe-ss-type-icon svg {
    height: 22px;
    width: 22px;
}

.tbe-ss-type-button--full .tbe-ss-type-copy {
    min-width: 0;
}

.tbe-ss-type-button .tbe-ss-spinner,
.tbe-ss-keyword-row button .tbe-ss-spinner {
    margin-right: 7px;
}

.tbe-ss-type-button.is-active,
.tbe-ss-type-button:hover {
    background: #f2fbf5;
    border-color: var(--tbe-ss-green);
    color: var(--tbe-ss-ink);
}

.tbe-ss-type-button.is-active {
    box-shadow: inset 0 0 0 1px var(--tbe-ss-green), 0 1px 2px rgba(23, 52, 89, 0.06);
}

.tbe-ss-type-button.is-active .tbe-ss-type-icon,
.tbe-ss-type-button:hover .tbe-ss-type-icon {
    background: var(--tbe-ss-green);
    color: #fff;
}

.tbe-ss-type-button.is-active::after {
    align-items: center;
    align-self: start;
    background: var(--tbe-ss-green);
    border-radius: 999px;
    color: #fff;
    content: "";
    display: inline-flex;
    height: 12px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 12px;
}

.tbe-ss-type-button--full,
.tbe-ss-type-button--full.is-active,
.tbe-ss-type-button--full:hover {
    background: var(--tbe-ss-green);
    border-color: var(--tbe-ss-green);
    color: var(--tbe-ss-accent-ink);
}

.tbe-ss-type-button--full .tbe-ss-type-sub,
.tbe-ss-type-button--full.is-active .tbe-ss-type-sub,
.tbe-ss-type-button--full:hover .tbe-ss-type-sub {
    color: rgba(255, 255, 255, 0.9);
}

.tbe-ss-type-button--full.is-active .tbe-ss-type-icon,
.tbe-ss-type-button--full:hover .tbe-ss-type-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tbe-ss-type-button--full.is-active::after {
    background: #fff;
}

.tbe-ss-keyword-form {
    margin: 0 0 12px;
}

.tbe-ss-keyword-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.tbe-ss-keyword-row input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--tbe-ss-line);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
}

.tbe-ss-keyword-row button {
    background: var(--tbe-ss-accent);
    border-color: var(--tbe-ss-accent);
    color: var(--tbe-ss-accent-ink);
}

.tbe-ss-keyword-row button:hover {
    background: var(--tbe-ss-accent-dark);
    border-color: var(--tbe-ss-accent-dark);
}

.tbe-ss-helper {
    color: var(--tbe-ss-muted);
    font-size: 0.92rem;
    margin: 0 0 8px;
}

.tbe-ss-loading-status {
    align-items: center;
    color: var(--tbe-ss-accent);
    display: flex;
    font-weight: 900;
    gap: 8px;
    margin: 0 0 12px;
}

.tbe-ss-ajax-error {
    border: 1px solid #d67b7b;
    border-radius: 8px;
    background: #fff5f5;
    color: #8a1f1f;
    font-weight: 800;
    margin: 0 0 12px;
    padding: 10px 12px;
}

.tbe-ss-results-summary {
    margin: 0 0 12px;
    color: var(--tbe-ss-muted);
}

.tbe-ss.is-loading .tbe-ss-results {
    opacity: 0.56;
    transition: opacity 120ms ease;
}

.tbe-ss-result-list {
    display: grid;
    gap: 12px;
}

.tbe-ss .tbe-bm-hybrid-result {
    display: block;
}

.tbe-ss .tbe-bm-hybrid-card {
    border: 1px solid var(--tbe-ss-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.tbe-ss .tbe-bm-hybrid-card-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
}

.tbe-ss .tbe-ss-card-header {
    display: grid;
    grid-template-columns: 152px 1fr;
    gap: 14px;
}

.tbe-ss .tbe-ss-card-header--no-image {
    grid-template-columns: 1fr;
}

.tbe-ss .tbe-bm-hybrid-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tbe-ss-soft);
}

.tbe-ss .tbe-bm-hybrid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbe-ss .tbe-bm-hybrid-main {
    min-width: 0;
}

.tbe-ss .tbe-bm-hybrid-title-row {
    display: block;
}

.tbe-ss .tbe-bm-hybrid-title {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.2;
}

.tbe-ss .tbe-bm-hybrid-title a {
    color: var(--tbe-ss-ink);
    text-decoration: none;
}

.tbe-ss .tbe-bm-hybrid-meta,
.tbe-ss .tbe-bm-hybrid-location {
    color: var(--tbe-ss-muted);
    font-size: 0.92rem;
    margin-top: 3px;
}

.tbe-ss .tbe-bm-hybrid-rating {
    font-weight: 800;
}

.tbe-ss .tbe-ss-card-location-row {
    align-items: baseline;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    line-height: 1.25;
}

.tbe-ss .tbe-ss-card-place {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbe-ss .tbe-ss-card-distance {
    color: var(--tbe-ss-accent);
    flex: 0 0 auto;
    font-weight: 900;
    margin-left: auto;
    white-space: nowrap;
}

.tbe-ss .tbe-bm-hybrid-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tbe-ss .tbe-bm-hybrid-primary-type,
.tbe-ss .tbe-bm-hybrid-type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    background: var(--tbe-ss-soft-strong);
    color: var(--tbe-ss-muted);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0 8px;
}

.tbe-ss .tbe-bm-hybrid-primary-type {
    color: var(--tbe-ss-ink);
}

.tbe-ss .tbe-bm-hybrid-tagline {
    font-weight: 900;
    margin-top: 10px;
}

.tbe-ss .tbe-bm-hybrid-excerpt {
    color: var(--tbe-ss-muted);
    margin: 5px 0 0;
}

.tbe-ss .tbe-bm-hybrid-actions {
    margin-top: 10px;
}

.tbe-ss .tbe-bm-hybrid-action {
    color: var(--tbe-ss-accent);
    font-weight: 900;
    text-decoration: none;
}

.tbe-ss-hybrid-specials {
    border-top: 1px solid var(--tbe-ss-line);
    border-bottom: 1px solid var(--tbe-ss-line);
    margin-top: 10px;
    padding: 10px 0;
}

.tbe-ss-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    border: 1px solid var(--tbe-ss-line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.tbe-ss-card-image {
    display: block;
    width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #263241, #315f99);
    text-decoration: none;
}

.tbe-ss-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbe-ss-card-image--empty {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
}

.tbe-ss-card-body {
    min-width: 0;
}

.tbe-ss-card-topline {
    display: grid;
    gap: 2px;
}

.tbe-ss-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.tbe-ss-card-title a {
    color: var(--tbe-ss-ink);
    text-decoration: none;
}

.tbe-ss-card-meta,
.tbe-ss-card-location {
    color: var(--tbe-ss-muted);
    font-size: 0.92rem;
}

.tbe-ss-offer-heading {
    font-weight: 900;
    margin: 0 0 6px;
}

.tbe-ss-match {
    border-left: 3px solid var(--tbe-ss-warm-line);
    padding-left: 9px;
    margin: 8px 0;
}

.tbe-ss-match-source {
    color: var(--tbe-ss-muted);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.tbe-ss-match p {
    margin: 0;
    overflow-wrap: anywhere;
}

.tbe-ss-more-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--tbe-ss-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: inherit;
    font-weight: 900;
    padding: 6px 0;
}

.tbe-ss-more-toggle .tbe-ss-chevron-up {
    display: none;
}

.tbe-ss-more-toggle.is-expanded .tbe-ss-chevron-down {
    display: none;
}

.tbe-ss-more-toggle.is-expanded .tbe-ss-chevron-up {
    display: inline;
}

.tbe-ss-card-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--tbe-ss-accent);
    font-weight: 900;
    text-decoration: none;
}

.tbe-ss-empty {
    border: 1px solid var(--tbe-ss-line);
    border-radius: 8px;
    background: var(--tbe-ss-soft);
    color: var(--tbe-ss-muted);
    padding: 14px;
}

.tbe-ss-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0;
}

.tbe-ss-pagination a {
    color: var(--tbe-ss-accent);
    font-weight: 900;
    text-decoration: none;
}

.tbe-ss-debug {
    margin-top: 18px;
    border: 1px solid var(--tbe-ss-line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.tbe-ss-debug pre {
    overflow: auto;
    white-space: pre-wrap;
}

@media (max-width: 520px) {
    .tbe-ss-search-panel {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-left: -12px;
        margin-right: -12px;
    }

    .tbe-ss-location-row {
        align-items: flex-start;
    }

    .tbe-ss-keyword-row {
        grid-template-columns: 1fr;
    }

    .tbe-ss .tbe-bm-hybrid-card-inner {
        padding: 10px;
    }

    .tbe-ss .tbe-ss-card-header {
        grid-template-columns: 92px 1fr;
        gap: 10px;
    }

    .tbe-ss .tbe-bm-hybrid-title {
        font-size: 1rem;
    }

    .tbe-ss-card {
        grid-template-columns: 82px 1fr;
    }

    .tbe-ss-card-image {
        width: 82px;
    }
}

@media (max-width: 359px) {
    .tbe-ss-type-grid {
        grid-template-columns: 1fr;
    }

    .tbe-ss .tbe-ss-card-location-row {
        flex-wrap: wrap;
        gap: 2px 8px;
    }

    .tbe-ss .tbe-ss-card-place {
        white-space: normal;
    }
}
