/**
 * Single Product / Review Page — loaded on product pages only.
 *
 * Extracted from hostoffers-custom.css during CSS refactoring.
 * Contains: review hero, feature icons, benchmarks, pricing plans,
 * user sentiment, verdict, sidebar cards.
 *
 * @package HostOffers
 * @since   1.1.0
 */

/* ==========================================================================
   Feature Icons Row (single product page)
   ========================================================================== */

.ho-feature-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.ho-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ho-feature-pill.ho-feature-yes {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ho-feature-pill.ho-feature-no {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.ho-feature-pill.ho-feature-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.ho-feature-icon {
    font-size: 14px;
    line-height: 1;
}

/* ==========================================================================
   Performance Benchmarks (single product page)
   ========================================================================== */

.ho-benchmarks {
    margin: 32px 0;
    padding: 0;
}

.ho-benchmarks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}

.ho-benchmarks-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.ho-benchmarks-tested {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.ho-benchmarks-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ho-benchmark-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    transition: border-color 0.2s ease;
}

.ho-benchmark-card:hover {
    border-color: #00A859;
}

.ho-benchmark-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ho-benchmark-value {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: #003366;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.ho-benchmark-bar-track {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.ho-benchmark-bar-fill {
    height: 100%;
    background-color: #00A859;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

/* ==========================================================================
   Pricing Plans (single product page)
   ========================================================================== */

.ho-pricing-plans {
    margin: 32px 0;
}

.ho-pricing-plans h2 {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.ho-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.ho-pricing-card {
    flex: 1;
    position: relative;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.ho-pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ho-pricing-best {
    border: 2px solid #00A859;
    background: rgba(0, 168, 89, 0.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.ho-pricing-best:hover {
    transform: scale(1.05) translateY(-2px);
}

.ho-pricing-badge {
    display: inline-block;
    align-self: flex-start;
    background: #00A859;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    margin-bottom: 16px;
}

.ho-pricing-name {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

.ho-pricing-price {
    margin-bottom: 24px;
    line-height: 1;
    text-align: left;
}

.ho-pricing-currency {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    vertical-align: top;
    position: relative;
    top: 6px;
}

.ho-pricing-amount {
    font-size: 30px;
    font-weight: 900;
    color: #003366;
    font-family: 'Montserrat', sans-serif;
}

.ho-pricing-period {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

.ho-pricing-original {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

.ho-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
    flex-grow: 1;
}

.ho-pricing-features li {
    font-size: 14px;
    color: #475569;
    padding: 6px 0 6px 28px;
    position: relative;
}

.ho-pricing-features li:first-child {
    border-top: none;
}

.ho-pricing-features li::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    top: 7px;
    background-color: #00A859;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Pricing plan CTA link */
.ho-pricing-plan-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    color: #003366;
    text-decoration: none;
    margin-top: auto;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ho-pricing-plan-link:hover {
    background: #e2e8f0;
    color: #003366;
}

.ho-pricing-plan-link--best {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #00A859;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    margin-top: auto;
    border-radius: 12px;
    border-top: none;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 168, 89, 0.3);
    transition: all 0.2s ease;
}

.ho-pricing-plan-link--best:hover {
    filter: brightness(1.1);
}

/* Make pricing card flex column for link at bottom */
.ho-pricing-card {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   User Sentiment (single product page)
   ========================================================================== */

.ho-user-sentiment {
    margin: 32px 0;
}

.ho-user-sentiment h2 {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.ho-sentiment-layout {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.ho-sentiment-score-block {
    text-align: center;
    min-width: 140px;
}

.ho-sentiment-number {
    display: block;
    font-size: 56px;
    font-weight: 800;
    color: #003366;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.ho-sentiment-stars {
    margin: 8px 0;
}

.ho-star {
    font-size: 22px;
    line-height: 1;
}

.ho-star-full {
    color: #FFB800;
}

.ho-star-half {
    color: #FFB800;
    opacity: 0.6;
}

.ho-star-empty {
    color: #d1d5db;
}

.ho-sentiment-count {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 4px;
}

.ho-sentiment-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ho-sentiment-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ho-sentiment-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #FFB800;
    min-width: 36px;
    white-space: nowrap;
}

.ho-sentiment-row-track {
    flex: 1;
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.ho-sentiment-row-fill {
    height: 100%;
    background-color: #fbbf24;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.ho-sentiment-row-pct {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    min-width: 36px;
    text-align: right;
}

/* ==========================================================================
   Single Product Review Page — Hero Section
   ========================================================================== */

.ho-single-product-wrap {
    margin: 0;
    padding: 0;
}

.ho-single-product-wrap .rh-container {
    max-width: 1200px;
}

.ho-review-hero {
    background: #003366;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    padding: 80px 0 128px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ho-review-breadcrumbs {
    display: none;
}

.ho-review-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.ho-review-breadcrumbs a:hover {
    color: #ffffff;
}

.ho-bc-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.ho-hero-layout {
    display: flex;
    gap: 48px;
    align-items: center;
}

.ho-hero-image {
    flex: 0 0 auto;
}

.ho-hero-image img {
    width: 192px;
    height: 192px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ho-hero-content {
    flex: 1;
    min-width: 0;
}

.ho-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ho-expert-badge {
    display: inline-block;
    background: #00A859;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

.ho-hero-stars .ho-star {
    font-size: 20px;
}

.ho-hero-rating-text {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.ho-hero-title {
    font-size: 60px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.ho-hero-description {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 32px;
    max-width: 42rem;
}

.ho-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ho-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00A859;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 168, 89, 0.3), 0 8px 10px -6px rgba(0, 168, 89, 0.2);
}

.ho-hero-cta:hover {
    background: #008a47;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 168, 89, 0.5);
    transform: translateY(-2px);
}

.ho-hero-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 24px;
    border-radius: 12px;
}

.ho-hero-match-icon {
    font-size: 24px;
    line-height: 1;
}

.ho-hero-match-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.ho-hero-match-score {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

/* --- Social Share Buttons --- */
.ho-hero-share-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ho-hero-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.ho-hero-share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ho-hero-share-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Single Product Review Page — Body & Layout
   ========================================================================== */

.ho-review-body {
/*    background: #f8fafc; */
    padding: 0 0 80px;
    margin-top: -64px;
    position: relative;
    z-index: 20;
}

.ho-review-columns {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.ho-review-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ho-review-sidebar {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 96px;
    align-self: flex-start;
}

/* --- Review Card (white card wrapper for each section) --- */
.ho-review-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 782px) {
    .ho-review-card {
        padding: 48px;
    }
}

.ho-card-heading {
    font-size: 30px;
    font-weight: 800;
    color: #003366;
    margin: 0 0 32px;
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   The Verdict Section
   ========================================================================== */

.ho-verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.ho-verdict-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 24px;
}

.ho-verdict-pros-label .ho-verdict-icon {
    color: #00A859;
}

.ho-verdict-cons-label .ho-verdict-icon {
    color: #f43f5e;
}

.ho-verdict-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.ho-verdict-icon svg {
    width: 24px;
    height: 24px;
}

.ho-verdict-icon-pro {
    background: none;
    color: #00A859;
}

.ho-verdict-icon-con {
    background: none;
    color: #f43f5e;
}

.ho-verdict-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ho-verdict-list li {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    padding: 8px 0 8px 36px;
    position: relative;
    line-height: 1.5;
}

.ho-verdict-pros li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 9px;
    background-color: #dcfce7;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.ho-verdict-cons li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 9px;
    background-color: #fee2e2;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Benchmarks inside review card — override margins
   ========================================================================== */

.ho-review-card .ho-benchmarks-header {
    margin-bottom: 32px;
}

.ho-review-card .ho-benchmarks {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Sidebar Cards
   ========================================================================== */

.ho-sidebar-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.ho-sidebar-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 24px;
}

/* --- Related Reviews --- */
.ho-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ho-related-item {
    border-bottom: none;
}

.ho-related-item:last-child {
    border-bottom: none;
}

.ho-related-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ho-related-link:hover {
    opacity: 0.8;
}

.ho-related-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
    transition: border-color 0.2s;
}

.ho-related-link:hover .ho-related-thumb {
    border-color: #00A859;
}

.ho-related-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ho-related-name {
    font-size: 14px;
    font-weight: 700;
    color: #003366;
    transition: color 0.2s;
}

.ho-related-link:hover .ho-related-name {
    color: #00A859;
}

.ho-related-rating {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}

.ho-related-rating .ho-star {
    font-size: 14px;
    color: #FFB800;
}

/* --- Hosting Quiz CTA --- */
.ho-quiz-cta {
    background: rgba(0, 168, 89, 0.05);
    border: 1px solid rgba(0, 168, 89, 0.1);
    border-radius: 16px;
    text-align: left;
}

.ho-quiz-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 16px;
}

.ho-quiz-title {
    font-size: 14px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
}

.ho-quiz-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
}

.ho-quiz-link {
    font-size: 12px;
    font-weight: 700;
    color: #00A859;
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ho-quiz-link:hover {
    color: #00A859;
    gap: 8px;
}

/* ==========================================================================
   Responsive: Tablet & Mobile
   ========================================================================== */

@media (max-width: 781px) {

    /* Review page responsive */
    .ho-review-hero {
        padding: 48px 0 80px;
    }

    .ho-hero-layout {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .ho-hero-image {
        margin: 0 auto;
    }

    .ho-hero-image img {
        width: 128px;
        height: 128px;
    }

    .ho-hero-meta {
        justify-content: center;
    }

    .ho-hero-title {
        font-size: 32px;
    }

    .ho-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .ho-hero-actions {
        justify-content: center;
    }

    .ho-review-columns {
        flex-direction: column;
    }

    .ho-review-sidebar {
        flex-basis: auto;
        width: 100%;
    }

    .ho-review-card {
        padding: 24px;
        border-radius: 20px;
    }

    .ho-card-heading {
        font-size: 24px;
    }

    .ho-verdict-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ho-benchmarks-header {
        flex-direction: column;
        gap: 4px;
    }

    .ho-benchmarks-cards {
        grid-template-columns: 1fr;
    }

    .ho-pricing-cards {
        grid-template-columns: 1fr;
    }

    .ho-pricing-best {
        transform: none;
    }

    .ho-pricing-best:hover {
        transform: translateY(-2px);
    }

    .ho-pricing-badge {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 8px;
    }

    .ho-sentiment-layout {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .ho-hero-share-btns {
        display: none;
    }
}

/* ==========================================================================
   Reader Comments Section
   ========================================================================== */

.ho-sentiment-empty {
    color: #64748b;
    font-size: 15px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* --- Comment Form --- */

.ho-comments-section {
    /* Reader Comments inside User Sentiment card */
}

.ho-comments-divider {
    border-top: 1px solid #f1f5f9;
    margin-bottom: 48px;
}

.ho-comments-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #003366;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 32px;
}

.ho-comments-heading svg {
    flex-shrink: 0;
    color: #003366;
}

.ho-comment-form-wrap {
    margin-bottom: 48px;
}

.ho-comment-form-wrap .comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ho-comment-textarea-wrap {
    position: relative;
}

.ho-comment-textarea-wrap textarea {
    width: 100%;
    min-height: 120px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #475569;
    background: #f8fafc;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ho-comment-textarea-wrap textarea:focus {
    border-color: #00A859;
    box-shadow: 0 0 0 2px rgba(0, 168, 89, 0.2);
    background: #ffffff;
}

.ho-comment-textarea-wrap textarea::placeholder {
    color: #94a3b8;
}

/* Submit button */
.ho-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-end;
    background: #003366;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.ho-comment-submit:hover {
    background: #004a99;
    transform: translateY(-1px);
}

.ho-comment-submit:active {
    transform: translateY(0);
}

.ho-comment-submit svg {
    flex-shrink: 0;
}

/* Name/email fields for logged-out users */
.ho-comment-form-wrap .comment-form-author,
.ho-comment-form-wrap .comment-form-email,
.ho-comment-form-wrap .comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ho-comment-form-wrap .comment-form-author label,
.ho-comment-form-wrap .comment-form-email label,
.ho-comment-form-wrap .comment-form-url label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.ho-comment-form-wrap .comment-form-author input,
.ho-comment-form-wrap .comment-form-email input,
.ho-comment-form-wrap .comment-form-url input {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.ho-comment-form-wrap .comment-form-author input:focus,
.ho-comment-form-wrap .comment-form-email input:focus,
.ho-comment-form-wrap .comment-form-url input:focus {
    border-color: #003366;
}

/* Hide URL field (not needed for reviews) */
.ho-comment-form-wrap .comment-form-url {
    display: none;
}

/* Hide cookies consent checkbox */
.ho-comment-form-wrap .comment-form-cookies-consent {
    display: none;
}

/* Must login message */
.ho-must-login {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
}

.ho-must-login a {
    color: #003366;
    font-weight: 600;
    text-decoration: none;
}

.ho-must-login a:hover {
    color: #00A859;
}

/* --- Star Rating Picker --- */

.ho-rating-fields {
    margin-bottom: 8px;
}

.ho-rating-field {
    margin-bottom: 12px;
}

.ho-rating-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.ho-rating-field__label abbr {
    color: #dc2626;
    text-decoration: none;
    margin-left: 2px;
}

.ho-star-picker {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.ho-star-pick {
    font-size: 28px;
    color: #d1d5db;
    transition: color 0.15s ease, transform 0.1s ease;
    user-select: none;
    line-height: 1;
}

.ho-star-pick:hover,
.ho-star-pick.ho-star-hover {
    color: #FFB800;
    transform: scale(1.15);
}

.ho-star-pick.ho-star-selected {
    color: #FFB800;
}

/* Category ratings toggle */
.ho-rating-categories {
    margin-top: 8px;
}

.ho-rating-categories__toggle {
    font-size: 13px;
    font-weight: 600;
    color: #003366;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
    list-style: none;
}

.ho-rating-categories__toggle::-webkit-details-marker {
    display: none;
}

.ho-rating-categories__toggle::before {
    content: "▸ ";
    display: inline;
    transition: transform 0.2s;
}

.ho-rating-categories[open] .ho-rating-categories__toggle::before {
    content: "▾ ";
}

.ho-rating-categories__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 12px;
}

.ho-rating-categories__grid .ho-star-pick {
    font-size: 22px;
}

/* --- Comment List --- */

.ho-comments-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ho-comment-item {
    display: flex;
    gap: 16px;
}

.ho-comment-item:last-child {
    padding-bottom: 0;
}

.ho-comment-avatar {
    flex-shrink: 0;
}

.ho-comment-avatar__img {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: #f1f5f9;
}

.ho-comment-body {
    flex: 1;
    min-width: 0;
}

.ho-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.ho-comment-author {
    font-size: 15px;
    font-weight: 700;
    color: #003366;
}

.ho-comment-date {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

.ho-comment-stars {
    margin-bottom: 8px;
}

.ho-stars-row {
    display: inline-flex;
    gap: 1px;
}

.ho-stars--sm .ho-star {
    font-size: 16px;
}

.ho-comment-text {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
}

.ho-comment-text p {
    margin: 0;
}

/* Widget styles (Sentiment Aggregate, Top Rated) are in hostoffers-custom.css
   so they load globally — these widgets appear on product, intelligence,
   and single-post pages. */

/* ==========================================================================
   Reader Comments — Responsive
   ========================================================================== */

@media (max-width: 781px) {
    .ho-rating-categories__grid {
        grid-template-columns: 1fr;
    }

    .ho-comment-item {
        gap: 12px;
    }

    .ho-comment-avatar__img {
        width: 40px;
        height: 40px;
    }

    .ho-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
