:root {
    --blue: #0000ff;
    --indigo: #5b21b6;
    --pink: #b41e91;
    --red: #9e1f4d;
    --orange: #e66d00;
    --yellow: #d4a017;
    --teal: #007f7f;
    --slate: #4e6e8e;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
   
    --header-height: 56px;
}

@font-face {
    font-family: "Aeonik";
    src: url("/fonts/aeonik/Aeonik-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aeonik";
    src: url("/fonts/aeonik/Aeonik-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aeonik";
    src: url("/fonts/aeonik/Aeonik-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aeonik";
    src: url("/fonts/aeonik/Aeonik-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
svg.svg-inline--fa {
    width: 1em;
    height: 1em;
}
html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Aeonik", Arial, sans-serif;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select {
    font: inherit;
    border-color: var(--gray);
    font-family: "Aeonik", sans-serif;
}

a,
.btn-link {
    color: var(--pink);
    text-decoration: underline;
    border: none;
    max-width: 100%;
}
.btn-link:hover {
    /*color: var(--tmw-blue);*/
    color: var(--pink);
    text-decoration: underline;
}
.btn-primary-2 {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
.btn-secondary {
    color: var(--blue);
    background-color: #fff;
    border-color: var(--blue);
}

    .btn-secondary:hover,
    .btn-secondary:focus:hover {
        color: #fff;
        background-color: var(--blue);
        border-color: var(--blue);
    }

    .btn-secondary:focus {
        color: var(--blue);
        background-color: #fff;
        border-color: var(--blue);
        box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
    }

    .btn-secondary:disabled,
    .btn-secondary.disabled {
        color: var(--gray-dark);
        background-color: #fff;
        border-color: var(--gray-dark);
    }

.copy-url-button,
.copy-url-button:hover,
.copy-url-button:focus,
.copy-url-button:active {
    color: var(--pink) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
.detail-label {
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    overflow-wrap: break-word;
}
.long-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.long-text.expanded {
    display: block;
    overflow: visible;
}
.expand-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--blue);
    background: transparent;
    border: 1px solid var(--blue);
    border-radius: 0.25rem;
    cursor: pointer;
}
.expand-button:hover {
    background-color: var(--blue);
    color: #fff;
}
.expand-button i {
    font-size: 0.7rem;
}
/* TMW colours for search controls */
.search-input-wrapper {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}
.search-btn {
    color: #fff;
    background-color: var(--pink);
    border-color: var(--pink);
}
.search-btn:hover,
.search-btn:focus-visible {
    color: #fff;
    background-color: var(--blue);
    border-color: var(--blue);
    transition: ease-in;
}
.search-btn:active {
    color: #fff;
    background-color: #000099;
    border-color: #000099;
}
.reset-btn {
    width: 38px;
    height: 38px;
    padding: 0;
}
.reset-btn:hover {
    color: #fff;
}
.spinner-border {
    color: var(--blue);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: none !important;
}
h1:focus {
    outline: none;
}
.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
}
.invalid {
    outline: 1px solid #e50000;
}
.validation-message {
    color: #e50000;
}
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.json-viewer {
    max-height: 800px;
    padding: 15px;
    overflow: auto;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-family: "Aeonik", Arial, sans-serif;
    font-size: 0.9rem;
}
.h3 {
    color: var(--blue);
}
/* Result cards */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
    .results-grid-compact {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }

.result-tile .card {
    width: 100%;
    height: 100%;
}
.result-title {
    color: var(--blue);
}
.clickable-card {
    cursor: pointer;
    background-color: #f8f9fa;
    transition: transform 0.2s ease-in-out, box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* CARD VARIANT 1: borderless cards with shadow and slight lift */
.clickable-card {
    border: solid;
    border-width: 1px;
    border-color:#fff;
    /*border-color: var(--blue);
    border-width: 1px;*/
}
.clickable-card:hover {
    border: solid;
    /*border-color: var(--blue);*/
    border-width: 1px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.result-card-text {
    text-align: center;
}
.object-thumbnail {
    width: 100%;
    height: 140px;
    padding: 1px;
    object-fit: contain;
    border-radius: 0.25rem;
}
.object-thumbnail-placeholder {
    height: 160px;
    border-radius: 0.25rem;
    opacity: 0.85;
    user-select: none;
    font-size: 2.5rem;
}
.card-body {
    padding: 1rem;
}
.card-bottom-action {
    display: block;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Compact result cards for people and thesaurus terms */
.result-tile-compact {
    grid-column: span 1;
}
.compact-result-card {
    min-height: 88px;
    padding: 0;
    color: var(--bs-body-color);
}
.compact-result-card:focus-visible {
    outline: 3px solid rgba(180, 30, 145, 0.25);
    outline-offset: 2px;
}
.compact-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--pink);
    background-color: rgba(180, 30, 145, 0.1);
    border-radius: 50%;
    font-size: 1.25rem;
}
.compact-result-content {
    min-width: 0;
    flex: 1;
}
.compact-result-title,
.compact-result-secondary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-clamp: 2;
}
.compact-result-title {
    line-height: 1.3;
}
.compact-result-secondary {
    margin-top: 0.15rem;
}
.compact-result-chevron {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--bs-secondary-color);
}

@media (max-width: 767.98px) {
    .result-tile-compact {
        grid-column: span 1;
    }
}
.object-detail-card .card-body {
    padding: 1.5rem;
}

.card-resource-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 2px solid var(--border-color);
}

.card-resource-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
/* Person and external links */
.person-line {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.metadata-list {
    display: flex;
    flex-direction: column;
}

.metadata-row {
    display: grid;
    grid-template-columns: minmax(9rem, 25%) minmax(0, 1fr);
    column-gap: 1.25rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

    .metadata-row:nth-child(odd) {
        background-color: rgba(0, 0, 0, 0.025);
    }

.metadata-label {
    font-weight: 600;
    color: var(--gray);
}

.metadata-value {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .metadata-row {
        grid-template-columns: 1fr;
        row-gap: 0.2rem;
    }

    .metadata-label {
        font-size: 0.875rem;
    }

    .card-resource-footer {
        align-items: flex-start;
    }

    .resource-footer-actions {
        justify-content: flex-start;
    }
}
/*.person-main-link {
    font-weight: 500;
    text-decoration: none;
}
.person-main-link:hover {
    text-decoration: underline;
}*/

.person-icon-link {
    display: inline-flex;
    align-items: center;
}

.person-icon {
    width: 14px;
    height: 14px;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.person-icon:hover {
    opacity: 1;
}

/*.external-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    color: #333;
    background-color: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

    .external-icon:hover {
        background-color: #e9ecef;
        text-decoration: none;
    }*/

/*.gnd-icon {
    font-size: 0.65rem;
}*/

/*.external-logo {
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
}*/

/* Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.25);
}
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: 85vw;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Search and filters */
/*.facet-list {
    max-height: 150px;
    overflow-y: auto;
}*/

/*.facets {
    position: sticky;
    top: 1rem;
}*/

.filters-column {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    max-height: calc(100vh - var(--header-height) - 1.5rem);
    overflow-y: auto;
}
@media (max-width: 991.98px) {
    .filters-column {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border-color: var(--blue);
}

.filter-label {
    width: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: "Aeonik", sans-serif;
}

.filter-select {
    flex: 1;
    /*border: 1px solid var(--tmw-grey) !important;*/
}
.filter-select:focus {
    border-color: var(--blue) !important;
    box-shadow: none !important;
    outline: none;
}
/*.search-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    z-index: 100;
    max-width: 1000px;
}*/

.search-bar {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    background: white;
    border-radius: 0.5rem;
    border-color: var(--blue);
}
.search-bar .form-control {
    flex: 1;
}

/*.search-btn {
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}*/


/* Image gallery */
.image-frame {
    height: 380px;
    overflow: hidden;
    background-color: #f8f9fa !important;
}
.museum-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}
.thumbnail-strip {
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
.thumbnail-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    background: linear-gradient(to left, white, transparent);
}
.thumbnail-strip::-webkit-scrollbar {
    height: 8px;
}
.thumbnail,
.selected-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.thumbnail {
    opacity: 0.6;
    transition: opacity 0.2s;
}
.thumbnail:hover {
    border-color: #999;
}
.thumbnail:hover,
.selected-thumbnail {
    opacity: 1;
}
.selected-thumbnail {
    border: 3px solid var(--blue);
}
.gallery-btn {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: white;
    background-color: rgba(108, 117, 125, 0.6);
    border: none;
    border-radius: 6px;
    opacity: 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}
.prev-btn {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}
.next-btn {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}
.close-btn {
    top: 12px;
    right: 12px;
}
.image-frame:hover .gallery-btn,
.lightbox-content:hover .gallery-btn {
    opacity: 0.8;
}
.gallery-btn {
    background: transparent;
    border: none;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}
    .gallery-btn:hover {
        background: transparent;
        opacity: 1;
        transform: scale(1.05);
    }
.prev-btn:hover,
.next-btn:hover {
    transform: translateY(-50%) scale(1.05);
}
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}
.lightbox-overlay .lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(96vw, 1600px);
    height: calc(100vh - 2rem);
    max-width: none;
    max-height: none;
    overflow: hidden;
}

    /* Entire upper strip closes the lightbox */
.lightbox-overlay .lightbox-close-area {
    position: relative;
    inset: auto;
    transform: none;
    flex: 0 0 56px;
    width: 100%;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    opacity: 1;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.lightbox-overlay .lightbox-close-area:hover,
.lightbox-overlay .lightbox-close-area:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.025);
    opacity: 1;
    transform: none;
}

/* Navigation and image area beneath the close strip */
.lightbox-viewer {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(64px, 8vw) minmax(0, 1fr) minmax(64px, 8vw);
    overflow: hidden;
}

/* Entire left and right areas are clickable */
.lightbox-overlay .lightbox-navigation {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(1.75rem, 3vw, 3rem);
    opacity: 1;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.lightbox-viewer.single-image {
    grid-template-columns: minmax(0, 1fr);
}
.lightbox-viewer.single-image .lightbox-image-area {
    grid-column: 1;
}
.lightbox-overlay .lightbox-navigation:hover,
.lightbox-overlay .lightbox-navigation:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.025);
    opacity: 1;
    transform: none;
}
/* Image remains within its fixed center area */
.lightbox-image-area {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}
.lightbox-image-area .lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/*Blazor standard stuff*/
#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    padding: 0.6rem 1.25rem;
    background-color: #fff3cd;
    border-top: 1px solid #ffecb5;
    color: #664d03;
}
#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
}
#blazor-error-ui .reload {
    margin-left: 0.75rem;
}

