/* ==========================================================================
   Reviews Archive Hero
   ========================================================================== */

.reviews-divider {
    width: 100%;
    height: 1px;
    background: #d8d8d8;
    margin: 0 0 30px;
}

.reviews-hero {
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: center;
}

.reviews-hero h1 {
    line-height: 1.1;
    margin: 0 0 22px;
    color: #111;
}

.reviews-hero p {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    margin: 0 0 16px;
}

.reviews-hero__image {
    align-self: end;
}

.reviews-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 10px;
    gap: 34px;
}

.reviews-stat {
    padding: 0;
    position: relative;
}

.reviews-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    width: 1px;
    height: 48px;
    background: #cfcfcf;
}

.reviews-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 8px;
}

.reviews-stat span {
    display: block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
    color: #666;
    font-weight: 700;
}

@media (max-width: 768px) {

    .reviews-hero {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 28px;
    }

    .reviews-hero h1 {
        font-size: 32px;
    }

    .reviews-hero__image {
        order: 1;
    }

    .reviews-hero__content {
        order: 2;
    }

    .reviews-stats {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .reviews-stat {
        text-align: center;
    }

    .reviews-stat:not(:last-child)::after {
        display: none;
    }

    .reviews-stat strong {
        font-size: 28px;
    }
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-taxonomy-description {
    border: 1px solid #eee;
    align-items: center;
    overflow: hidden;
    margin: 2em 0;
    padding: 1.5em;
    font-weight: 400;
    letter-spacing: -0.1px;
    line-height: 1.5;
    text-transform: none;
}

.review-taxonomy-description h4 {
    font-size: 20px;
}

.review-taxonomy-description b {
    font-size: 16px;
}

.review-taxonomy-sub-heading {
    padding-bottom: 1.5rem;
}

.review-taxonomy-sub-heading {
    padding-bottom: 1rem;
}

.site-main.grid article.type-reviews a.post-thumbnail {
    margin-bottom: 1rem;
}

article.type-reviews img {
    width: 100%;
    height: 180px;
}

article.type-reviews h2 {
    font-size: 20px;
}

.review-taxonomy-description p {
    margin: 0;
}

.review-taxonomy-bottom-description {
    clear: both;
    margin: 2rem 0 0;
    border: 1px solid #eee;
    padding: 2rem;
}

/* ==========================================================================
   Single review section
   ========================================================================== */
.shoptimizer-archive div.type-reviews {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Navigation section
   ========================================================================== */
.review-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 30px;
}

.review-navigation a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eee;
    text-decoration: none;
    transition: 0.25s ease;
    height: 100%;
}

.review-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-next a {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.entry-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.entry-title-wrapper .entry-title {
    margin-bottom: 0;
}

.review-prevnext-icons {
    display: flex;
    flex-shrink: 0;
}

.review-prevnext-icons a {
    display: inline-flex;
    color: inherit;
}

.review-prevnext-icons svg {
    width: 20px;
    height: 20px;
    stroke: #999;
    transition: stroke 0.2s;
}

.review-prevnext-icons a {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.review-prevnext-icons .tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 120px;
    margin-top: 30px;
    opacity: 0;
    background-color: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    text-align: center;
    transition: 0.25s ease-out;
    transform: translateY(10px);
}

.review-prevnext-icons a:hover svg {
    stroke: #666;
}

.review-prevnext-icons a:hover .tooltip {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.review-prevnext-icons .tooltip img {
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

.review-prevnext-icons .tooltip .title {
    display: block;
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .review-navigation {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 0px;
        padding-top: 16px;
    }

    .nav-next a {
        text-align: left;
    }
}