﻿/*
B.E.M Naming convention:

(Block) .custom-dropdown
The main component

(Element) .custom-dropdown__select
Descendant of .custom-dropdown

(Modifier) .custom-dropdown--*
Different state of .custom-dropdown
*/

.custom-dropdown--large {
    font-size: 1.2em;
}

.custom-dropdown--small {
    font-size: .7em;
}

.custom-dropdown__select {
    font-size: inherit; /* inherit size from .custom-dropdown */
    padding: .5em; /* add some space*/
    margin: 0; /* remove default margins */
    width: 100%;
    border: 1px solid #dbdbdb;
}

.custom-dropdown__select--white {
    background-color: #fff;
    color: #ababab;
}

.custom-dropdown__select--emerald {
    background-color: #20b390;
    color: #fff;
}

.custom-dropdown__select--red {
    background-color: #d53a22;
    color: #fff;
}


    .custom-dropdown {
        position: relative;
        display: inline-block;
        vertical-align: middle;
        width: 100%;
    }

    .custom-dropdown__select {
        padding-right: 2.5em; /* accommodate with the pseudo elements for the dropdown arrow */
        /*border: 0;*/
        border-radius: 3px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .custom-dropdown::before,
    .custom-dropdown::after {
        content: "";
        position: absolute;
        pointer-events: none;
    }

    .custom-dropdown::after { /*  Custom dropdown arrow */
        content: "\25BC";
        height: 1em;
        font-size: .625em;
        line-height: 1;
        right: 1.2em;
        top: 50%;
        margin-top: -.5em;
    }

    .custom-dropdown::before { /*  Custom dropdown arrow cover */
        width: 2em;
        right: 0;
        top: 0;
        bottom: 0;
        border-radius: 0 3px 3px 0;
    }

    .custom-dropdown__select[disabled] {
        color: rgba(0,0,0,.3);
    }

    .custom-dropdown.custom-dropdown--disabled::after {
        color: rgba(0,0,0,.1);
    }
    /* White dropdown style */
    .custom-dropdown--white::before {
        top: .5em;
        bottom: .5em;
        background-color: #fff;
        border-left: 1px solid rgba(0,0,0,.1);
        margin: 0 2px;
    }

    .custom-dropdown--white::after {
        color: rgba(0,0,0,.9);
    }
    /* Emerald dropdown style */
    .custom-dropdown--emerald::before {
        background-color: #1aa181;
    }

    .custom-dropdown--emerald::after {
        color: rgba(0,0,0,.4);
    }
    /* Red dropdown style */
    .custom-dropdown--red::before {
        background-color: #d53a22;
    }

    .custom-dropdown--red::after {
        color: rgba(0,0,0,.4);
    }

