﻿/* styled-select */
.styled-select select {
    padding: 16px 8px;
    border: 1px solid rgba(0,0,0,0.1);
    border: none;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    cursor: pointer;
}

.styled-select select::-ms-expand {
    display: none;
}

.styled-select::after {
    position: absolute;
    content: '\E5C5';
    font-family: 'Material Icons';
    font-size: 28px;
    color: #757575;
    left: -6px;
    top: calc(50% - 21px);
}

/* .styled-select */
/* ===== Select Box ===== */
.sel {
    display: inline-block;
    width: 100%;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    border-bottom: solid 1px #ffffff;
}

.sel::before {
    position: absolute;
    content: '\E5C5';
    font-family: 'Material Icons';
    font-size: 28px;
    color: #7f7f7f;
    left: -6px;
    top: calc(50% - 21px);
}

.sel.active::before {
    transform: rotateX(-180deg);
}

.sel.active {
    border-bottom: solid 1px var(--secondaryColor);
}

.sel__placeholder {
    display: block;
    padding: 0px 0px 4px 24px;
    text-align: left;
    pointer-events: none;
    user-select: none;
    visibility: visible;
}

.sel.active .sel__placeholder {
    visibility: hidden;
}

.sel__placeholder::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0px 0px 4px 24px;
    content: attr(data-placeholder);
    visibility: hidden;
}

.sel.active .sel__placeholder::before {
    visibility: visible;
}

.sel__box {
    position: absolute;
    top: calc(100% + 2px);
    left: -1px;
    display: none;
    list-style-type: none;
    text-align: left;
    font-size: 16px;
    background-color: #FFF;
    width: calc(100% + 2px);
    box-sizing: border-box;
    z-index: 998;
    border-left: solid 1px #e6e6e6;
    border-right: solid 1px #e6e6e6;
    border-bottom: solid 1px #e6e6e6;
    -webkit-box-shadow: 0px 0px 2px 1px rgba(230,230,230,1);
    -moz-box-shadow: 0px 0px 2px 1px rgba(230,230,230,1);
    box-shadow: 0px 0px 2px 1px rgba(230,230,230,1);
}

.sel.active .sel__box {
    display: block;
    animation: fadeInUp 500ms;
}

.sel__box__options {
    display: list-item;
    font-size: 16px;
    color: #000000;
    padding: 8px 8px 8px 8px;
    user-select: none;
}

.sel__box__options::after {
    content: '\E876';
    font-family: 'Material Icons';
    font-size: 12px;
    margin-top: 2px;
    margin-left: 8px;
    display: none;
}

.sel__box__options.selected::after {
    display: inline;
}

.sel__box__options:hover {
    color: white;
    background-color: var(--primaryColor);
}


/* ===== Keyframes ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
