.company-itemset-tools {
    position: relative;
    clear: both;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 12px 16px;
    box-sizing: border-box;
    margin: 12px 10px 20px;
    padding: 0;
    background: transparent;
    border: 0;
}

.company-itemset-search-field {
    position: relative;
    min-width: 0;
}

.company-itemset-search-input {
    position: relative;
}

.company-itemset-search-input > .fa-search {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #809da5;
    font-size: 16px;
    pointer-events: none;
}

.company-itemset-tools .company-itemset-search-input input {
    padding-left: 40px;
    padding-right: 44px;
}

.company-itemset-search-input input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

.company-itemset-search-input input::-ms-clear {
    display: none;
}

.company-itemset-search-input .company-itemset-clear {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #46575a;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.company-itemset-search-input .company-itemset-clear[hidden] {
    display: none;
}

.company-itemset-search-input .company-itemset-clear:hover {
    background: #edf2f4;
    color: #142c30;
}

.company-itemset-search-input .company-itemset-clear:focus-visible {
    outline: 2px solid #1477ef;
    outline-offset: 1px;
}

.company-itemset-tools label {
    display: block;
    margin: 0 0 6px;
    color: #142c30;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
}

.company-itemset-tools input,
.company-itemset-tools select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #cbd8dc;
    border-radius: 6px;
    color: #142c30;
    font: inherit;
    font-size: 14px;
}

.company-itemset-tools input:focus,
.company-itemset-tools select:focus {
    outline: 2px solid #1477ef;
    outline-offset: 1px;
}

.company-itemset-tools select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23142c30' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.company-itemset-search-status {
    grid-column: 1 / -1;
    color: #46575a;
    font-size: 12px;
    line-height: 1.4;
}

.company-itemset-search-status:empty {
    display: none;
}

.company-itemset-hits {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dce5e7;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(20, 44, 48, 0.15);
}

.company-itemset-hits[hidden] {
    display: none;
}

.company-itemset-hits ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-itemset-hits li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf2f4;
}

.company-itemset-hits li:last-child {
    border-bottom: 0;
}

.company-itemset-hits a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #142c30;
    text-decoration: none;
}

.company-itemset-hits a:hover,
.company-itemset-hits a:focus {
    background: #eef7ff;
    outline: 2px solid #1477ef;
    outline-offset: -2px;
}

.company-itemset-hits .company-itemset-search-all {
    display: block;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: #eef7ff;
    color: #0e51a3;
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.company-itemset-hits .company-itemset-search-all:hover,
.company-itemset-hits .company-itemset-search-all:focus {
    background: #e0efff;
    outline: 2px solid #1477ef;
    outline-offset: -2px;
}

.company-itemset-hits img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 4px;
    background: #f7f9fa;
}

.company-itemset-hit-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.company-itemset-hit-name {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}

.company-itemset-hit-price {
    color: #0e51a3;
    font-size: 14px;
    font-weight: bold;
}

.company-itemset-hit-discount {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eaf3ff;
    color: #0e51a3;
    font-size: 12px;
}

.company-itemset-hits .company-itemset-no-hits {
    padding: 14px;
    font-size: 14px;
}

@media (min-width: 951px) {
    .company-itemset-tools input,
    .company-itemset-tools select {
        background-color: #fff;
        border-radius: 5px;
        border: 1px solid #809da5;
        box-shadow: none;
    }

}

@media (max-width: 600px) {
    .company-itemset-tools {
        grid-template-columns: minmax(0, 1fr);
        margin: 12px 12px 20px;
        padding: 12px;
        background: #f0f0f0;
        border: 1px solid #dce5e7;
        border-top: 2px solid #1477ef;
        border-left: 2px solid #1477ef;
        border-radius: 6px;
    }

    .company-itemset-tools input,
    .company-itemset-tools select {
        font-size: 16px;
    }

    .company-itemset-hits {
        max-height: 320px;
    }
}

@media (forced-colors: active) {
    .company-itemset-tools select {
        appearance: auto;
        background-image: none;
    }
}
