/* Reviews Summary Box */
.mte-review-summary-block {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.mte-review-score-big {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin: 10px 0;
    color: var(--mte-secondary);
}

.mte-review-bars {
    flex-grow: 1;
}

.mte-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #444;
}

.mte-bar-label {
    min-width: 100px;
}

.mte-bar-track {
    flex-grow: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.mte-bar-fill {
    height: 100%;
    background: var(--mte-secondary);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .mte-review-summary-block {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Star Rating Input */
.mte-star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.mte-star-rating-input input {
    display: none;
}

.mte-star-rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: #ccc;
    padding: 0 2px;
    transition: color 0.2s;
}

.mte-star-rating-input input:checked~label,
.mte-star-rating-input label:hover,
.mte-star-rating-input label:hover~label {
    color: #ffb400;
}

/* Premium Review Summary UX */
.mte-review-summary-block {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: var(--mte-radius, 16px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.mte-rs-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    border-right: 1px solid #eee;
    padding-right: 30px;
}

.mte-rs-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mte-review-score-big {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin: 10px 0;
    color: var(--mte-secondary);
}

.mte-review-score-big span {
    font-size: 18px;
    color: #999;
}

.mte-stars-large {
    font-size: 22px;
    color: #ffb400;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.mte-rs-based {
    font-size: 13px;
    color: #666;
}

.mte-review-bars {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mte-bar-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.mte-bar-label {
    min-width: 120px;
}

.mte-bar-track {
    flex-grow: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.mte-bar-fill {
    height: 100%;
    background: var(--mte-secondary);
    border-radius: 6px;
}

.mte-bar-score {
    min-width: 30px;
    text-align: right;
}

/* Toolbar Sorting */
.mte-reviews-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mte-rt-count {
    font-size: 20px;
    font-weight: 800;
    color: var(--mte-secondary);
}

.mte-rt-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.mte-rt-sort select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Premium Review Cards UX */
.mte-review-card.premium-card-ux {
    background: #fff;
    border-radius: var(--mte-radius, 16px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    padding: 24px;
    margin-bottom: 24px;
}

.mte-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.mte-reviewer-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mte-reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--mte-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.mte-reviewer-name {
    font-weight: 800;
    font-size: 16px;
    color: var(--mte-secondary);
    margin-bottom: 4px;
}

.mte-reviewer-meta {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mte-verified-badge {
    color: #2b8a3e;
    font-weight: 600;
    background: #ebfbee;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mte-verified-badge i {
    font-size: 14px;
    line-height: inherit;
    width: auto;
    height: auto;
}

.mte-stars {
    color: #ffb400;
    letter-spacing: 2px;
    font-size: 15px;
}

.mte-review-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--mte-secondary);
}

.mte-review-text {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.mte-review-thumbs {
    display: flex;
    gap: 12px;
}

.mte-rt-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.mte-rt-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mte-rt-item:hover img {
    transform: scale(1.05);
}

.mte-rt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mte-review-summary-block {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .mte-rs-left {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .mte-review-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* Fullscreen Photo Modal */
#mte-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    display: none;
    overflow-y: auto;
}

.mte-pm-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.mte-pm-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--mte-secondary);
}

.mte-pm-close {
    font-size: 32px;
    color: var(--mte-secondary);
    cursor: pointer;
    line-height: 1;
}

.mte-pm-body {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.mte-pm-grid {
    column-count: 2;
    column-gap: 15px;
}

.mte-pm-grid-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.mte-pm-grid-item img {
    width: 100%;
    display: block;
    height: auto;
    transition: opacity 0.3s ease;
}

.mte-pm-grid-item:hover img {
    opacity: 0.9;
}

.mte-pm-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.mte-pm-slide-container {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mte-pm-active-img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mte-pm-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.mte-pm-controls button {
    background: #f5f5f5;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--mte-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mte-pm-controls button:hover {
    background: #e0e0e0;
}

.mte-pm-counter {
    font-size: 15px;
    font-weight: 700;
    color: #666;
}

@media (max-width: 768px) {
    .mte-pm-grid {
        column-count: 1;
        /* full width stack on mobile */
    }

    .mte-pm-body {
        padding: 10px;
    }
}