.dynamic-select {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    position: relative;
    width: 100%;
    user-select: none;
    .dynamic-select-header {
        border: 1px solid #dee2e6;
        padding: 7px 30px 7px 12px;
        &::after {
            content: '';
            display: block;
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23949ba3' viewBox='0 0 16 16'%3E%3Cpath d='M8 13.1l-8-8 2.1-2.2 5.9 5.9 5.9-5.9 2.1 2.2z'/%3E%3C/svg%3E");
            height: 12px;
            width: 12px;
        }
        &.dynamic-select-header-active {
            border-color: darken(#dee2e6, 10);
            &::after {
                transform: translateY(-50%) rotate(180deg);
            }
            & + .dynamic-select-options {
                display: flex;
            }
        }
        .dynamic-select-header-placeholder {
            color: lighten(#212529, 30);
        }
    }
    .dynamic-select-options {
        display: none;
        box-sizing: border-box;
        flex-flow: wrap;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        margin-top: 5px;
        padding: 5px;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,.1);
        max-height: 200px;
        overflow-y: auto;
        overflow-x: hidden;
        &::-webkit-scrollbar {
            width: 5px;
        }
        &::-webkit-scrollbar-track {
            background: #f0f1f3;
        }
        &::-webkit-scrollbar-thumb {
            background: #cdcfd1;
        }
        &::-webkit-scrollbar-thumb:hover {
            background: darken(#cdcfd1, 10);
        }
        .dynamic-select-option {
            padding: 7px 12px;
            &:hover, &:active {
                background-color: #f3f4f7;
            }
        }
    }
    .dynamic-select-header, .dynamic-select-option {
        display: flex;
        box-sizing: border-box;
        align-items: center;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        align-items: center;
        width: 100%;
        height: 45px;
        font-size: 16px;
        color: #212529;
        img {
            object-fit: contain;
            max-height: 100%;
            max-width: 100%;
            &.dynamic-size {
                object-fit: fill;
                max-height: none;
                max-width: none;
            }
        }
        img, svg, i, span {
            box-sizing: border-box;
            margin-right: 10px;
        }
        &.dynamic-select-no-text {
            justify-content: center;
            img, svg, i, span {
                margin-right: 0;
            }
        }
        .dynamic-select-option-text {
            box-sizing: border-box;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: inherit;
            font-size: inherit;
        }
    }
}