/* Custom select
   ========================================================================== */
/* The container must be positioned relative: */

.custom-select {
    display: none; /* Hide original select */
}

.select-selected {
    width: 100%;
    height: 50px;

    padding: 13px 35px 0px 15px;

    color: rgba(41, 41, 41, 1.0);
    background-color: rgba(255, 255, 255, 1.0); /* White */

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* style the items (options), including the selected item: */
.select-items div, .select-selected {
    cursor: pointer;

    color: rgba(41, 41, 41, 1.0);
    background-color: rgba(255, 255, 255, 1.0); /* White */
}

/* Style items (options): */
.select-items {
    z-index: 50;

    position: absolute;
    top: 65px;
    left: 15px;

    width: 90%;
    max-height: 250px !important;
    overflow-y: auto;

    box-shadow: 0px 0px 5px rgba(41, 41, 41, 0.33);

    display: none;
}

.select-items:before {
    z-index: 100;
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    top: -20px;
    left: 15px;

    background-color: transparent;
    border: 10px solid transparent; /* Input Background Grey */
    border-bottom-color: rgba(243, 242, 241, 1.0); /* Input Background Grey */
}

.select-items div {
    display: flex;
    align-items: center;
    flex-flow: row wrap;

    padding: 2px 15px 0px;

    width: 100%;
    height: 50px;
}

.select-item-multi {
    padding: 3px 15px !important;
    height: 55px !important;
}

.select-items div span {
    float: left;

    width: 100%;
    height: auto;

    line-height: 1.1em;
}

.select-items div p {
    float: left;

    width: 100%;
    height: auto;

    margin-top: -10px;

    font-size: 0.8em;
    font-style: italic;
    line-height: 1em;

    display: none;
}

/* Hide the items when the select box is closed: */
.select-items div:hover, .same-as-selected {
    color: rgba(255, 255, 255, 1.0);
    background-color: rgba(143, 76, 106, 1.0); /* KS Purple */
}

/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    content: url("/images/select_arrow.png");

    top: 8px;
    right: 5px;

    /*opacity: 0.5;*/
}

/* Responsive
   ========================================================================== */
@media only screen and (max-width: 975px) {

    .select-items {
        width: calc(100% - 30px);
    }
}

@media only screen and (max-width: 768px) {

    .select-items div p {
        display: block !important;
    }
}

@media only screen and (max-width: 680px) {

    .select-selected {
        padding: 14px 35px 0px 15px;
    }

    .select-items div {
        padding: 1px 15px 0px;
    }
}

@media only screen and (max-width: 575px) {

    .select-selected {
        padding: 15px 35px 0px 15px;
    }

    .select-items div {
        padding: 1px 15px 0px;
    }
}

@media only screen and (max-width : 415px) {

    .select-selected {
        padding: 19px 35px 0px 15px;
        line-height: 1em;
    }
}

@media only screen and (max-width : 360px) {

    #section_comment .select-selected {
        padding: 15px 0px 0px 10px;
    }
}