/* =========================================================
   review-test.css
   Product review article layout

   Purpose:
   - Keep article layout full-width with no sidebar.
   - Match coupon/store typography more closely.
   - Keep product cards compact vertically.
   - Keep product title readable without oversized overrides.
   - Keep white accordion/pros/cons panels.
   - Add price ? tooltip, powered by functions.php data-price-note.
========================================================= */

/* =========================================================
   1. Article page shell
========================================================= */

.single-post .rr-single-article-container {
    max-width: 1320px !important;
}

.single-post .rr-single-article-layout {
    display: block !important;
}

.single-post .rr-single-article-main,
.single-post .rr-single-article-content {
    width: 100% !important;
    max-width: none !important;
}

.single-post .rr-single-article-sidebar,
.single-post .rr-single-article-meta,
.single-post .rr-single-article-author-box,
.single-post .rr-single-article-featured-image,
.single-post .rr-single-article-kicker {
    display: none !important;
}

/* =========================================================
   2. Article hero: title / updated / author / share
========================================================= */

.single-post .rr-single-article-hero {
    max-width: none !important;
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.single-post .rr-single-article-title {
    max-width: 980px !important;
    margin: 0 0 12px !important;
    color: #0f172a !important;
    font-size: 46px !important;
    line-height: 1.18 !important;
    font-weight: 750 !important;
    letter-spacing: -0.045em !important;
}

.single-post .rr-single-article-updated {
    margin: 0 0 20px !important;
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}

.single-post .rr-single-article-byline-share {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 0 20px !important;
}

.single-post .rr-single-article-author-mini {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
}

.single-post .rr-single-article-author-mini__avatar {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
}

.single-post .rr-single-article-author-mini__avatar img,
.single-post .rr-single-article-author-mini__avatar .avatar {
    width: 46px !important;
    height: 46px !important;
    display: block !important;
    border-radius: 999px !important;
    object-fit: cover !important;
}

.single-post .rr-single-article-author-mini__name {
    margin: 0 0 4px !important;
    color: #111111 !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}

.single-post .rr-single-article-author-mini__role {
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
}

.single-post .rr-single-article-share {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
}

.single-post .rr-single-article-share__label {
    margin-right: 4px !important;
    color: #667085 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
}

.single-post .rr-single-article-share__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    transform: none !important;
}

.single-post .rr-single-article-share__button:hover {
    color: #ffffff !important;
    filter: brightness(0.96) !important;
}

.single-post .rr-single-article-share__button svg {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
    fill: currentColor !important;
}

.single-post .rr-single-article-share__button--email { background: #5f6673 !important; }
.single-post .rr-single-article-share__button--facebook { background: #1877f2 !important; }
.single-post .rr-single-article-share__button--x { background: #1da1f2 !important; }
.single-post .rr-single-article-share__button--linkedin { background: #0a66c2 !important; }
.single-post .rr-single-article-share__button--pinterest { background: #e60023 !important; }

.single-post .rr-single-article-intro {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 22px !important;
    color: #111111 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    font-weight: 600 !important;
}

/* =========================================================
   3. Review content typography
========================================================= */

.single-post .rr-review-content-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    color: #111111 !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
}

.single-post .rr-review-content-wrap > *:first-child {
    margin-top: 0 !important;
}

.single-post .rr-review-content-wrap > p,
.single-post .rr-single-article-content > p {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 13px !important;
    color: #111111 !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
}

.single-post .rr-review-content-wrap h2,
.single-post .rr-review-article-content h2 {
    margin: 30px 0 16px !important;
    color: #111111 !important;
    font-size: 24px !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.single-post .rr-review-content-wrap h3,
.single-post .rr-review-article-content h3 {
    margin: 22px 0 10px !important;
    color: #111111 !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
}

/* Store/coupon-style editorial section */
.single-post .rr-review-article-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 34px !important;
    color: #111111 !important;
}

.single-post .rr-review-article-content h2 {
    margin: 30px 0 12px !important;
    padding-top: 9px !important;
    border-top: 3px solid #111111 !important;
}

.single-post .rr-review-article-content h2:first-child {
    margin-top: 0 !important;
}

.single-post .rr-review-article-content h4 {
    margin: 18px 0 8px !important;
    color: #111111 !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
}

.single-post .rr-review-article-content p,
.single-post .rr-review-article-content li {
    color: #111111 !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
}

.single-post .rr-review-article-content p {
    margin: 0 0 13px !important;
}

.single-post .rr-review-article-content ul,
.single-post .rr-review-article-content ol {
    margin: 0 0 16px 24px !important;
    padding: 0 !important;
}

.single-post .rr-review-article-content li {
    margin-bottom: 5px !important;
    padding-left: 2px !important;
}

.single-post .rr-review-article-content strong,
.single-post .rr-review-article-content b {
    color: #111111 !important;
    font-weight: 800 !important;
}

.single-post .rr-review-article-content a {
    color: #c026d3 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

/* =========================================================
   4. Product list and card shell
========================================================= */

.single-post .rr-product-list-review {
    display: grid !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 18px 0 34px !important;
}

.single-post .rr-product-card {
    width: 100% !important;
    overflow: hidden !important;
    border: 1px solid #d8dee8 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

/* =========================================================
   5. Product card top
   Compact vertical height, coupon-like typography.
========================================================= */

.single-post .rr-product-card__top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 24px !important;
    align-items: center !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 22px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

.single-post .rr-product-card__info {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    grid-template-areas: "image body" !important;
    gap: 20px !important;
    align-items: center !important;
    min-width: 0 !important;
}

/* WordPress may wrap <img> in <p>. Keep it in the image column. */
.single-post .rr-product-card__info > p {
    grid-area: image !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    min-width: 0 !important;
}

.single-post .rr-product-card__image {
    grid-area: image !important;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    min-height: 104px !important;
    max-height: 104px !important;
    display: block !important;
    margin: 0 !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.single-post .rr-product-card__body,
.single-post .rr-product-card__content {
    grid-area: body !important;
    min-width: 0 !important;
    align-self: center !important;
}

.single-post .rr-product-card__eyebrow,
.single-post .rr-product-card__badge-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
}

.single-post .rr-product-card__rank {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 999px !important;
    background: #7b1dbb !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.single-post .rr-product-card__label {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 0 12px !important;
    border-radius: 5px !important;
    background: #f4e8ff !important;
    color: #b144d7 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
}

/* Coupon-card-like title: inherit font, less heavy, still strong. */
.single-post .rr-product-card__title {
    margin: 0 0 8px !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 19px !important;
    line-height: 1.38 !important;
    font-weight: 750 !important;
    letter-spacing: -0.01em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.single-post .rr-product-card__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 9px 14px !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

.single-post .rr-product-card__score {
    color: #111111 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.single-post .rr-product-card__price {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #c026d3 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: help !important;
}

.single-post .rr-product-card__brand {
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

/* =========================================================
   6. Price note tooltip
========================================================= */

.single-post .rr-product-card__price::after {
    content: "?" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 15px !important;
    height: 15px !important;
    border: 1px solid #9ca3af !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #9ca3af !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.single-post .rr-product-card__price::before {
    content: attr(data-price-note) !important;
    position: absolute !important;
    left: 50% !important;
    bottom: calc(100% + 12px) !important;
    z-index: 80 !important;
    width: max-content !important;
    max-width: 380px !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.18) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    transform: translateX(-50%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.single-post .rr-product-card__price:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================================================
   7. CTA button
========================================================= */

.single-post .rr-product-card__side {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.single-post .rr-product-card__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 260px !important;
    min-height: 48px !important;
    padding: 0 22px !important;
    border-radius: 10px !important;
    background: #7b1dbb !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(123, 29, 187, 0.2) !important;
}

.single-post .rr-product-card__button:hover {
    background: #64169c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(123, 29, 187, 0.26) !important;
}

/* =========================================================
   8. Accordion
========================================================= */

.single-post .rr-product-card__toggle {
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

.single-post .rr-product-card__toggle:last-child {
    border-bottom: 0 !important;
}

.single-post .rr-product-card__toggle summary {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 50px !important;
    padding: 0 46px 0 20px !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none !important;
}

.single-post .rr-product-card__toggle summary::-webkit-details-marker {
    display: none !important;
}

.single-post .rr-product-card__toggle summary::after {
    content: "" !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #64748b !important;
    border-bottom: 2px solid #64748b !important;
    transform: translateY(-65%) rotate(45deg) !important;
    transition: transform 0.2s ease !important;
}

.single-post .rr-product-card__toggle[open] summary::after {
    transform: translateY(-35%) rotate(-135deg) !important;
}

.single-post .rr-product-card__toggle-action {
    display: none !important;
}

.single-post .rr-product-card__panel {
    padding: 18px 20px 22px !important;
    background: #ffffff !important;
}

.single-post .rr-product-card__panel p {
    margin: 0 0 10px !important;
    color: #111111 !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
    font-weight: 400 !important;
}

.single-post .rr-product-card__panel p:last-child {
    margin-bottom: 0 !important;
}

/* =========================================================
   9. Pros / cons
========================================================= */

.single-post .rr-product-pros-cons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px !important;
    background: #ffffff !important;
}

.single-post .rr-product-pros,
.single-post .rr-product-cons {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

.single-post .rr-product-pros h4,
.single-post .rr-product-cons h4 {
    margin: 0 0 12px !important;
    color: #111111 !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.single-post .rr-product-pros ul,
.single-post .rr-product-cons ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-post .rr-product-pros li,
.single-post .rr-product-cons li {
    position: relative !important;
    margin: 0 0 10px !important;
    padding-left: 30px !important;
    color: #111111 !important;
    font-size: 15px !important;
    line-height: 1.62 !important;
    font-weight: 400 !important;
}

.single-post .rr-product-pros li:last-child,
.single-post .rr-product-cons li:last-child {
    margin-bottom: 0 !important;
}

.single-post .rr-product-pros li::before,
.single-post .rr-product-cons li::before {
    position: absolute !important;
    top: 3px !important;
    left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
}

.single-post .rr-product-pros li::before {
    content: "+" !important;
    border: 2px solid #16a34a !important;
    color: #16a34a !important;
}

.single-post .rr-product-cons li::before {
    content: "−" !important;
    border: 2px solid #ef4444 !important;
    color: #ef4444 !important;
}

/* =========================================================
   10. Key specifications
========================================================= */

.single-post .rr-product-spec-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 24px !important;
    background: #ffffff !important;
}

.single-post .rr-product-spec-grid p {
    margin: 0 !important;
    color: #111111 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.single-post .rr-product-spec-grid strong {
    color: #475569 !important;
    font-weight: 800 !important;
}

/* =========================================================
   11. Responsive
========================================================= */

@media (max-width: 1024px) {
    .single-post .rr-product-card__top {
        grid-template-columns: minmax(0, 1fr) 190px !important;
        gap: 18px !important;
    }

    .single-post .rr-product-card__button {
        max-width: 220px !important;
    }
}

@media (max-width: 767px) {
    .single-post .rr-single-article-title {
        font-size: 34px !important;
    }

    .single-post .rr-single-article-byline-share {
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .single-post .rr-single-article-share {
        flex-wrap: wrap !important;
        max-width: 180px !important;
    }

    .single-post .rr-single-article-share__label {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 2px !important;
        text-align: right !important;
    }

    .single-post .rr-single-article-share__button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .single-post .rr-review-content-wrap > p,
    .single-post .rr-review-article-content p,
    .single-post .rr-review-article-content li {
        font-size: 15px !important;
        line-height: 1.62 !important;
    }

    .single-post .rr-review-content-wrap h2,
    .single-post .rr-review-article-content h2 {
        font-size: 22px !important;
    }

    .single-post .rr-review-content-wrap h3,
    .single-post .rr-review-article-content h3 {
        font-size: 18px !important;
    }

    .single-post .rr-product-card__top {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 14px 16px !important;
    }

    .single-post .rr-product-card__info {
        grid-template-columns: 92px minmax(0, 1fr) !important;
        grid-template-areas: "image body" !important;
        gap: 14px !important;
    }

    .single-post .rr-product-card__image {
        width: 92px !important;
        height: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        min-height: 92px !important;
        max-height: 92px !important;
    }

    .single-post .rr-product-card__title {
        font-size: 18px !important;
        line-height: 1.34 !important;
    }

    .single-post .rr-product-card__side {
        justify-content: flex-start !important;
    }

    .single-post .rr-product-card__button {
        width: 100% !important;
        max-width: none !important;
        min-height: 46px !important;
    }

    .single-post .rr-product-pros-cons,
    .single-post .rr-product-spec-grid {
        grid-template-columns: 1fr !important;
    }

    .single-post .rr-product-card__price::before {
        left: 0 !important;
        max-width: 280px !important;
        transform: none !important;
        white-space: normal !important;
    }
}
