#afModalMask {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
    z-index: 9999;
}

#afSelectBoxContainer {
    position: absolute;
    display: block;
    width: 90%;
    max-width: 280px;
    margin-right: auto;
    min-height: 100px;
    background: #303030;
    color: white;
    overflow: hidden;
    z-index: 9999;
    max-height: 300px;
    margin-top: -150px;
    top: 50%;
    left: 50%;
    margin-left: -138px;
}

#afSelectBoxfix ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

#afSelectBoxfix li {
    font-size: 1.1em;
    color: #fff;
    display: block;
    line-height: 2.5em;
    padding: 0 1em;
    border-bottom: 1px solid #444;
}

#afSelectBoxfix .selected {
    background: #33B5E5;
}

.afFakeSelect {
    width: 200px;
    height: 30px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 5px;
    line-height: 2em;
    font-size: 1em;
    padding-left: 10px;
    position: relative;
    padding-right: 35px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.afFakeSelect:after {
    position: absolute;
    top: 5px;
    right: 5px;
    border: 14px solid transparent;
    border-top-color: #ccc;
    content: '';
}

#afSelectBoxContainer #afSelectDone, #afSelectBoxContainer #afSelectCancel {
    margin-top: 10px;
    display: inline-block;
    height: 30px;
    width: 100px;
    background: #33B5E5;
    border: 1px solid #33B5E5;
    text-align: center;
    line-height: 2em;
    float: left;
    margin-left: 10px;
}

#afSelectBoxContainer #afSelectCancel {
    float: right;
    margin-right: 10px;
}

#afSelectBoxContainer #afSelectClose {
    overflow: hidden;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

select:disabled ~ .afFakeSelect {
    background: #ccc;
    color: black;
}