/*
    Page rating
*/

/*--------------------------------------------------------------
# Table
--------------------------------------------------------------*/

.seonika-rating-table {
    --first: minmax(200px, 300px);
    --second: minmax(200px, 1fr);
    position: relative;
    display: grid;
    grid-template-columns: var(--first) var(--second);
    margin-top: 30px;
    margin-bottom: 50px;
}

.seonika-rating-table.school-rating-table {
    --first: minmax(200px, 300px);
}

.seonika-rating-table .table-header .table-row {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    text-transform: uppercase;
}

@media screen and (max-width: 480px) {
    .seonika-rating-table {
        --first: 1fr;
        --second: minmax(150px, 1fr);
    }

    .seonika-rating-table .table-row>div {
        font-size: 16px;
    }
}

/* ### First */

.seonika-rating-table-first {
    padding-top: 10px;
}

.seonika-rating-table-first .table-body {
    padding: 5px 0 5px 5px;
    background-color: var(--main_bg);
    border-radius: 10px 0 0 10px;
}

.seonika-rating-table-first .table-row {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px 0 0 10px;
}

.seonika-rating-table-first .table-row:not(:last-child) {
    margin-bottom: 5px;
}

.seonika-rating-table-first .item-name {
    display: flex;
    align-items: center;
    color: #000;
}

.seonika-rating-table-first .item-name .h7 {
    font-size: 16px;
    line-height: 1.43;
    transition: .3s;
}

.seonika-rating-table-first a.item-name:hover .h7 {
    color: var(--accent);
}

.seonika-rating-table-first .item-image {
    margin-right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.post .seonika-rating-table-first .item-image img {
    border-radius: 0;
}

.seonika-rating-table-first small {
    font-size: 14px;
    line-height: 1.3;
    opacity: .5;
}

.seonika-rating-table-first .item-name span {
    position: relative;
    margin-bottom: 5px;
    padding: 3px 5px;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.2;
    background-color: var(--color);
    border-radius: 3px;
    cursor: pointer;
}

.seonika-rating-table-first .item-name .yellow {
    --color: #f5e31b;
    color: #000;
}

.seonika-rating-table-first .item-name .green {
    --color: #6eb43b;
    color: #fff;
}

.seonika-rating-table-first .item-name span:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    z-index: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 9px 0 0;
    border-color: var(--color) transparent transparent transparent;
}

@media screen and (max-width: 480px) {
    .seonika-rating-table-first .item-image {
        display: none;
    }
}

/* ### Second */

.seonika-rating-table-second {
    position: relative;
    padding-top: 10px;
}

.seonika-rating-table-second .table-body {
    padding: 5px 0 5px 0;
    background-color: var(--main_bg);
}

.seonika-rating-table-second .column:last-child .table-body {
    padding-right: 5px;
    border-radius: 0 10px 10px 0;
}

.seonika-rating-table-second .table-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #fff;
}

.seonika-rating-table-second .table-body .table-row {
    justify-content: center;
}

.seonika-rating-table-second .column:last-child .table-row {
    border-radius: 0 10px 10px 0;
}

.seonika-rating-table-second .table-row:not(:last-child) {
    margin-bottom: 5px;
}

.seonika-rating-table-second .course-cost {
    margin-bottom: 3px;
    font-size: 14px;
}

.seonika-rating-table-second .table-row .text {
    font-size: 14px;
    line-height: 1.43;
}

.seonika-rating-table-second .table-row .cross,
.seonika-rating-table-second .table-row .check {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: 100%;
    border-radius: 10px;
    background-color: var(--main_bg);
}

.seonika-rating-table-second .table-row .color {
    width: 100%;
    height: 100%;
    min-height: 50px;
    border-radius: 10px;
}

.row-rating-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--main_bg);
    border-radius: 10px;
}

.rating-comments-num {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1;
    opacity: .5;
}

@media screen and (max-width: 640px) {
    .seonika-rating-table-second .table-body {
        padding-right: 5px;
        border-radius: 0 10px 10px 0;
    }
}

/* ### Small rating */

