/**
 * ==========================================================================
 * GEC Frontend Framework
 * ==========================================================================
 *
 * File        : input.css
 * Version     : 2.1.0
 * Status      : Production
 *
 * Description :
 * Input Component
 *
 * Dependencies:
 * - variables.css
 * - form-control.css
 *
 * ==========================================================================
 */


/* ==========================================================================
   01. BASE
   ========================================================================== */

.gec-input{

    height:var(--form-height-md);

    padding:

        var(--form-padding-y-md)

        var(--form-padding-x-md);

    appearance:none;

    -webkit-appearance:none;

    -moz-appearance:none;

}


/* ==========================================================================
   02. SIZES
   ========================================================================== */

.gec-input-sm{

    height:var(--form-height-sm);

    font-size:var(--font-size-sm);

}

.gec-input-md{

    height:var(--form-height-md);

}

.gec-input-lg{

    height:var(--form-height-lg);

    font-size:var(--font-size-lg);

}


/* ==========================================================================
   03. WIDTH
   ========================================================================== */

.gec-input-fluid{

    width:100%;

}


/* ==========================================================================
   04. READONLY
   ========================================================================== */

.gec-input[readonly]{

    background:var(--form-background-readonly);

    cursor:default;

}


/* ==========================================================================
   05. SEARCH
   ========================================================================== */

.gec-input[type="search"]{

    appearance:none;

    -webkit-appearance:none;

}

.gec-input[type="search"]::-webkit-search-decoration,

.gec-input[type="search"]::-webkit-search-cancel-button,

.gec-input[type="search"]::-webkit-search-results-button,

.gec-input[type="search"]::-webkit-search-results-decoration{

    display:none;

}


/* ==========================================================================
   06. NUMBER
   ========================================================================== */

.gec-input[type="number"]{

    appearance:textfield;

    -moz-appearance:textfield;

}

.gec-input[type="number"]::-webkit-inner-spin-button,

.gec-input[type="number"]::-webkit-outer-spin-button{

    -webkit-appearance:none;

    margin:0;

}


/* ==========================================================================
   07. PASSWORD
   ========================================================================== */

.gec-input[type="password"]{

    letter-spacing:.08em;

}


/* ==========================================================================
   08. COLOR
   ========================================================================== */

.gec-input[type="color"]{

    padding:2px;

    cursor:pointer;

}


/* ==========================================================================
   09. FILE
   ========================================================================== */

.gec-input[type="file"]{

    padding:0;

    border:none;

    background:transparent;

    cursor:pointer;

}


/* ==========================================================================
   10. DATE / TIME
   ========================================================================== */

.gec-input[type="date"],
.gec-input[type="time"],
.gec-input[type="datetime-local"],
.gec-input[type="month"],
.gec-input[type="week"]{

    cursor:pointer;

}


/* ==========================================================================
   11. AUTOFILL
   ========================================================================== */

.gec-input:-webkit-autofill{

    transition:

        background-color 9999s ease-in-out 0s;

}
