/* Basics */
.gdrts-clearfix:before, 
.gdrts-clearfix:after {
    content: " ";
    display: table;
}

.gdrts-clearfix:after {
    clear: both;
}

.gdrts-dynamic-block .gdrts-rating-please-wait {
    display: none;
}

.gdrts-dynamic-block.gdrts-dynamic-loading .gdrts-rating-please-wait {
    display: block;
}

.gdrts-rating-list,
.gdrts-rating-list *,
.gdrts-rating-block,
.gdrts-rating-block * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.gdrts-rating-block {
    position: relative;
    margin: 15px 0;
}

.gdrts-inner-wrapper {
    text-align: left;
}

.gdrts-rating-block.gdrts-align-left .gdrts-inner-wrapper {
    text-align: left;
    margin: 15px auto 15px 0;
}

.gdrts-rating-block.gdrts-align-center {
    text-align: center;
    margin: 15px auto;
}

.gdrts-rating-block.gdrts-align-right {
    text-align: right;
    margin: 15px 0 15px auto;
}

.gdrts-inner-wrapper.gdrts-grid-wrapper {
    width: 100%;
}

/* Error Message */
.gdrts-error-message {
    color: #800;
    font-weight: bold;
}

/* Stars Rating */
.gdrts-stars-rating:not(.gdrts-state-active) {
    cursor: default;
}

.gdrts-stars-rating.gdrts-state-active .gdrts-stars-empty:not(.gdrts-vote-saving) {
    cursor: pointer;
}

.gdrts-stars-rating .gdrts-labels {
    display: none;
}

.gdrts-rating-please-wait {
    display: none;
    line-height: 24px;
}

.gdrts-rating-please-wait i.fa {
    margin: 0 6px 0 0;
    float: left;
    line-height: 24px;
}

.gdrts-vote-saving .gdrts-rating-please-wait {
    display: block;
}

/* Stars Rating: Images */
.gdrts-with-image {
    position: relative;
}

