.fancy-select {
    position: relative;
    display: inline-block;
    background: #a7c7dc; /* Old browsers */
    color: #000000;
    border-radius: 5px;
}

.fancy-select.open {     
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.fancy-select span.fancy-select-span-text {
    min-height: 10px;
    padding: 5px 20px;    
    border-radius: 5px;
    display: inline-block;
    min-width: 150px;
    position: relative;
    cursor: default;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.fancy-select span.fancy-select-span-arrow {
    position: absolute;
    right: 10px;
    top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: red url("../images/dropdown_arrow.png");
}

.fancy-select.open span.fancy-select-span-arrow {
    background-image: url("../images/dropdown_arrow_up.png");    
}

.fancy-select-ul {
    position: absolute;
    cursor: pointer;
    list-style-type: none;
    display: none;
    padding-left: 0;
    margin: 0;
    background: inherit;
    border-top: 1px black solid;
    max-height: 310px;
    overflow: auto;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.fancy-select-ul li {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-right: 5px;
    margin-left: 5px;
}

.fancy-select-ul li:hover {
    border-radius: 5px;
    background: blue;
    color: #FFF;
}

.fancy-select-ul li:first-child {
    margin-top: 5px;
}

.fancy-select-ul li:last-child {
    margin-bottom: 5px;
}

.fancy-select-ul.active {
}

.fancy-checkbox {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("../images/checkbox_unchecked.png");
}

.fancy-checkbox.active {
    background-image: url("../images/checkbox_checked.png");    
}

.fancy-radio {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("../images/radio_unchecked.png");
}

.fancy-radio.active {
    background-image: url("../images/radio_checked.png");    
}