/*New Facet Test*/
.filter-card {
    background: #f1f2f4;
}
.facet-group {
    overflow: hidden;
    /*border-color: var(--gray);*/
    border-radius: 0.5rem;
    border-width: 1px;
}
.facet-group:hover {
    /*border-color: var(--gray);*/
}
.facet-group-header:hover {
    background: #e8eaed;

}
.facet-group-expanded .facet-group-header {
    border-bottom: 1px solid #d9dce1;
}
.facet-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.6rem;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-bottom: 0;
    background: #f1f2f4;
    /*background: var(--tmw-grey);*/
    color: #30343b;
    text-align: left;
}

.facet-group-header:hover {
    background: #f7f8fa;
}
.facet-group-title {
    font-size: 0.9rem;
    font-weight: 600;
}
.facet-group-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.facet-group-header-icon {
    color: black;
    font-size: 0.85rem;
}
.facet-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--pink, #005b96);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}
.facet-group-chevron {
    /*color: black;
    font-size: 0.85rem;*/
    transition: transform 160ms ease;
}
.facet-group-chevron.expanded {
    transform: rotate(180deg);
}
.facet-group-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-top: 1px solid #e4e6e9;
    background: #fff;
}
.facet-group-result:disabled {
    color: var(--gray);
    opacity: 1;
    /*cursor: not-allowed;*/
}
/* Expanded content */
.facet-group-content {
    background: #fff;
}
.facet-group-input-wrapper {
    position: relative;
}
.facet-group-input {
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 0.4rem;
}
.facet-group-input:focus {
    border-color: var(--blue, #005b96);
    box-shadow: 0 0 0 0.15rem rgba(0, 91, 150, 0.12);
}
.facet-group-input-icon {
    position: absolute;
    top: 50%;
    left: 0.65rem;
    z-index: 2;
    color: var(--gray);
    transform: translateY(-50%);
    pointer-events: none;
}
.facet-group-clear {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border: 0;
    background: transparent;
    color: #777e87;
    transform: translateY(-50%);
}
.facet-group-clear:hover {
    color: #222;
}

/* Status information */
.facet-group-hint,
.facet-group-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.25rem 0.2rem;
    color: #777e87;
    font-size: 0.78rem;
}

