/*//////////////////////////////////////*/
/*//////////// MAIN STYLES /////////////*/
/*//////////////////////////////////////*/

.epi-textbox {position: relative; background-color: rgba(255,255,255,1); color: #434a54; font-size: 13px;}
.epi-textbox::before {
    content: attr(data-name);
    position: absolute;
    top: 2px;
    left: 17px;
    line-height: 36px;
    height: 36px;
    font-size: inherit;
    color: inherit;
    opacity: 0.5;
    display: inline-block;
    max-width: calc(100% - 30px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
}

.epi-textbox input, .epi-textbox textarea {
    background-color: transparent;
    padding: 0 15px;
    display: block;
    width: 100%;
    height: 40px;
    font-size: inherit;
    color: inherit;
    z-index: 10;
    position: relative;
    border: 2px solid rgba(67,74,84,0.1);
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
    -webkit-box-shadow: 0 0 6px 1px rgba(0,0,0,0);
    box-shadow: 0 0 6px 1px rgba(0,0,0,0);
    -webkit-appearance: none;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.epi-textbox.height-200 textarea {height: 200px;}
.epi-textbox:hover input, .epi-textbox:hover textarea {border-color: rgba(67,74,84,0.3);}
.epi-textbox textarea {
    -webkit-transition-property: min-height, padding, -webkit-box-shadow, border;
    -moz-transition-property: min-height, padding, box-shadow ,border;
    -o-transition-property: min-height, padding, box-shadow, border;
    transition-property: min-height, padding, box-shadow, border;
    min-height: 80px;
    padding: 10px 15px;
}

/*.epi-textbox.focused input, .epi-textbox.focused textarea {-webkit-box-shadow: 0 0 6px 1px rgba(0,0,0,0.1); box-shadow: 0 0 6px 1px rgba(0,0,0,0.1);}*/
.epi-textbox.focused input, .epi-textbox.focused textarea {padding-top: 12px; border-color: rgba(67,74,84,0.5);}
.epi-textbox.hasText input, .epi-textbox.hasText textarea {padding-top: 12px; border-color: rgba(67,74,84,0.5);}
.epi-textbox[data-error] input, .epi-textbox[data-error] textarea {border-color: rgba(255,81,83,1);}
.epi-textbox.hasText textarea, .epi-textbox.focused textarea {min-height: 80px; padding-top: 18px;}
.epi-textbox.focused::before, .epi-textbox.hasText::before {opacity: 0;}
.epi-textbox.focused::before, .epi-textbox.hasText::before {opacity: 0.5; top: 8px; height: 11px; line-height: 10px; font-size: 10px;}
.epi-textbox[data-error]::before{content: attr(data-name) attr(data-error); color: #ff5153 !important;}
.epi-textbox.no-border input, .epi-textbox.no-border textarea {border-color: transparent;}
.epi-textbox.radius-3, .epi-textbox.radius-3 input, .epi-textbox.radius-3 textarea {-webkit-border-radius: 3px; border-radius: 3px;}
.epi-textbox.radius-5, .epi-textbox.radius-5 input, .epi-textbox.radius-5 textarea {-webkit-border-radius: 5px; border-radius: 5px;}
.epi-textbox.radius-8, .epi-textbox.radius-8 input, .epi-textbox.radius-8 textarea {-webkit-border-radius: 8px; border-radius: 8px;}
.epi-textbox.radius-10, .epi-textbox.radius-10 input, .epi-textbox.radius-10 textarea {-webkit-border-radius: 10px; border-radius: 10px;}
.epi-textbox.round, .epi-textbox.round input, .epi-textbox.round textarea {-webkit-border-radius: 50px; border-radius: 50px;}

/*//////////////////////////////////////*/
/*///////////// DATE FIELD /////////////*/
/*//////////////////////////////////////*/

.epi-textbox input[type="date"], .epi-textbox textarea[type="date"] {padding-top: 12px; color: #ccc;}
.epi-textbox.date-field::before {opacity: 1; top: 8px; height: 11px; line-height: 10px; font-size: 10px; left: 19px;}
.epi-textbox.date-field.focused::before {opacity: 1;}
.epi-textbox.hasText input[type="date"] {color: #434a54;}

/*//////////////////////////////////////*/
/*///////////// ICON ADDED /////////////*/
/*//////////////////////////////////////*/

.epi-textbox.icon input, .epi-textbox.icon textarea {padding-left: 50px;}
.epi-textbox.icon::before {left: 52px; max-width: calc(100% - 65px);}
.epi-textbox .epi-svg {position: absolute; top: 50%; margin-top: -10px; left: 15px; width: 20px; height: 20px; z-index: 20;}

.epi-textbox.icon.right input, .epi-textbox.icon.right textarea {padding-right: 50px; padding-left: 15px;}
.epi-textbox.icon.right::before {left: 15px; max-width: calc(100% - 65px);}
.epi-textbox.right .epi-svg {right: 15px; left: auto;}

/*//////////////////////////////////////*/
/*////////// COLOUR OVERRIDES //////////*/
/*//////////////////////////////////////*/

.epi-textbox.focused input, .epi-textbox.focused textarea {border-color: rgba(228,87,120,0);}
.epi-textbox.hasText::before, .epi-textbox.hasText::before {color: rgb(67, 74, 84);}
.epi-textbox.single-line.focused::before, .epi-textbox.single-line.hasText::before {color: rgba(228,87,120,1);}
.epi-textbox.single-line::after {background-color: rgba(228,87,120,1);}

/*//////////////////////////////////////*/
/*//////////// SHOW PASSWORD ///////////*/
/*//////////////////////////////////////*/

.epi-textbox .showPass-hold {position: absolute; top: 0; right: 0; width: 40px; height: 100%; font-size: 0; text-align: center; z-index: 100;}
.epi-textbox .showPass-hold::before {content: ""; display: inline-block; width: 0; height: 100%; vertical-align: middle;}
.epi-textbox .showPass-icon {display: inline-block; vertical-align: middle; width: 15px; height: 15px; cursor: pointer;}
.epi-textbox .showPass-icon svg {fill: rgba(0,0,0,0.2);}
.epi-textbox .showPass-icon:hover svg {fill: rgba(0,0,0,0.4);}
.epi-textbox .showPass-icon.active svg {fill: rgba(0,0,0,0.6);}
.epi-textbox.show-password input {padding-right: 40px;}

/*//////////////////////////////////////*/
/*//////////// INFO TOOL TIP ///////////*/
/*//////////////////////////////////////*/

.epi-textbox.hasInfo {z-index: 100;}
.epi-textbox.hasInfo input, .epi-textbox.hasInfo textarea {padding-right: 35px;}
.epi-textbox .epi-textbox-info {position: absolute; pointer-events: none; top: 0; right: 0; padding: 0 15px 0 5px; height: 100%; z-index: 20; font-size: 0; text-align: center;}
.epi-textbox .epi-textbox-info::before {content: ""; display: inline-block; width: 0; height: 100%; vertical-align: middle;}
.epi-textbox .epi-textbox-info-inner {
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    background-color: #515151;
    text-align: center;
    font-size: 0;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    pointer-events: auto;
}

.epi-textbox .epi-textbox-info-icon {display: inline-block; width: 100%; height: 100%;}
.epi-textbox .epi-textbox-info-icon svg {fill: #fff;}
.epi-textbox .epi-tipPop.left {right: -15px;}
.epi-textbox .epi-tipPop.top.left .epi-tipPop-inner::after {right: 17px;}

.epi-textbox.vertTop .epi-textbox-info {padding-top: 13px; height: calc(100% - 13px);}
.epi-textbox.vertTop .epi-textbox-info-inner {vertical-align: top;}

/*//////////////////////////////////////*/
/*///////////// INPUT COUNT ////////////*/
/*//////////////////////////////////////*/

.epi-textbox.hasCount input, .epi-textbox.hasCount textarea {padding-right: 70px;}
.epi-textbox.hasCount textarea {min-height: 150px;}
.epi-textbox-count {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: right;
    font-size: 12px;
    color: #949494;
    padding: 10px 25px;
    box-sizing: border-box;
}

/*//////////////////////////////////////*/
/*//////////// AUTO COMPLETE ///////////*/
/*//////////////////////////////////////*/

.autoComp {position: absolute; top: calc(100% - 4px); width: 100%; left: 0; z-index: 1000; opacity: 0; pointer-events: none;}
.epi-textbox.activate-auto .autoComp {opacity: 1; pointer-events: auto;}
.autoComp.active {opacity: 1; pointer-events: auto;}
.autoComp .autoComp-inner {
    position: relative;
    background-color: #FFF;
    -webkit-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;
    -webkit-box-shadow: 0 15px 15px 0 rgba(0,0,0,0.1);
    box-shadow: 0 15px 15px 0 rgba(0,0,0,0.1);
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
    border-top: none;
    overflow: auto;
    max-height: 116px;
}

.autoComp .autoComp-list {display: block; margin: 0; padding: 0; text-align: left;}
.autoComp .autoComp-item {display: block; list-style: none;}
.autoComp .autoComp-link {
    display: block;
    padding: 10px 15px;
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
    cursor: pointer;
}

.autoComp .autoComp-link:hover {background-color: #eee;}
.autoComp .autoComp-txt {
    display: block;
    font-size: 13px;
    color: #515151;
    margin-bottom: 5px;
    text-align: left;
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
}

.autoComp .autoComp-txt:nth-last-child(1) {margin-bottom: 0;}
.autoComp .autoComp-txt:only-child {margin-bottom: 0;}

/*//////////////////////////////////////*/
/*///////// FORMATTING ERRORS //////////*/
/*//////////////////////////////////////*/

.epi-textbox .errMess {
    position: absolute;
    top: 8px;
    right: 15px;
    color: red;
    height: 11px;
    line-height: 10px;
    font-size: 10px;
    z-index: 30;
}

/*//////////////////////////////////////*/
/*////////////// CLEARABLE//////////////*/
/*//////////////////////////////////////*/

.epi-textbox.clearable input {padding-right: 46px;}
.epi-textbox.clearable .epi-textbox-clear {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 10px;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
    cursor: pointer;
    z-index: 100;
    -moz-transform: translateX(0px) translateY(-50%);
    -webkit-transform: translateX(0px) translateY(-50%);
    -o-transform: translateX(0px) translateY(-50%);
    -ms-transform: translateX(0px) translateY(-50%);
    transform: translateX(0px) translateY(-50%);
    padding: 3px;
}

.epi-textbox.clearable .epi-textbox-clear svg {fill: #434a54; width: 100%; height: 100%;}
.epi-textbox.clearable.hasText .epi-textbox-clear,
.epi-textbox.clearable.focused .epi-textbox-clear {opacity: 1; pointer-events: auto;}
.epi-textbox.clearable.right.hasText .epi-svg {display: none !important;}
.epi-textbox.clearable.right.icon .epi-textbox-clear {right: 37px;}
.epi-textbox.clearable.icon.right input, .epi-textbox.clearable.icon.right textarea {padding-right: 60px;}