.small-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-rating .num {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.small-rating .num svg {
    margin-right: 7px;
    fill: var(--accent);
}

.small-rating small {
    font-size: 12px;
    line-height: 1.3;
    opacity: .5;
}

/* ### Column programs */

.seonika-rating-table-second .column-programs .text {
    font-weight: 600;
}

/* ## Swipe */

.seonika-rating-table-second .swipe-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .seonika-rating-table-second .swipe-mobile {
        position: absolute;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3px;
        width: 100%;
        font-size: 11px;
        color: #a9b2bb;
        text-transform: none;
        line-height: 1.3;
    }

    .seonika-rating-table-second .swipe-mobile:before {
        content: '';
        flex-shrink: 0;
        margin-right: 10px;
        width: 20px;
        height: 20px;
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFKElEQVRYhcXZV4idRRQH8N9u1mgSo8auGIk19t57wd4VxY5if/BB7KLig4WoIFbUh7WBjdglNuwYFGPHFA3WoCjGmLgaTVbXhzOf39yPu3fv3ruuf7jMmf7/Zs6cc2Zux0PPvGwIsD1OxE5YJ5V9h2mYjKfbnaCrzf5jcReOq1O3LDbESXgNZ2NWqxO1Q3QVvKVcQXgDn2AR1sO+GIk98AH2xDvDTfTVjOQUXJ7I5FgTV+B0jBIfMh4/Dnayzkp+fRwrVqERrhLbCvfhoIzkBtgyyd/gDFyU8iNT+4FwNPbqj+jmabKHcE2DQcbg0iTPwilJ3hJvYgbex3QcnupuwLNJ3h+bNBj/GDyKl2W6XxDdRujOaCzE8w0GOlC54leldHzqv0vWbkM8gd1T/rys7vgG47+O75P8oLAmurCj0J1CX7/AGjg35bvwBx7Bz9gulf+JF5N8OZZI8nVCByelD7oR22K22IGJStVYAidgxTQezMdHWC3lH0Bnlzi5HdkXbYx763zpyemjxqb8T4k4bJbSabgsyZvgNHH6u9CLrxLR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1bljbbdO9On2FkcrmXEs/qx4iVlKr4VLx552NaX8quKh7mDM4JwtXj3r8FQXO6mpglvT5MS/4bsO8hxZouDVPc/qaG6hX6DQ7C3iAN2w7pN9PsB7wn3e79MJ6v4B6SVGEQRzgNTAAAAAElFTkSuQmCC);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100%;
    }
}

/* ## Pagination */

.seonika-rating-table-nav.disabled {
    display: none;
}

.seonika-rating-table .splide__arrow {
    background-color: var(--main_bg);
    transform: unset;
}

.seonika-rating-table .splide__arrow svg {
    fill: var(--accent);
    height: 13px;
}

.seonika-rating-table .splide__arrow--next {
    right: -1em;
}

.seonika-rating-table .splide__arrow--prev {
    left: -1em;
}

.seonika-rating-table .splide__arrow--prev:before {
    content: '';
    position: absolute;
    left: 15px;
    top: -35px;
    height: 100px;
    width: 3px;
    background-color: var(--main_bg);
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/

.comments-rating-wrap.comments-wrap {
    margin: 0 auto;
    width: 855px;
    max-width: 100%;
}

.comments-rating-wrap ol.comment-list {
    margin-bottom: 50px;
}

.comments-rating-wrap .h3 {
    margin-bottom: 40px;
    text-align: center;
}

.comments-rating-wrap .comment-list .comment>div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px 25px;
    background-color: var(--main_bg);
    border-radius: 20px;
}

.comment-rating-info {
    display: flex;
    align-items: center;
}

.comment-rating-info .star {
    display: flex;
}

.comment-rating-info .star svg {
    margin-right: 1px;
    fill: #d3d9da;
}

.comment-rating-info .star-active svg {
    fill: var(--accent);
}

.comment-item-rating {
    margin-left: auto;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--accent);
    text-align: right;
    line-height: 1.2;
    border: 1px solid var(--accent);
    border-radius: 5px;
}

@media screen and (max-width: 600px) {
    .comment-item-rating {
        margin-top: 5px;
        margin-left: unset;
        font-size: 10px;
    }

    .comment-rating-info {
        margin-right: 20px;
    }
}

/* ## Comment form */

.comments-rating-wrap .comment-respond {
    padding: 40px 50px;
    background-color: var(--main_bg);
    border-radius: 20px;
}

.comments-rating-wrap .comment-respond form>div:not(:last-of-type) {
    margin-bottom: 20px;
}

.comments-rating-wrap .form-row.col-2 {
    display: flex;
}

.comments-rating-wrap .form-row.col-2>div {
    flex: 1;
}

.comments-rating-wrap .form-row.col-2>div:not(:last-child) {
    margin-right: 15px;
}

.comments-rating-wrap .form-submit .button {
    padding: 14px 30px;
    width: 250px;
    height: 60px;
    color: #fff;
    background-color: var(--accent);
}

.comment-login {
    font-size: 14px;
    margin-bottom: 20px;
}

.comment-awaiting-moderation {
    font-size: 14px;
    color: red;
}

@media screen and (max-width: 768px) {
    .comments-rating-wrap .comment-respond {
        padding: 30px 25px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .comments-rating-wrap .form-row.col-2 {
        display: block;
    }

    .comments-rating-wrap .form-row.col-2>div:not(:last-child) {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .comments-rating-wrap .form-submit {
        display: block;
    }
}

@media screen and (max-width: 640px) {
    .comments-rating-wrap .form-submit .button {
        width: 100%;
    }
}

/* ### Comment rating */

.comment-form-rating-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.comment-form-rating-wrap span {
    margin-right: 15px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.comment-form-rating {
    display: flex;
    align-items: stretch;
}

.comment-form-rating label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 40px;
    height: 40px;
    background-color: #dbdbdb;
    border-radius: 5px;
    transition: .3s ease-in-out;
    overflow: hidden;
    cursor: pointer;
}

.comment-form-rating .selected {
    background-color: var(--accent);
}

.comment-form-rating label svg {
    margin-top: -2px;
    fill: var(--main_bg);
}

.comment-form-rating .selected svg {
    fill: #fff;
}

.comment-form-rating input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

@media screen and (max-width: 480px) {
    .comment-form-rating-wrap {
        flex-direction: column;
        align-items: start;
    }

    .comment-form-rating-wrap span {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 16px;
    }
}