/* Search results */
.facet-group-results {
    max-height: 15rem;
    margin-top: 0.5rem;
    overflow-y: auto;
    border: 1px solid #e1e3e7;
    border-radius: 0.4rem;
}
.facet-group-result {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 0;
    border-bottom: 1px solid #eceef0;
    background: #fff;
    color: #30343b;
    text-align: left;
}
.facet-group-result:last-child {
    border-bottom: 0;
}
.facet-group-result.no-result {
    color: var(--gray);
}
.facet-group-result:hover {
    background: #f3f4f6;
}
.facet-group-result.selected {
    background: rgba(0, 91, 150, 0.09);
    color: var(--blue, #005b96);
}
.facet-group-result-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue, #005b96);
}
.facet-group-result-label {
    overflow: hidden;
    font-size: 0.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.facet-group-result-count {
    color: #777e87;
    font-size: 0.73rem;
}

/* Selection pills */
.facet-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    max-width: 100%;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgba(0, 91, 150, 0.2);
    border-radius: 999px;
    background: rgba(0, 91, 150, 0.08);
    color: var(--pink, #005b96);
    font-size: 0.75rem;
    line-height: 1.15;
}
.facet-group-chip:hover {
    border-color: rgba(0, 91, 150, 0.35);
    background: rgba(0, 91, 150, 0.14);
}
.facet-group-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}