.wc-block-components-dropdown-selector { max-width: 300px; position: relative; width: 100%; } .wc-block-components-dropdown-selector__input-wrapper { align-items: center; border: 1px solid #9f9f9f; border-radius: 4px; cursor: text; display: flex; flex-wrap: wrap; padding: 2px; .is-disabled & { background-color: $core-grey-light-500; } } .wc-block-components-dropdown-selector__placeholder { @include font-size(small); height: 1.8em; margin: 0 $gap-smallest; white-space: nowrap; } .wc-block-components-dropdown-selector__input { @include font-size(small); height: 1.8em; min-width: 0; .is-single & { margin: 0 4px; padding: 0; width: 100%; &:hover, &:focus, &:active { outline: 0; } &:not(:first-child):focus { margin-bottom: 1.5px; margin-top: 1.5px; } &:not(:first-child):not(:focus) { @include visually-hidden(); // Fixes an issue in Firefox that `flex: wrap` in the container was making // this element to still occupy one line. position: absolute; } } .is-multiple & { flex: 1; min-width: 0; margin: 1.5px; } } // Visually hide the input .is-single .wc-block-components-dropdown-selector__input:first-child, .is-multiple .wc-block-components-dropdown-selector__input { background: transparent; border: 0; &:hover, &:focus, &:active { outline: 0; } } .wc-block-components-dropdown-selector { // Reset