.gdrts-with-image .gdrts-stars-empty,
.gdrts-with-image .gdrts-stars-active,
.gdrts-with-image .gdrts-stars-current {
    display: inline-block;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.gdrts-with-image.gdrts-image-star .gdrts-stars-empty,
.gdrts-with-image.gdrts-image-star .gdrts-stars-active,
.gdrts-with-image.gdrts-image-star .gdrts-stars-current {
    background: url('images/stars.png') repeat-x;
    background-size: 40px;
}

.gdrts-with-image.gdrts-image-oxygen .gdrts-stars-empty,
.gdrts-with-image.gdrts-image-oxygen .gdrts-stars-active,
.gdrts-with-image.gdrts-image-oxygen .gdrts-stars-current {
    background: url('images/oxygen.png') repeat-x;
    background-size: 40px;
}

.gdrts-with-image.gdrts-image-crystal .gdrts-stars-empty,
.gdrts-with-image.gdrts-image-crystal .gdrts-stars-active,
.gdrts-with-image.gdrts-image-crystal .gdrts-stars-current {
    background: url('images/crystal.png') repeat-x;
    background-size: 40px;
}

.gdrts-with-image .gdrts-stars-empty {
    width: 100%;
    z-index: 0;

    background-position: left bottom !important;
}

.gdrts-with-image .gdrts-stars-current {
    z-index: 1;

    background-position: left center !important;
}

.gdrts-with-image .gdrts-stars-active {
    z-index: 2;

    background-position: left top !important;
}

/* Stars Rating: Fonticon */
.gdrts-with-fonticon {
    unicode-bidi: bidi-override;
    position: relative;
    white-space: nowrap;
}

.gdrts-with-fonticon .gdrts-stars-empty {
    display: inline-block;
    position: relative;
    font-size: 32px;
}

.gdrts-with-fonticon .gdrts-stars-empty::before,
.gdrts-with-fonticon .gdrts-stars-active::before,
.gdrts-with-fonticon .gdrts-stars-current::before{
    display: block;
}

.gdrts-with-fonticon .gdrts-stars-active,
.gdrts-with-fonticon .gdrts-stars-current {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
}

.gdrts-with-fonticon .gdrts-stars-current {
    z-index: 1;
}

.gdrts-with-fonticon .gdrts-stars-active {
    z-index: 2;
}

.gdrts-with-fonticon .gdrts-stars-empty {
    color: #ddd;
}

.gdrts-with-fonticon .gdrts-stars-current {
    color: #ff0;
}

.gdrts-with-fonticon .gdrts-stars-active {
    color: #d00;
}

/* Stars Rating: Distribution */
.gdrts-rating-distribution {
    margin: 10px 0 0;
}

.gdrts-distribution-wrapper,
.gdrts-distribution-wrapper * {
    box-sizing: border-box;
}

.gdrts-distribution-wrapper {
    padding: 8px 10px;
    border: 1px solid #aaaaaa;
    background: #eeeeee;
    width: 100%;
    max-width: 360px;
}

.gdrts-distribution-wrapper ul {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.gdrts-distribution-wrapper ul li {
    list-style: none;
    padding: 2px 0;
    margin: 0;
    line-height: 18px;
    font-size: 11px;
}

.gdrts-distribution-wrapper .gdrts-distribution-stars {
    margin-right: 1%;
    margin-top: 1px;
    width: 20%;
    float: left;
}

.gdrts-distribution-wrapper .gdrts-distribution-line {
    width: 60%;
    float: left;
    background: #ffffff;
    border: 1px solid #dddddd;
}

.gdrts-distribution-wrapper .gdrts-distribution-votes {
    margin-left: 1%;
    margin-top: 1px;
    width: 18%;
    float: left;
    text-align: right
}

.gdrts-distribution-wrapper .gdrts-distribution-line-fill {
    text-indent: -9999px;
    background: #EA2B2B;
}

/* Stars: Badge */
.gdrts-badge-wrapper {
    display: block;
    position: relative;
    margin: 0 auto;
}

.gdrts-badge-icon {
    position: relative;
}

.gdrts-badge-text {
    left: 0;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
    font-weight: bold;
}

.gdrts-badge-image.gdrts-image-star .gdrts-badge-icon {
    background: url('images/stars.png') no-repeat center;
}

.gdrts-badge-image.gdrts-image-oxygen .gdrts-badge-icon {
    background: url('images/oxygen.png') no-repeat center;
}

/* Rating Grid */
.gdrts-rating-list table {
    background: #ffffff;
    border: 2px solid #eeeeee;
    margin: 1em 0;
    table-layout: auto;
    width: 100%;
}

.gdrts-rating-list table thead {
    background: #eeeeee;
}

.gdrts-rating-list table thead tr th, 
.gdrts-rating-list table tbody tr th, 
.gdrts-rating-list table tbody tr td {
    padding: .5em;
    display: table-cell;
    vertical-align: middle;
}

.gdrts-rating-list table thead tr th {
    font-weight: bold;
    font-size: .9em;
    color: #222222;
}

.gdrts-rating-list table tr:nth-of-type(2n) {
    background: #fafafa;
}

.gdrts-rating-list .gdrts-grid-rating-thumbs .gdrts-thumb {
    display: block;
    float: left;
}

.gdrts-rating-list table.gdrts-grid-minimal .gdrts-grid-item {
    width: 99%;
}

.gdrts-rating-list table.gdrts-grid-minimal .gdrts-grid-likes,
.gdrts-rating-list table.gdrts-grid-minimal .gdrts-grid-emotes {
    white-space: nowrap;
}

.gdrts-rating-list table.gdrts-grid-minimal .gdrts-grid-likes .gdrts-block-like {
    display: block;
    text-align: right;
}

.gdrts-rating-list.gdrts-method-stars-rating table.gdrts-grid-minimal th.gdrts-grid-rating,
.gdrts-rating-list.gdrts-method-stars-review table.gdrts-grid-minimal th.gdrts-grid-rating {
    min-width: 20%;
}
