.child-shop-dropdown {
    position: relative;
    min-width: 0;
}

.child-shop-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 48px;
    padding: .65rem .875rem;
    border: 1px solid var(--child-color-field-border, #ced4da);
    border-radius: var(--child-radius-control, 6px);
    background: var(--child-color-field-bg, #fff);
    color: var(--child-color-field-text, #343a40);
    font: inherit;
    font-weight: 400;
    text-align: left;
}

.child-shop-select-toggle::after {
    content: '';
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: url('../icons/chevron-down.svg') center / contain no-repeat;
    mask: url('../icons/chevron-down.svg') center / contain no-repeat;
    pointer-events: none;
}

.child-shop-select-toggle:not(:disabled):hover,
.child-shop-select-toggle[aria-expanded="true"] {
    background: var(--child-color-field-bg, #fff);
    border-color: var(--child-color-field-focus, #228be6);
    color: var(--child-color-field-text, #343a40);
}

.child-shop-select-toggle[aria-invalid="true"],
.child-shop-select-toggle[aria-invalid="true"]:hover,
.child-shop-select-toggle[aria-invalid="true"]:focus-visible {
    border-color: var(--child-color-error-border, #c92a2a);
    outline-color: var(--child-color-error-border, #c92a2a);
}

.child-shop-select-toggle:focus-visible,
.child-shop-select-options button:focus-visible {
    outline: 2px solid var(--child-color-field-focus, #228be6);
}

.child-shop-select-caption,
.child-shop-select-options button {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.child-shop-select-caption {
    flex: 1 1 auto;
    overflow: hidden;
}

.child-shop-select-caption > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-shop-dropdown img {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 4px;
    object-fit: cover;
}

.child-shop-select-options {
    position: absolute;
    z-index: 30;
    top: calc(100% + .4rem);
    left: 0;
    width: 100%;
    max-height: 20rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgb(0 0 0 / 25%) transparent;
    box-sizing: border-box;
    margin: 0;
    padding: .5rem;
    list-style: none;
    border: 1px solid var(--child-color-field-border, #dee2e6);
    border-radius: var(--child-radius-surface, 22px);
    background: #fff;
    box-shadow: 0 8px 24px rgb(var(--child-color-shadow-rgb, 0 0 0) / 12%);
}

.child-shop-select-options:not(.child-shop-select-panel),
.child-shop-select-results {
    display: grid;
    align-content: start;
    row-gap: .5rem;
}

.child-shop-select-options[hidden],
.child-shop-select-options li[hidden],
.child-shop-select-options button[hidden] {
    display: none;
}

.child-shop-select-options::-webkit-scrollbar,
.child-shop-select-results::-webkit-scrollbar {
    width: 6px;
}

.child-shop-select-options::-webkit-scrollbar-track,
.child-shop-select-results::-webkit-scrollbar-track {
    margin-block: .5rem;
    background: transparent;
}

.child-shop-select-options::-webkit-scrollbar-thumb,
.child-shop-select-results::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(0 0 0 / 25%);
}

.child-shop-select-options::-webkit-scrollbar-thumb:hover,
.child-shop-select-results::-webkit-scrollbar-thumb:hover {
    background: rgb(0 0 0 / 40%);
}

.child-shop-filters .child-shop-select-toggle {
    box-sizing: border-box;
    min-height: 46px;
    padding: .5rem 44px .5rem 1rem;
    border-radius: 999px;
    font-size: .9375rem;
}

.child-shop-filters .child-shop-select-toggle:has(.child-shop-select-caption > img) {
    padding: 5px 44px 5px 5px;
}

.child-shop-filters .child-shop-select-caption > img {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.child-shop-filters .child-shop-select-toggle::after {
    position: absolute;
    right: 10px;
}

.child-shop-filters .has-value .child-shop-select-toggle::after { display: none; }

.child-shop-filters .child-shop-select-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--child-color-field-text, #343a40);
}

.child-shop-filters .child-shop-select-clear .ti {
    font-size: 20px;
}

.child-shop-select-clear[hidden] { display: none !important; }

.child-shop-filters .child-shop-select-results { row-gap: 0; }

.child-shop-filters .child-shop-select-options { top: calc(100% + .5rem); }
.child-shop-filters .child-shop-dropdown[data-opens-up="true"] .child-shop-select-options {
    top: auto;
    bottom: calc(100% + .5rem);
}

.child-shop-select-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.child-shop-select-panel[hidden],
.child-shop-select-panel [hidden] {
    display: none;
}

.child-shop-select-search {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin: 0 0 .35rem;
    padding: .625rem .75rem;
    border: 1px solid var(--child-color-field-border, #d3d3d3);
    border-radius: max(0px, calc(var(--child-radius-surface, 22px) - .5rem - 1px));
    background: var(--child-color-field-bg, #fff);
    color: var(--child-color-field-text, #222);
    box-shadow: none;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.child-shop-select-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgb(0 0 0 / 25%) transparent;
    margin: 0;
    padding: 0;
    list-style: none;
}

.child-shop-select-options img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: max(0px, calc(var(--child-radius-surface, 22px) - .5rem - 1px - .625rem));
}

.child-shop-select-options button > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-shop-select-empty {
    margin: 0;
    padding: .6rem;
    color: var(--child-color-text-muted, #595959);
    font-size: .875rem;
}

.child-shop-dropdown[data-opens-up="true"] .child-shop-select-options {
    top: auto;
    bottom: calc(100% + .4rem);
}

.child-shop-select-toggle:disabled,
.child-shop-select-options button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.child-shop-select-options li { margin: 0; }

.child-shop-select-options button {
    width: 100%;
    min-height: 44px;
    padding: .625rem;
    border: 0;
    border-radius: max(0px, calc(var(--child-radius-surface, 22px) - .5rem - 1px));
    background: var(--child-color-field-bg, #fff);
    color: var(--child-color-field-text, #343a40);
    font: inherit;
    font-weight: 400;
    text-align: left;
}

.child-shop-select-options li:hover > button:not(:disabled),
.child-shop-select-options button:not(:disabled):focus,
.child-shop-select-options button[aria-selected="true"] {
    background: var(--child-color-selection-bg, #e7f5ff);
    color: var(--child-color-selection-text, #1864ab);
}

.child-shop-select-options button:not(:focus-visible):not([aria-selected="true"]) {
    outline: none;
    box-shadow: none;
}

.child-shop-select-options button[aria-selected="true"]:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.child-shop-dropdown.is-disabled .child-shop-select-toggle,
.child-shop-select-options button:disabled {
    background: var(--child-color-field-disabled-bg, #f1f3f5);
    color: var(--child-color-field-disabled-text, #687078);
}

.child-shop-select-options button[aria-selected="true"]::after {
    content: '✓';
    flex-shrink: 0;
    margin-left: auto;
    font-weight: 700;
}

.child-shop-select-sliding {
    isolation: isolate;
}

.child-shop-select-results.child-shop-select-sliding {
    position: relative;
}

.child-shop-select-sliding::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    left: .5rem;
    width: calc(100% - 1rem);
    height: var(--child-select-highlight-height, 0px);
    border-radius: max(0px, calc(var(--child-radius-surface, 22px) - .5rem - 1px));
    background: var(--child-color-selection-bg, #e7f5ff);
    opacity: 0;
    transform: translateY(var(--child-select-highlight-y, 0px));
    pointer-events: none;
}

.child-shop-select-results.child-shop-select-sliding::before {
    left: 0;
    width: 100%;
}

.child-shop-select-sliding.has-highlight::before {
    opacity: 1;
}

.child-shop-select-sliding.is-positioned::before {
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1),
        height 280ms cubic-bezier(.22, 1, .36, 1), opacity 160ms;
}

.child-shop-select-sliding > li {
    position: relative;
    z-index: 1;
}

.child-shop-select-sliding > li:hover,
.child-shop-select-sliding > li > button:not(:disabled),
.child-shop-select-sliding > li:hover > button:not(:disabled),
.child-shop-select-sliding > li > button:not(:disabled):hover,
.child-shop-select-sliding > li > button:not(:disabled):focus,
.child-shop-select-sliding > li > button:not(:disabled)[aria-selected="true"] {
    background: transparent;
}

.child-shop-select-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    background: rgb(0 0 0 / 35%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms, visibility 220ms;
}

.child-shop-select-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.child-shop-filters.is-select-active {
    position: relative;
    z-index: 1101;
}

.child-shop-filters.is-select-active::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
    background: rgb(0 0 0 / 35%);
    pointer-events: none;
}

.child-shop-filters .child-shop-dropdown.is-open {
    position: relative;
    z-index: 2;
}

.child-shop-filters .child-shop-dropdown.is-open .child-shop-select-toggle,
.child-shop-filters .child-shop-dropdown.is-open .child-shop-select-options {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .child-shop-select-sliding.is-positioned::before,
    .child-shop-select-backdrop {
        transition: none;
    }
}

