/*
 This css and associated images borrow heavily from the fantastic 
 chosen select box plugin.
 
 Copyright (c) 2011 Harvest http://getharvest.com

 MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
*/
body {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}
.font-select {
    color:#000;
    font-size: 16px;
    position: relative;
    display: inline-block;
    zoom: 1;
    *display: inline;
    vertical-align: middle;
    width: 100%;
}

.font-select .fs-drop {
    background: #fff;
    border: 1px solid #aaa;
    -webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
    -moz-box-shadow   : 0 4px 5px rgba(0,0,0,.15);
    -o-box-shadow     : 0 4px 5px rgba(0,0,0,.15);
    box-shadow        : 0 4px 5px rgba(0,0,0,.15);
    z-index: 999;
}

.font-select > a {
    background-color: #fff;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
    background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
    background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
    background-image: -o-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
    background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
    background-image: linear-gradient(top, #eeeeee 0%,#ffffff 50%);
    -moz-background-clip   : padding;
    -webkit-background-clip: padding-box;
    background-clip        : padding-box;
    border: 1px solid #aaa;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 28px;
    line-height: 26px;
    padding: 0 0 0 8px;
    color: #444;
    text-decoration: none;
}

.font-select > a span {
    margin-right: 26px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.8;
    -o-text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    cursor: pointer;
}

.font-select > a div {
    -moz-background-clip   : padding;
    -webkit-background-clip: padding-box;
    background-clip        : padding-box;
    background: #ccc;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
    background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
    background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
    background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
    background-image: -ms-linear-gradient(top, #cccccc 0%,#eeeeee 60%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#eeeeee',GradientType=0 );
    background-image: linear-gradient(top, #cccccc 0%,#eeeeee 60%);
    border-left: 1px solid #aaa;
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    height: 100%;
    width: 18px;
}

.font-select > a div b {
    background: url('../images/fs-sprite.png') no-repeat 0 1px;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.font-select .fs-drop {
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius   : 0 0 4px 4px;
    border-radius        : 0 0 4px 4px;
    -moz-background-clip   : padding;
    -webkit-background-clip: padding-box;
    background-clip        : padding-box;
}

.font-select .fs-results {
    margin: 0 4px 4px 0;
    max-height: 500px;
    width: 100%;
    padding: 0 0 0 0px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: #eaeaea;
    color: #333;;    
}


.font-select .fs-results li {
    position: relative;
    line-height: 80%;
    margin: 0;
    list-style: none;
    font-size: 20px;
    width:100%;
    line-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;

}

.font-select .fs-results li.active {
    border-left: 4px solid #00a0d2;
        background-color: #f7fcfe;
}


.font-select .fs-results li span.abcff {
    position: absolute;
    font-family: Arial;
    font-size:13px;
    top:8px;
    left:43px;
    line-height: 20px;
    padding:4px 12px;
    width:140px;
    color:#333333;
}

.font-select .fs-results li:hover span.abcff, .font-select .fs-results li:hover .fontpick {
    background:none;
        color:#ffffff;
}

.fs-results li span.abc {
    position: relative;
    display: block;
    outline:none;    
    padding:0 176px;
}

.fontpick {
      -webkit-border-radius: 24px;
      -moz-border-radius   : 24px;
      border-radius        : 24px;
    padding: 0px; position: absolute; color: #3875d7; left: 16px; top:6px; line-height:32px;display: none;
}
.fontpick span.genericon {
    font-size:32px;
}
.fs-results li a, .fs-results li a:focus, .fs-results li a:active {
    display:block;
    height:36px;
    color:#000;
    text-decoration: none;
    outline: 0;
    padding: 7px 40px 0px;
}

.font-select .fs-results li:hover {
    background: #3875d7;
    cursor: pointer;
}

.font-select .fs-results li:hover a {
    color: #fff;
}
.font-select .fs-results li em {
    background: #feffde;
    font-style: normal;
}

.font-select .fs-results li.active em {
    background: transparent;
}

.font-select-active > a {
    -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
    -moz-box-shadow   : 0 0 5px rgba(0,0,0,.3);
    -o-box-shadow     : 0 0 5px rgba(0,0,0,.3);
    box-shadow        : 0 0 5px rgba(0,0,0,.3);
    border: 1px solid #5897fb;
}

.font-select-active > a {
    border: 1px solid #aaa;
    -webkit-box-shadow: 0 1px 0 #fff inset;
    -moz-box-shadow   : 0 1px 0 #fff inset;
    -o-box-shadow     : 0 1px 0 #fff inset;
    box-shadow        : 0 1px 0 #fff inset;
    background-color: #eee;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
    background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
    background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
    background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
    background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
    background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
    -webkit-border-bottom-left-radius : 0;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-radius-bottomleft : 0;
    -moz-border-radius-bottomright: 0;
    border-bottom-left-radius : 0;
    border-bottom-right-radius: 0;
}

.font-select-active > a div {
    background: transparent;
    border-left: none;
}

.font-select-active > a div b {
    background-position: -18px 1px;
}

.fs-results li.websafe  {
    background-color:#fafafa;
}


.form-options .fs-results {
    height:160px;
    width:270px !important;
}

.form-options .font-select  {
    height:170px;
}
.form-options .font-select .fs-results li {
    line-height: 24px;
    font-size:1.2em;
    background: #FFF;
    padding:4px 8px;
    margin:0;
    float: none;
    width:100%;
}
.form-options #safefonts {
    width:276px;
    height: 150px;
}
