.af-reviews {
    padding: 34px 0 54px;
    background: #fefefe;
    color: #262523;
}

.af-reviews__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(20, 50, 110, .12);
}

.af-reviews__eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #47639a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.af-reviews__title {
    margin: 0;
    color: #14326e;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1.15;
}

.af-reviews__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(20, 50, 110, .14);
    border-radius: 999px;
    background: #fefefe;
    color: #14326e;
    font-size: 14px;
    font-weight: 700;
}

.af-reviews__count i {
    color: #47639a;
}

.af-reviews__list {
    display: grid;
    gap: 16px;
}

.af-review-card {
    overflow: hidden;
    border: 1px solid rgba(20, 50, 110, .12);
    border-radius: 18px;
    background: #fefefe;
    box-shadow: 0 8px 28px rgba(38, 37, 35, .055);
}

.af-review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(144, 144, 145, .16);
    background: linear-gradient(180deg, rgba(150, 175, 215, .11), rgba(254, 254, 254, 0));
}

.af-review-card__author {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.af-review-card__avatar {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: #14326e;
    color: #fefefe;
    font-size: 17px;
    font-weight: 800;
}

.af-review-card__author-info {
    min-width: 0;
}

.af-review-card__name {
    margin: 0 0 3px;
    color: #262523;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.af-review-card__date,
.af-review-reply time {
    color: #909091;
    font-size: 12px;
    font-weight: 500;
}

.af-review-card__rating {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    color: #14326e;
    font-size: 14px;
}

.af-review-card__rating .far {
    color: #96afd7;
}

.af-review-card__rating span {
    margin-left: 5px;
    color: #515151;
    font-size: 12px;
    font-weight: 700;
}

.af-review-card__body {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
}

.af-review-card__product {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
    padding: 12px;
    border: 1px solid rgba(20, 50, 110, .11);
    border-radius: 14px;
    background: rgba(150, 175, 215, .075);
    color: #262523;
    text-decoration: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.af-review-card__product:hover {
    border-color: rgba(20, 50, 110, .3);
    box-shadow: 0 7px 20px rgba(20, 50, 110, .08);
    transform: translateY(-1px);
}

.af-review-card__product-image {
    display: grid;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    place-items: center;
    border-radius: 11px;
    background: #fefefe;
    color: #96afd7;
}

.af-review-card__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.af-review-card__product-image i {
    font-size: 25px;
}

.af-review-card__product-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.af-review-card__product-label,
.af-review-reply__badge {
    color: #47639a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.af-review-card__product-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: #262523;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.af-review-card__product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: #14326e;
    font-size: 11px;
    font-weight: 700;
}

.af-review-card__message {
    align-self: center;
    color: #515151;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.af-review-card__replies {
    padding: 0 20px 20px;
}

.af-review-reply {
    display: grid;
    grid-template-columns: 3px minmax(0, 1fr);
    gap: 14px;
    margin-left: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(144, 144, 145, .15);
}

.af-review-reply + .af-review-reply {
    margin-top: 12px;
}

.af-review-reply__line {
    border-radius: 10px;
    background: #96afd7;
}

.af-review-reply__content {
    padding: 2px 0;
}

.af-review-reply__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.af-review-reply__header h3 {
    margin: 3px 0 1px;
    color: #14326e;
    font-size: 14px;
    font-weight: 800;
}

.af-review-card__rating--small {
    font-size: 11px;
}

.af-review-reply p {
    margin: 0;
    color: #515151;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.af-reviews__pagination {
    margin-top: 24px;
}

.af-reviews__empty {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    border: 1px solid rgba(20, 50, 110, .12);
    border-radius: 18px;
    background: rgba(150, 175, 215, .065);
    text-align: center;
}

.af-reviews__empty-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 18px;
    background: #14326e;
    color: #fefefe;
    font-size: 25px;
}

.af-reviews__empty h2 {
    margin: 0;
    color: #262523;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .af-reviews {
        padding: 20px 0 34px;
    }

    .af-reviews__head {
        align-items: center;
        margin-bottom: 14px;
        padding-bottom: 13px;
    }

    .af-reviews__title {
        font-size: 25px;
    }

    .af-reviews__eyebrow {
        font-size: 9px;
    }

    .af-reviews__count {
        min-height: 34px;
        padding: 0 11px;
    }

    .af-review-card {
        border-radius: 14px;
    }

    .af-review-card__header {
        align-items: flex-start;
        padding: 14px;
    }

    .af-review-card__avatar {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 15px;
    }

    .af-review-card__rating {
        gap: 2px;
        font-size: 12px;
    }

    .af-review-card__rating span {
        display: none;
    }

    .af-review-card__body {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .af-review-card__product {
        padding: 10px;
    }

    .af-review-card__product-image {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .af-review-card__message {
        font-size: 14px;
        line-height: 1.6;
    }

    .af-review-card__replies {
        padding: 0 14px 14px;
    }

    .af-review-reply {
        gap: 10px;
        margin-left: 8px;
        padding-top: 13px;
    }
}
