.SearchBox.LesSearch-enhanced {
    position: relative;
}

.LesSearch-Btns {
    position: absolute;
    top: 0;
    right: 0;
    height: 36px;
    max-width: 72%;
    display: none;
    z-index: 3;
}

.LesSearch-AdvBtn,
.LesSearch-CatBtn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 10px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
    color: inherit;
    cursor: pointer;
    border-left: 1px solid color-mix(in srgb, currentColor 28%, transparent);
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.LesSearch-AdvBtn {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.LesSearch-AdvBtn:hover,
.LesSearch-AdvBtn:focus,
.LesSearch-CatBtn:hover,
.LesSearch-CatBtn:focus {
    color: inherit;
    text-decoration: none;
    background: color-mix(in srgb, currentColor 16%, transparent);
    outline: none;
}

.LesSearch-CatBtnCheck {
    width: 12px;
    height: 12px;
    margin: 0;
    flex: 0 0 auto;
    pointer-events: none;
}

.LesSearch-CatBtnText {
    overflow: hidden;
    text-overflow: ellipsis;
}

.LesSearch-CatBtn--on {
    background: color-mix(in srgb, currentColor 22%, transparent);
}

.SearchBox.LesSearch-focused .LesSearch-Btns,
.SearchBox.LesSearch-inCat .LesSearch-Btns {
    display: flex;
}

.SearchBox.LesSearch-focused .js-search,
.SearchBox.LesSearch-inCat .js-search {
    padding-right: calc(72% + 8px);
}

.LesSearch-Hint {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.LesSearch-Advanced {
    margin-top: 16px;
}

.LesSearch-Advanced .AdvancedWrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.LesSearch-Fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    flex: 1 1 320px;
}

.LesSearch-Field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.LesSearch-Field label {
    font-size: 14px;
    margin-bottom: 0;
}

.LesSearch-Field .SelectWrapper {
    margin-bottom: 0;
}

.LesSearch-Field:not(.LesSearch-DateField) .SelectWrapper {
    width: 150px;
}

.LesSearch-DateField {
    flex: 0 0 auto;
    width: 264px;
}

.LesSearch-DateInputs {
    display: flex;
    gap: 8px;
}

.LesSearch-DateInputs .SelectWrapper {
    flex: 1 1 0;
    min-width: 0;
}

.LesSearch-DateInputs .SelectWrapper:first-child {
    flex: 1.3 1 0;
}

.LesSearch-Cats {
    flex: 1 1 100%;
    min-width: 0;
}

.LesSearch-CatSummary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
    cursor: pointer;
    list-style-position: outside;
}

.LesSearch-CatSummary:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

.LesSearch-CatLabel {
    font-size: 14px;
}

.LesSearch-CatValue {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.LesSearch-CatCols {
    columns: 4 168px;
    column-gap: 24px;
    margin: 8px 0 0;
}

.LesSearch-CatGroup {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 8px;
}

.LesSearch-CatKids {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.LesSearch-CatRow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 1px 0;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.LesSearch-CatRow > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.LesSearch-CatRow:hover > span {
    text-decoration: underline;
}

.LesSearch-CatRow input {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin: 0;
}

.LesSearch-CatRow--parent {
    font-weight: 700;
}

.LesSearch-CatClear {
    display: none;
    margin-top: 4px;
    padding: 0;
    font-size: 12px;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    text-decoration: underline;
}

.LesSearch-Cats.LesSearch-hasSelection .LesSearch-CatClear {
    display: inline-block;
}
