/**
 * CureZeal Reviews Manager — Frontend Styles
 */

/* ── Hide menu + footer actions on ALL reviews ──────────────────────────────── */

.vxf-post .vxf-more,
.vxf-post .vxf-footer {
    display: none !important;
}

/* ── Main reviews wrap — card boundary matching Voxel style ─────────────────── */

.cz-reviews-wrap {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ── Rating Summary Card ─────────────────────────────────────────────────────── */

.cz-rating-summary {
    background: #fffbee;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.cz-rating-summary__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    align-items: center;
}

.cz-rating-summary__stars .cz-star {
    display: inline-flex;
    align-items: center;
}

.cz-rating-summary__stars .cz-star svg {
    width: 36px;
    height: 36px;
}

/* Full star */
.cz-rating-summary__stars .cz-star--full svg path {
    fill: #f5a623 !important;
}

/* Empty star */
.cz-rating-summary__stars .cz-star--empty svg path {
    fill: #e0e0e0 !important;
}

/* Partial stars — use SVG defs gradient, handled per element */
.cz-rating-summary__stars .cz-star--quarter svg path,
.cz-rating-summary__stars .cz-star--half svg path,
.cz-rating-summary__stars .cz-star--three-quarter svg path {
    fill: url(#cz-star-partial) !important;
}

.cz-rating-summary__sentence {
    font-size: 0.95em;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

/* ── Google icon — pure CSS span ─────────────────────────────────────────────── */

.cz-google-icon-span,
.cz-google-badge-span {
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.18 1.48-4.97 2.31-8.16 2.31-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    flex-shrink: 0;
}

.cz-google-icon-span {
    width: 16px;
    height: 16px;
}

.cz-google-badge-span {
    width: 14px;
    height: 14px;
    margin-left: 4px;
}

/* ── View all Google Reviews link ────────────────────────────────────────────── */

.cz-google-view-all {
    padding: 16px 0 4px;
}

.cz-google-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #d4a017;
    text-decoration: underline;
    font-size: 0.95em;
    transition: opacity 0.2s;
}

.cz-google-view-all a:hover {
    opacity: 0.8;
}

/* ── Load More button ────────────────────────────────────────────────────────── */

.cz-load-more-wrap {
    text-align: center;
    padding: 20px 0 8px;
}

.cz-btn-load-more {
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.cz-btn-load-more:hover {
    background: #e09510;
    color: #fff;
}

/* ── Read more / less ────────────────────────────────────────────────────────── */

.cz-read-more {
    display: inline !important;
    margin-left: 2px;
    color: #f5a623 !important;
    font-weight: 400 !important;
    font-size: inherit !important;
    text-decoration: none;
    white-space: nowrap;
}

.cz-read-more:hover {
    text-decoration: underline;
    color: #f5a623 !important;
}

/* ── Review text alignment ───────────────────────────────────────────────────── */

.cz-review-card .vxf-body-text {
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.cz-review-card .cz-review-text {
    display: block;
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.cz-review-card .cz-text-short,
.cz-review-card .cz-text-full {
    text-indent: 0 !important;
}

/* ── Review time ─────────────────────────────────────────────────────────────── */

.cz-review-time {
    font-size: 0.82em;
    color: #888;
}

/* ── Avatar placeholder ──────────────────────────────────────────────────────── */

.cz-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    font-weight: 600;
    font-size: 16px;
    color: #555;
}

/* ── Google reviewer avatar ─────────────────────────────────────────────────── */

.cz-review-card--google .vxf-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Inactive stars ──────────────────────────────────────────────────────────── */

.cz-review-card .rev-star-score li:not(.active) svg path {
    fill: #d0d0d0 !important;
}

/* ── Empty state ─────────────────────────────────────────────────────────────── */

.cz-empty-state {
    text-align: center;
    padding: 32px 16px;
}

.cz-empty-state__icon {
    margin-bottom: 14px;
}

.cz-empty-state__icon svg {
    width: 52px;
    height: 52px;
}

.cz-empty-state__title {
    font-size: 1em;
    color: #555;
    margin: 0 0 6px;
}

.cz-empty-state__title strong {
    color: #333;
}

.cz-empty-state__subtitle {
    font-size: 0.9em;
    color: #aaa;
    margin: 0;
}