/* ==========================================================================
   OMM RUDRAKSHA - DEVOTEE REVIEWS & TESTIMONIALS (MOBILE-FIRST STYLES)
   ========================================================================== */

/* --- 1. Product Details Review Summary (Above The Fold) --- */
.omm-pd-review-summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 6px 0 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.omm-pd-stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b38728;
}

.omm-pd-stars {
    display: inline-block;
    position: relative;
    font-size: 1.15rem;
    line-height: 1;
    color: #e2d9c8;
    letter-spacing: 2px;
    user-select: none;
}

.omm-pd-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #d4af37;
    text-shadow: 0 0 1px rgba(180, 130, 20, 0.4);
}

.omm-pd-score-num {
    font-weight: 700;
    color: #14382c;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.omm-pd-count-link {
    color: #1b4d3e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
    border-bottom: 1px dotted rgba(27, 77, 62, 0.4);
    padding-bottom: 1px;
}

.omm-pd-count-link:hover {
    color: #c05638;
    border-bottom-color: #c05638;
}

.omm-pd-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #edf7ed;
    color: #1e4620;
    border: 1px solid rgba(46, 125, 50, 0.22);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 14px;
    letter-spacing: 0.02em;
}

/* --- 2. Devotee Reviews Tab: Rating Distribution & Breakdown Header --- */
.omm-reviews-header-card {
    background: linear-gradient(135deg, #fffdf8 0%, #faf6ec 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.omm-reviews-header-card h3 {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #14382c;
    margin: 0 0 16px;
}

.omm-reviews-overview-grid {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 24px;
    align-items: center;
}

.omm-score-box {
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid rgba(212, 175, 55, 0.25);
}

.omm-score-big {
    font-size: 3.2rem;
    font-weight: 800;
    color: #14382c;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 4px;
}

.omm-score-stars {
    font-size: 1.3rem;
    color: #d4af37;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.omm-score-count {
    font-size: 0.88rem;
    color: #555;
    font-weight: 500;
    margin: 0 0 8px;
}

.omm-score-recommended {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Rating Histogram */
.omm-histogram {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.omm-hist-row {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: #4b5563;
}

.omm-hist-star-label {
    width: 38px;
    font-weight: 600;
    color: #14382c;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.omm-hist-bar-track {
    flex: 1;
    height: 9px;
    background: #e5e0d3;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 10px;
}

.omm-hist-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f3c968 100%);
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.omm-hist-count {
    width: 55px;
    text-align: right;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Action button to write review */
.omm-review-actions-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.btn-omm-write-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #14382c;
    color: #f3c968;
    border: 1px solid #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(20, 56, 44, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 46px;
}

.btn-omm-write-review:hover {
    background: #1c4e3e;
    color: #ffffff;
    border-color: #f3c968;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 56, 44, 0.25);
}

/* --- 3. Inline Write A Review Card --- */
.omm-write-review-form-card {
    display: none;
    background: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.12);
}

.omm-write-review-form-card.show {
    display: block;
    animation: ommFadeIn 0.3s ease-out;
}

@keyframes ommFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.omm-write-review-form-card h4 {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #14382c;
    margin: 0 0 6px;
}

/* Interactive Star Rating Selector */
.omm-star-rating-select {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    font-size: 2rem;
    color: #d1c7b7;
    margin: 6px 0 14px;
}

.omm-star-rating-select input {
    display: none;
}

.omm-star-rating-select label {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    margin: 0;
    line-height: 1;
}

.omm-star-rating-select label:hover,
.omm-star-rating-select label:hover ~ label,
.omm-star-rating-select input:checked ~ label {
    color: #d4af37;
    transform: scale(1.08);
}

/* --- 4. Devotee Review Item Cards --- */
.omm-review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.omm-devotee-card {
    background: #ffffff;
    border: 1px solid #ebe4d8;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.omm-devotee-card:hover {
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.omm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.omm-devotee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14382c 0%, #1e5241 100%);
    color: #f3c968;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #d4af37;
    box-shadow: 0 2px 6px rgba(20, 56, 44, 0.2);
}

.omm-devotee-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.omm-devotee-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.omm-devotee-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    letter-spacing: -0.1px;
}

.omm-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.omm-review-date {
    font-size: 0.8rem;
    color: #8c857b;
}

.omm-card-stars {
    color: #d4af37;
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.omm-card-title {
    font-family: Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #122b24;
    margin: 0 0 8px;
    line-height: 1.35;
}

.omm-card-text {
    font-size: 0.96rem;
    line-height: 1.65;
    color: #374151;
    margin: 0 0 14px;
    white-space: pre-line;
    word-break: break-word;
}

/* Helpfulness Voting */
.omm-card-vote {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1ece4;
    font-size: 0.85rem;
    color: #6b7280;
}

.omm-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f6f0;
    border: 1px solid #dcd5c8;
    color: #374151;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 34px;
}

.omm-vote-btn:hover {
    background: #eef5ee;
    border-color: #2e7d32;
    color: #1b5e20;
}

.omm-vote-btn-no:hover {
    background: #fdedec;
    border-color: #c05638;
    color: #a83820;
}

/* --- 5. Catalog Item Rating Count (Category Grid) --- */
.art-rating-count {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- 6. Mobile Responsiveness (<768px) --- */
@media (max-width: 767.98px) {
    .omm-pd-review-summary {
        font-size: 0.9rem;
        gap: 6px 10px;
    }

    .omm-reviews-header-card {
        padding: 16px;
    }

    .omm-reviews-overview-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .omm-score-box {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding-bottom: 16px;
    }

    .omm-score-big {
        font-size: 2.8rem;
    }

    .omm-review-actions-col {
        padding-left: 0;
        width: 100%;
    }

    .btn-omm-write-review {
        width: 100%;
    }

    .omm-write-review-form-card {
        padding: 16px;
    }

    .omm-devotee-card {
        padding: 16px;
    }

    .omm-devotee-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .omm-card-title {
        font-size: 1.05rem;
    }

    .omm-card-text {
        font-size: 0.92rem;
    }
}
