
/* ================= SIZE STYLE */

.mb2-pb-select {

    .select-button {
        a {
            padding-top: 0;
            padding-bottom: 0;
            height: 45px;
            line-height: 41px;
        }
    }

    &.elcenter1 {
        margin-left: auto;
        margin-right: auto;

        .select-container {
            justify-content: center;
        }
    }

    @media only screen and (min-width: $wdmediumdevice){
        &.sizel {
            .select-button {
                a {
                    @include button-size(0, 1.6rem, 1.17rem, 50px, .24rem);
                    height: 54px;

                    &.rounded1 {
                        @include mb2_border_radius(50%);
                    }
                }
            }

            .select-dropdown {
                button {
                    font-size: 1.18rem;
                    height: 54px;
                }
            }
        }
    }

}


.select-container {


    @media only screen and (min-width: $wsmalldevice){

        .mb2-pb-select.layouth & {
            display: flex;
            flex-flow: row;
        }

    }

}

.select-label {
    margin-bottom: .6rem;
}


/* ================= DROPDOWN BUTTON */

.select-dropdown  {
	button {
		border: 0;
		padding: 0 3rem 0 1.3rem;
	    background-color: #fff;
	    width: 300px;
	    text-align: left;
		position: relative;
	    @include mb2_border_radius(.22rem);
		color: $textcolor;
        height: 45px;
	}

    margin-right: 15px;
	margin-bottom: 15px;

    .mb2-pb-select.layoutv & {
        margin-right: 0;

        button {
            width: 100%;
        }
    }
}

.select-btn-arrow {

	position: absolute;
    display: block;
    width: 24px;
    height: 24px;
    text-align: center;
    right: .75rem;
    top: 50%;
    margin-top: -12px;
    line-height: 24px;
    font-size: 1.4rem;

	&:before {
		@include mb2_font_fa();
		content: '\f107';
	}

	.mb2-pb-select.active & {
		&:before {
			content: '\f106';
		}
	}
}

.select-btn-text {
	white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.select-dropdown,
.select-button {

    .mb2-pb-select.layoutv & {
        display: block;
    }
}


/* ================= LINK BUTTON */

.select-button {

    .mb2-pb-select.layoutv & {
        a {
            width: 100%;
        }
    }
}



/* ================= SELECT ITEMS CONTAINER */

.select-items-container {
    background-color: #fff;
    border: solid 1px $color_border;
    @include mb2_border_radius(.22rem);
    width: 100%;
	position: absolute;
	margin-top: 18px;
    z-index: 99;
    @include mb2_box-shadow(0 15px 20px, rgb(0 0 0, .25));

    &.sizel {
        font-size: 1.18rem;
    }

    .builderpage & {
        display: none;

        &.active {
            display: block;
        }
    }

	.path-admin-local-mb2builder & {
		position: relative;
        max-width: 300px;
        padding: .55rem 1.3rem;
	}

	&:before {
		content: '';
	    display: block;
	    border: solid 1px $color_border;
        border-bottom-color: rgba(255,255,255,0);
        border-right-color: rgba(255,255,255,0);
        @include mb2_transform_rotate(45deg, 39px 36px);
        background-color: #fff;
        width: 24px;
        height: 24px;
	    top: 0;
	    left: 0;
	    position: absolute;
	}

    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
}


/* ================= SELECT ITEM */

.mb2-pb-select_item {
    position: relative;
    padding: .6rem 1.3rem;
    cursor: pointer;

    &:hover,
    &:focus {
        background-color: $color_gray2;
    }

    &:first-child {
        @include mb2_border_radius(.22rem .22rem 0 0);
    }

    &:last-child {
        @include mb2_border_radius(0 0 .22rem .22rem);
    }
}

.select-image {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    margin-right: .6rem;
    border: solid 2px rgba(0,0,0,.1);
}

.select-text,
.select-btn-text {
	display: inline-block;
	width: calc(100% - (34px + .6rem));
	vertical-align: middle;
	line-height: $lhheadings;
}

.mb2-pb-select.isimage0 {
	.select-text,
	.select-btn-text {
		width: 100%;
	}
}
