/**
 * ==========================================================================
 * GEC Frontend Framework
 * ==========================================================================
 *
 * File        : select.css
 * Version     : 2.1.0
 * Status      : Production
 *
 * Description :
 * Select Component
 *
 * Dependencies:
 * - variables.css
 * - form-control.css
 *
 * ==========================================================================
 */


/* ==========================================================================
   01. BASE
   ========================================================================== */

.gec-select{

    height:var(--form-height-md);

    padding:
        var(--form-padding-y-md)
        calc(
            var(--form-padding-x-md)
            +
            var(--form-select-icon-size)
            +
            var(--form-select-icon-gap)
        )
        var(--form-padding-y-md)
        var(--form-padding-x-md);

    appearance:none;

    -webkit-appearance:none;

    -moz-appearance:none;

    cursor:pointer;

    background-color:var(--form-background);

    background-repeat:no-repeat;

    background-position:
        right var(--form-padding-x-md)
        center;

    background-size:var(--form-select-icon-size);

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 10 12 14 8'/%3E%3C/svg%3E");

}


/* ==========================================================================
   02. OPTION
   ========================================================================== */

.gec-select option{

    color:var(--form-text-color);

    background:var(--form-background);

}


/* ==========================================================================
   03. SIZES
   ========================================================================== */

.gec-select-sm{

    height:var(--form-height-sm);

    font-size:var(--font-size-sm);

}

.gec-select-md{

    height:var(--form-height-md);

}

.gec-select-lg{

    height:var(--form-height-lg);

    font-size:var(--font-size-lg);

}


/* ==========================================================================
   04. WIDTH
   ========================================================================== */

.gec-select-fluid{

    width:100%;

}


/* ==========================================================================
   05. MULTIPLE
   ========================================================================== */

.gec-select[multiple]{

    height:auto;

    padding-right:var(--form-padding-x-md);

    background-image:none;

}


/* ==========================================================================
   06. PLACEHOLDER
   ========================================================================== */

.gec-select:invalid{

    color:var(--form-placeholder-color);

}


/* ==========================================================================
   07. REMOVE DEFAULT ARROW (IE)
   ========================================================================== */

.gec-select::-ms-expand{

    display:none;

}


/* ==========================================================================
   END OF FILE
   ========================================================================== */