/* --- Show pagination --- */
#customer-reviews .pager {
    display: block;
}

/* --- Adjust padding of parent --- */
#advancereviews-filters {
    max-width: 92.5rem;
    margin: 0 auto;
    padding-top: 20px;
}

/* --- All labels & selects --- */
#advancereviews-filters .label {
    float: left;
    line-height: 41px !important;
    margin-right: 10px;
    margin-bottom: 0;
    font-style: italic;
    font-size: 0.8125rem;
    font-family: Georgia, Times New Roman, Times, serif;
}
#advancereviews-filters select {
    height: 41px;
    margin: 0;
    padding-right: 28px;
    border: 1px solid #acacac;
    border-radius: 4px;
    background-color: #fff;
    font-weight: bold;
    font-size: 0.8125rem;
    font-family: Arial, sans-serif;
}
#advancereviews-filters select:hover {
    background-color: #ededed;
}

/* --- Sorter --- */
#advancereviews-sort-reviews {
    float: left;
    margin-bottom: 20px;
}
#advancereviews-sort-reviews select {
    float: left;
    width: 145px !important;
    padding-left: 18px;
}
#advancedreviews-sorting-arrow {
    width: 12px;
    height: 15px;
    margin: 13px 15px !important;
}

/* --- Pagination --- */
#advancereviews-pager-reviews, #advancereviews-pager-reviews-footer {
    position: relative;
    float: right;
}
#advancereviews-pager-reviews-footer {
    margin-bottom: 40px;
}
.pager .amount, .pages, #advancereviews-pager-reviews .pager .limiter, #advancereviews-pager-reviews-footer .pager .limiter {
    float: left;
    padding-left: 40px;
    background: #fff;
}
/* amount */
#advancereviews-pager-reviews .pager .amount, #advancereviews-pager-reviews-footer .pager .amount  {
    margin-bottom: 0;
    line-height: 42px !important;
    font-size: 0.75rem;
    font-family: Arial, sans-serif;
    color: #606060;
}
/* pages */
.pages ol {
    float: left;
    margin: 0;
}
#advancereviews-filters .pages li {
    float: left;
    display: inline-block;
    height: 29px;
    line-height: 20px !important;
    margin-top: 6px;
    border: 1px solid #dedede;
    border-left-color: #fff;
    font-size: 0.8125rem;
    font-family: Arial, sans-serif;
}
#advancereviews-filters .pages li:first-child {
    border-left-color: #dedede;
}
#advancereviews-filters .pages li.current {
    height: 29px;
    padding: 5px 9px;
    background: #f8f8f8;
    color: #373737;
    font-weight: bold;
}
#advancereviews-filters .pages li a {
    display: inline-block;
    height: 28px;
    padding: 5px 10px;
    color: #606060;
}
#advancereviews-filters .pages li a:hover {
    background: #e0e0e0;
}
/* limiter */
.limiter select {
    vertical-align: inherit;
    padding-left: 10px;
}

/* --- Media Queries --- */
@media only screen and (max-width: 790px) {
    #advancereviews-sort-reviews {
        margin: 0;
    }
    #advancereviews-pager-reviews, #advancereviews-pager-reviews-footer {
        float: left;
        clear: left;
    }
    .pager .amount, .pages, #advancereviews-pager-reviews .pager .limiter, #advancereviews-pager-reviews-footer .pager .limiter {
        clear: left;
        padding-left: 0;
        background: #fff;
    }
    .pager .amount, .limiter {
        margin-top: 10px;
    }
}
@media only screen and (min-width: 64em) {
    #advancereviews-filters {
        padding-top: 40px;
    }
    #advancereviews-sort-reviews {
        padding-left: 2.5rem;
    }
    #advancereviews-pager-reviews, #advancereviews-pager-reviews-footer {
        padding-right: 2.5rem;
    }
}

/* --- Clear next element --- */
#advancereviews-filteredReviews {
    clear: both;
}

/* --- Flex fix --- */
@media only screen and (max-width: 64em) {
    #customer-reviews .review {
        flex-flow: row wrap;
        /*-ms-flex-preferred-size: inherit;*/
    }
    #customer-reviews .review, #customer-reviews .review .review-body, #customer-reviews .review .review-details {
        -ms-flex-preferred-size: inherit;
    }
}

/* --- New-review form --- */
#customer-reviews .form-add h2,
#customer-reviews .form-add div.h2 {
    clear: both;
    font-weight: 700;
    font-size: 1.125rem;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
}
#customer-reviews .form-add h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}
#customer-reviews .form-add h4 {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}
/* table */
#product-review-table {
    margin: 0 -5px;
}
#product-review-table th {
    border-bottom: 1px solid #c0c0c0;
    padding: 8px;
    font-size: 14px;
    font-family: Arial Narrow, sans-serif;
    text-transform: none;
}
#product-review-table td {
    padding: 6px 16px;
}
#product-review-table th:first-child {
    display: none;
}
@media only screen and (min-width: 330px) {
    #product-review-table {
        margin: 0;
    }
}
@media only screen and (min-width: 355px) {
    #product-review-table th {
        font-size: 16px;
    }
}
@media only screen and (min-width: 450px) {
    #product-review-table th:first-child {
        display: table-cell;
    }
}
@media only screen and (min-width: 490px) {
    #product-review-table th {
        font-size: 18px;
    }
}
@media only screen and (min-width: 510px) {
    #product-review-table th {
        padding: 8px 10px;
    }
    #product-review-table td {
        padding: 8px 22px;
    }
}
@media only screen and (min-width: 580px) {
    #product-review-table th {
        font-family: Arial, sans-serif;
    }
    #product-review-table td {
        padding: 8px 26px;
    }
}

/* --- Reduce bottom margin --- */
#collateral-tabs .collateral-tab-container.last {
    padding-bottom: 1rem;
}
