.sedrux-smart-search {
    --sss-ink: #111827;
    --sss-muted: #5f6878;
    --sss-line: #d7dce5;
    --sss-blue: #0839c8;
    --sss-blue-dark: #06278b;
    --sss-panel: #ffffff;
    --sss-title: #111827;
    --sss-subtitle: #273244;
    --sss-filter: #101828;
    --sss-filter-active: var(--sss-blue);
    --sss-hover: var(--sss-blue-dark);
    --sss-search: var(--sss-blue);
    --sss-load-more: var(--sss-blue);
    color: var(--sss-ink);
    font-family: inherit;
    width: 100%;
}

.sedrux-smart-search__toolbar {
    align-items: center;
    border-bottom: 1px solid var(--sss-line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
}

.sedrux-smart-search__filters {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.sedrux-smart-search__filter-label {
    color: var(--sss-title);
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
}

.sedrux-smart-search__tune {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--sss-title);
    display: inline-flex;
    height: 22px;
    justify-content: center;
    padding: 0 8px;
    flex: 0 0 auto;
    width: 34px;
}

.sedrux-smart-search__tune svg {
    display: block;
    height: 16px;
    width: 20px;
}

.sedrux-smart-search__chips {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-behavior: smooth;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.sedrux-smart-search__chips::-webkit-scrollbar {
    height: 6px;
}

.sedrux-smart-search__chips::-webkit-scrollbar-track {
    background: transparent;
}

.sedrux-smart-search__chips::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.sedrux-smart-search__chips:focus {
    outline: 2px solid color-mix(in srgb, var(--sss-filter-active) 18%, transparent);
    outline-offset: 2px;
}

.sedrux-smart-search__chip {
    background: #fff;
    border: 1px solid var(--sss-filter);
    border-radius: 999px;
    color: var(--sss-filter);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
    min-height: 26px;
    padding: 6px 14px;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.sedrux-smart-search__chip:hover {
    background: var(--sss-hover);
    border-color: var(--sss-hover);
    color: #fff;
}

.sedrux-smart-search__chip.is-active,
.sedrux-smart-search__chip.is-active:hover {
    background: var(--sss-filter-active);
    border-color: var(--sss-filter-active);
    color: #fff;
}

.sedrux-smart-search__form {
    align-items: center;
    display: flex;
    flex: 0 0 min(320px, 42vw);
    justify-content: flex-end;
    min-width: 130px;
    position: relative;
}

.sedrux-smart-search__input {
    background: #fff;
    border: 1px solid var(--sss-line);
    border-radius: 6px 0 0 6px;
    color: var(--sss-ink);
    font: inherit;
    height: 44px;
    min-width: 0;
    opacity: 1;
    padding: 0 14px;
    transition: opacity .18s ease, width .18s ease;
    width: 100%;
}

.sedrux-smart-search__form:focus-within .sedrux-smart-search__input,
.sedrux-smart-search__input:not(:placeholder-shown) {
    opacity: 1;
    width: 100%;
}

.sedrux-smart-search__submit {
    align-items: center;
    background: var(--sss-search);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    margin-left: 10px;
    transition: background .18s ease, transform .18s ease;
    width: 44px;
}

.sedrux-smart-search__submit:hover {
    background: var(--sss-hover);
    transform: translateY(-1px);
}

.sedrux-smart-search__submit svg {
    fill: currentColor;
    height: 19px;
    width: 19px;
}

.sedrux-smart-search__clear {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #98a2b3;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    margin-left: 4px;
    transition: background .16s ease, color .16s ease;
    width: 36px;
}

.sedrux-smart-search__clear:hover {
    background: #f2f4f7;
    color: #101828;
}

.sedrux-smart-search__clear svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.sedrux-smart-search__mobile-open {
    align-items: center;
    background: var(--sss-search);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: none;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.sedrux-smart-search__mobile-open svg {
    fill: currentColor;
    height: 19px;
    width: 19px;
}

.sedrux-smart-search__suggestions {
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .16);
    min-width: min(430px, 86vw);
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
}

.sedrux-smart-search__suggestions--live {
    border: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .14);
    min-width: min(760px, calc(100vw - 32px));
    padding: 18px 0 0;
    right: 0;
    top: calc(100% + 14px);
}

.sedrux-smart-search-live__count {
    border-top: 1px solid #e5e7eb;
    color: #98a2b3;
    font-size: 12px;
    padding: 18px 0 10px;
}

.sedrux-smart-search-live__loading {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    color: #667085;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 10px;
    padding: 18px 8px 12px;
}

.sedrux-smart-search-live__spinner {
    animation: sedrux-smart-search-spin .65s linear infinite;
    border: 2px solid #d8e2ef;
    border-top-color: var(--sss-search);
    border-radius: 50%;
    display: inline-block;
    height: 16px;
    width: 16px;
}

.sedrux-smart-search-live__skeleton {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 72px;
    padding: 8px;
}

.sedrux-smart-search-live__skeleton-img,
.sedrux-smart-search-live__skeleton-lines span {
    animation: sedrux-smart-search-pulse 1.1s ease-in-out infinite;
    background: linear-gradient(90deg, #f2f5f8 0%, #e8eef5 48%, #f2f5f8 100%);
    background-size: 200% 100%;
}

.sedrux-smart-search-live__skeleton-img {
    border-radius: 8px;
    height: 56px;
    width: 56px;
}

.sedrux-smart-search-live__skeleton-lines {
    display: grid;
    gap: 8px;
}

.sedrux-smart-search-live__skeleton-lines span {
    border-radius: 999px;
    display: block;
    height: 12px;
    width: min(320px, 78%);
}

.sedrux-smart-search-live__skeleton-lines span:last-child {
    width: min(180px, 46%);
}

.sedrux-smart-search-live__item {
    align-items: center;
    color: #111827;
    display: grid;
    gap: 16px;
    grid-template-columns: 56px minmax(0, 1fr) auto 20px;
    min-height: 72px;
    padding: 8px;
    text-decoration: none;
    transition: background .16s ease;
}

.sedrux-smart-search-live__item:hover {
    background: #f8fafc;
}

.sedrux-smart-search-live__img {
    background: #f3f6f9;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.sedrux-smart-search-live__img--placeholder {
    display: block;
    position: relative;
}

.sedrux-smart-search-live__img--placeholder::before {
    border: 1px solid #d7dee8;
    border-radius: 3px;
    content: "";
    height: 23px;
    left: 16px;
    position: absolute;
    top: 15px;
    width: 23px;
}

.sedrux-smart-search-live__img--placeholder::after {
    border-bottom: 1px solid #d7dee8;
    border-left: 1px solid #d7dee8;
    content: "";
    height: 10px;
    left: 20px;
    position: absolute;
    top: 27px;
    transform: rotate(-45deg);
    width: 16px;
}

.sedrux-smart-search-live__info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sedrux-smart-search-live__info strong {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sedrux-smart-search-live__info small {
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.25;
}

.sedrux-smart-search-live__badge {
    color: var(--sss-search);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.sedrux-smart-search-live__arrow {
    color: #c4cbd6;
}

.sedrux-smart-search-live__all {
    align-items: center;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
    color: #475467;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    min-height: 56px;
    text-decoration: none;
}

.sedrux-smart-search-live__all:hover {
    background: #eef6ff;
    color: var(--sss-hover);
}

.sedrux-smart-search-live__empty {
    color: #667085;
    display: grid;
    gap: 4px;
    padding: 22px 8px 24px;
}

.sedrux-smart-search-live__empty strong {
    color: #101828;
    font-size: 14px;
}

.sedrux-smart-search-live__empty span {
    font-size: 13px;
}

.sedrux-smart-search-modal {
    inset: 0;
    position: fixed;
    z-index: 9999;
}

.sedrux-smart-search-modal__backdrop {
    background: rgba(17, 24, 39, .46);
    inset: 0;
    position: absolute;
}

.sedrux-smart-search-modal__panel {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 22px 56px rgba(17, 24, 39, .22);
    left: 0;
    max-height: min(78vh, 720px);
    overflow-y: auto;
    padding: 18px 16px 0;
    position: absolute;
    right: 0;
    top: 0;
}

.sedrux-smart-search-modal__bar {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    min-height: 54px;
}

.sedrux-smart-search-modal__icon {
    color: #98a2b3;
    fill: currentColor;
    height: 20px;
    width: 20px;
}

.sedrux-smart-search-modal__input {
    background: transparent;
    border: 0;
    color: #101828;
    flex: 1 1 auto;
    font: inherit;
    font-size: 18px;
    height: 48px;
    min-width: 0;
    outline: 0;
}

.sedrux-smart-search-modal__input::placeholder {
    color: #98a2b3;
}

.sedrux-smart-search-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #98a2b3;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.sedrux-smart-search-modal__close svg {
    fill: currentColor;
    height: 20px;
    width: 20px;
}

.sedrux-smart-search-modal__suggestions {
    background: #fff;
}

body.sedrux-smart-search-modal-open {
    overflow: hidden;
}

@keyframes sedrux-smart-search-spin {
    to { transform: rotate(360deg); }
}

@keyframes sedrux-smart-search-pulse {
    0% { background-position: 200% 0; opacity: .72; }
    50% { opacity: 1; }
    100% { background-position: -200% 0; opacity: .72; }
}

.sedrux-smart-search__suggestions-head {
    border-bottom: 1px solid #eef1f6;
    color: var(--sss-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 11px 14px;
}

.sedrux-smart-search-suggestion {
    align-items: center;
    color: var(--sss-ink);
    display: grid;
    gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px 14px;
    text-decoration: none;
    transition: background .16s ease;
}

.sedrux-smart-search-suggestion:hover {
    background: #f4f7fb;
}

.sedrux-smart-search-suggestion__media {
    background: #dceaf4;
    border-radius: 6px;
    display: block;
    height: 52px;
    overflow: hidden;
    position: relative;
    width: 58px;
}

.sedrux-smart-search-suggestion__media img,
.sedrux-smart-search-suggestion__media span {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.sedrux-smart-search-suggestion__media span {
    background: linear-gradient(135deg, #dff6ff, #a8d6e8 48%, #0d4c91);
}

.sedrux-smart-search-suggestion__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sedrux-smart-search-suggestion strong {
    color: var(--sss-ink);
    font-size: 14px;
    line-height: 1.25;
}

.sedrux-smart-search-suggestion small {
    color: var(--sss-muted);
    font-size: 12px;
    line-height: 1.25;
}

.sedrux-smart-search-suggestion--empty {
    color: var(--sss-muted);
    display: block;
    min-height: auto;
    padding: 16px;
}

.sedrux-smart-search__header {
    margin: 0 0 26px;
}

.sedrux-smart-search__header p {
    color: var(--sss-subtitle);
    font-size: 13px;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.sedrux-smart-search__header h2 {
    color: var(--sss-title);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    margin: 0;
}

.sedrux-smart-search__status {
    color: var(--sss-muted);
    font-size: 13px;
    min-height: 18px;
    text-align: right;
}

.sedrux-smart-search__grid {
    display: grid;
    gap: 28px 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
}

.sedrux-smart-search-card {
    min-width: 0;
}

.sedrux-smart-search-card__media {
    background: #dceaf4;
    border-radius: 6px;
    display: block;
    overflow: hidden;
    position: relative;
}

.sedrux-smart-search-card__media::before {
    content: "";
    display: block;
    padding-top: 64%;
}

.sedrux-smart-search-card__media img,
.sedrux-smart-search-card__placeholder {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.sedrux-smart-search-card__placeholder {
    background: linear-gradient(135deg, #dff6ff, #a8d6e8 46%, #0d4c91);
}

.sedrux-smart-search-card__body {
    padding: 20px 18px 0;
}

.sedrux-smart-search-card__term {
    color: var(--sss-filter);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sedrux-smart-search-card h3 {
    font-size: 20px;
    line-height: 1.08;
    margin: 0 0 10px;
}

.sedrux-smart-search-card h3 a {
    color: inherit;
    text-decoration: none;
}

.sedrux-smart-search-card p {
    color: #2d3442;
    font-size: 14px;
    line-height: 1.22;
    margin: 0 0 18px;
}

.sedrux-smart-search-card__price {
    color: var(--sss-search);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.sedrux-smart-search-card__read {
    align-items: center;
    color: #101828;
    display: inline-flex;
    font-size: 13px;
    gap: 18px;
    text-decoration: none;
}

.sedrux-smart-search-card__read span {
    font-size: 18px;
    line-height: 1;
}

.sedrux-smart-search__empty {
    border: 1px dashed var(--sss-line);
    border-radius: 8px;
    color: var(--sss-muted);
    margin-top: 18px;
    padding: 22px;
    text-align: center;
}

.sedrux-smart-search__load-more {
    background: #fff;
    border: 1px solid var(--sss-load-more);
    border-radius: 999px;
    color: var(--sss-load-more);
    cursor: pointer;
    display: block;
    font-weight: 700;
    margin: 34px auto 0;
    min-height: 42px;
    padding: 9px 22px;
}

.sedrux-smart-search__load-more:hover {
    background: var(--sss-hover);
    border-color: var(--sss-hover);
    color: #fff;
}

.sedrux-smart-search.is-loading {
    cursor: progress;
}

.sedrux-smart-search.is-loading .sedrux-smart-search__grid {
    opacity: .55;
}

@media (max-width: 900px) {
    .sedrux-smart-search__toolbar {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sedrux-smart-search__filters {
        width: 100%;
    }

    .sedrux-smart-search__form {
        flex-basis: auto;
        width: 100%;
    }

    .sedrux-smart-search__suggestions {
        left: 0;
        min-width: 100%;
        right: auto;
    }

    .sedrux-smart-search__suggestions--live {
        min-width: 100%;
    }

    .sedrux-smart-search__form .sedrux-smart-search__input {
        opacity: 1;
        width: 100%;
    }

    .sedrux-smart-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sedrux-smart-search--post .sedrux-smart-search__toolbar {
        align-items: center;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .sedrux-smart-search--post .sedrux-smart-search__form {
        display: none;
    }

    .sedrux-smart-search--post .sedrux-smart-search__mobile-open {
        display: inline-flex;
    }

    .sedrux-smart-search--post .sedrux-smart-search__filters {
        min-width: 0;
        width: 100%;
    }

    .sedrux-smart-search__chips {
        padding-bottom: 10px;
    }

    .sedrux-smart-search-modal .sedrux-smart-search__suggestions--live {
        box-shadow: none;
        min-width: 100%;
        padding-top: 0;
        position: static;
    }

    .sedrux-smart-search-modal .sedrux-smart-search-live__count,
    .sedrux-smart-search-modal .sedrux-smart-search-live__loading {
        border-top: 0;
    }

    .sedrux-smart-search-modal__close {
        height: 48px;
        width: 48px;
    }

    .sedrux-smart-search-modal__close svg {
        height: 26px;
        width: 26px;
    }

    .sedrux-smart-search__grid {
        grid-template-columns: 1fr;
    }

    .sedrux-smart-search-card__body {
        padding-left: 4px;
        padding-right: 4px;
    }

    .sedrux-smart-search-live__item {
        grid-template-columns: 48px minmax(0, 1fr) 16px;
    }

    .sedrux-smart-search-live__img {
        height: 48px;
        width: 48px;
    }

    .sedrux-smart-search-live__badge {
        display: none;
    }
}
