/* Main Container */
.review-summary {
    padding: 32px;
    background-color: #fff;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Header Section */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.review-header-left h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #111;
}

.review-score-container {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.review-score {
    font-size: 40px;
    font-weight: 700;
}

.review-stars-wrapper {
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #ff9f00;
    font-size: 20px;
    letter-spacing: 2px;
}

.review-count {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Breakdown Bars */
.review-breakdown {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
}

.review-bar-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin: 4px 0;
    color: #666;
}

.review-bar-label {
    width: 50px;
}

.review-bar-container {
    flex-grow: 1;
    background-color: #eee;
    height: 4px;
    border-radius: 2px;
    margin: 0 10px;
    overflow: hidden;
}

.review-bar-fill {
    background-color: #ff9f00;
    height: 100%;
}

.review-bar-percent {
    width: 30px;
}

/* Recommend Circular Progress */
.review-recommend-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circular-progress {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#000 var(--percent), #eee 0deg);
}

.circular-progress::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    background-color: #fff;
    border-radius: 50%;
}

.circular-progress span {
    position: relative;
    font-weight: 700;
    font-size: 14px;
}

.recommend-text {
    font-size: 13px;
    line-height: 1.2;
}

.recommend-text strong {
    display: block;
    font-size: 14px;
}

.review-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 18px 10px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0;
}
.review-card-user img.review-avatar {
    height: 27px;
    width: 27px;
}
/* Global Media Gallery */
.global-review-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 32px;
    scrollbar-width: thin;
}

.global-gallery-item {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.global-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AI Summary */
.ai-summary {
    background-color: #f4f4f4;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.ai-summary h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.ai-summary p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* Filters */
.review-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.review-filters select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background-color: #f9f9f9;
}

.review-filters label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Review Cards */
.review-cards {
    display: flex;
    flex-direction: column;
}

.review-card {
    border-bottom: 1px solid #eee;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.review-card-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.action-btn:hover{
    background: #f9f9f9;
    color: #000;
}
.review-user-header {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-user-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.user-info-name {
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.user-flag {
    width: 16px;
    height: auto;
}

.review-verified-badge {
    background-color: #e6f9f0;
    color: #008a4b;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-date {
    font-size: 12px;
    color: #666;
}

.review-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.review-stars-inline {
    color: #ff9f00;
    font-size: 18px;
    letter-spacing: -2px;
}

.recommend-badge-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #111;
}

.review-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.review-media-gallery {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.review-media-item {
    width: 50px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.review-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-tags-links {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.review-tag-link {
    color: #666;
    text-decoration: underline;
}

.review-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #f9f9f9;
}

.report-link {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    margin-left: 8px;
}

.review-card-criteria {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Criteria Ratings */
.criterion-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.criterion-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
}

.criterion-bar-bg {
    background-color: #eee;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.criterion-bar-fill {
    background-color: #000;
    height: 100%;
}

/* Pagination */
.review-pagination {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background: transparent;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    color: #000;
}

.pagination-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Review Modal & Form */
.review-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.review-modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.review-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: 400;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.review-modal-close:hover {
    color: #000;
}

.review-modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

.review-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 1 / -1;
}

.form-group[data-field="firstName"],
.form-group[data-field="lastName"],
.form-group[data-field="youtubeLink"],
.form-group[data-field="uploadPhotos"],
.form-group[data-field="uploadVideos"] {
    grid-column: span 1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.rating-group {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.rating-group label {
    margin-bottom: 0;
}
.rating-group .rating-label {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    width: 150px;
}
.review-header-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    /* WooCommerce Overrides */
    float: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    font-family: inherit !important;
}

.woocommerce-js .star-rating::before {
    display: none !important;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    line-height: 1;
    display: inline-block;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ff9f00;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    gap: 10px;
}

.btn-submit {
    background-color: #000;
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .review-form {
        grid-template-columns: 1fr;
    }
    .form-group[data-field] {
        grid-column: 1 / -1;
    }
    .review-modal-content {
        padding: 24px;
        margin: 20px auto;
    }
}

@media (max-width: 1024px) {
    .review-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .review-breakdown {
        display: none;
    }
}

/* Showcase Variations */
.reviewscribe-showcase-review-carousel {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.reviewscribe-showcase-review-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.reviewscribe-showcase-review-carousel .reviewscribe-card {
    flex: 0 0 320px;
}

.rs-dot {
    transition: all 0.2s;
    width: 6px !important;
    height: 6px !important;
    margin: 2px !important;
}

.rs-prev, .rs-next {
    transition: all 0.2s;
    z-index: 100 !important;
    position: relative; /* Container for pseudo-elements */
}

/* Arrow Geometry */
.rs-prev::before, .rs-next::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2.5px solid #374151;
    border-left: 2.5px solid #374151;
    position: absolute;
    top: 50%;
}

.rs-prev::before {
    left: 55%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.rs-next::before {
    left: 45%;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.rs-prev:hover, .rs-next:hover {
    background-color: #f9fafb !important;
    transform: translateY(-50%) scale(1.05) !important;
    border-color: #d1d5db !important;
}
/* Share Menu */
.share-container {
    position: relative;
    z-index: 100;
}

.share-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 180px; /* Reduced width */
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    padding: 6px 0;
    margin-bottom: 8px;
    animation: fadeIn 0.2s ease-out;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap */
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.1s;
}

.share-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.share-item svg {
    flex-shrink: 0;
}
.woocommerce-product-rating {
    display: none !important;
}
.woocommerce-js .star-rating span {
    display: none;
}