/* TGWV Reviews — frontend */
.tgwv-reviews-wrap {
    --tgwv-reviews-star: #f59e0b;
    --tgwv-reviews-star-empty: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 16%, transparent);
    --tgwv-reviews-border: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 9%, transparent);
    --tgwv-reviews-surface: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 2.5%, var(--tgwv-color-light, #fff));
    --tgwv-reviews-surface-2: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 4.5%, var(--tgwv-color-light, #fff));
    --tgwv-reviews-text-muted: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 52%, transparent);
    --tgwv-reviews-radius: 14px;
    --tgwv-reviews-radius-sm: 10px;
    --tgwv-reviews-accent: var(--tgwv-brand, var(--tgwv-color-dark, #1a1a1a));
    --tgwv-reviews-shadow: 0 10px 40px color-mix(in srgb, var(--tgwv-color-dark, #000) 6%, transparent);

    margin-top: 2.75rem;
}

.tgwv-reviews-wrap.site-container {
    padding-bottom: 2.75rem;
}

.tgwv-reviews {
    margin-top: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--tgwv-reviews-border);
}

/* —— Header & overview —— */
.tgwv-reviews__header {
    margin-bottom: 2rem;
}

.tgwv-reviews__title {
    margin: 0 0 1.25rem;
    padding-left: 0.85rem;
    border-left: 4px solid var(--tgwv-reviews-accent);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tgwv-entry-title-color, var(--tgwv-color-dark, #1a1a1a));
}

.tgwv-reviews__overview {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--tgwv-reviews-border);
    border-radius: var(--tgwv-reviews-radius);
    background: var(--tgwv-color-light, #fff);
    box-shadow: var(--tgwv-reviews-shadow);
}

@media (max-width: 720px) {
    .tgwv-reviews__overview {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.tgwv-reviews__overview-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-right: 1rem;
    border-right: 1px solid var(--tgwv-reviews-border);
}

@media (max-width: 720px) {
    .tgwv-reviews__overview-score {
        padding-right: 0;
        padding-bottom: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--tgwv-reviews-border);
        align-items: center;
        text-align: center;
        width: 100%;
    }
}

.tgwv-reviews__avg {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.tgwv-reviews__avg-value {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--tgwv-color-dark, #1a1a1a);
}

.tgwv-reviews__avg-max {
    font-size: 17px;
    font-weight: 600;
    color: var(--tgwv-reviews-text-muted);
}

.tgwv-reviews__stars {
    display: inline-flex;
    gap: 0.1rem;
    color: var(--tgwv-reviews-star-empty);
    font-size: 18px;
    letter-spacing: 0.02em;
}

.tgwv-reviews__star--on,
.tgwv-reviews__star--half {
    color: var(--tgwv-reviews-star);
}

.tgwv-reviews__count {
    margin: 0;
    color: var(--tgwv-reviews-text-muted);
    font-size: 14px;
}

.tgwv-reviews__overview-chart {
    min-width: 0;
}

.tgwv-reviews__histogram {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tgwv-reviews__histogram-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr 1.75rem;
    gap: 0.65rem;
    align-items: center;
    font-size: 13px;
    color: var(--tgwv-reviews-text-muted);
}

.tgwv-reviews__histogram-label {
    font-weight: 600;
    color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 70%, transparent);
}

.tgwv-reviews__histogram-bar {
    display: block;
    height: 9px;
    background: var(--tgwv-reviews-surface-2);
    border-radius: 999px;
    overflow: hidden;
}

.tgwv-reviews__histogram-fill {
    display: block;
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, #fbbf24, var(--tgwv-reviews-star));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.tgwv-reviews__histogram-count {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tgwv-reviews__empty-hint {
    margin: 0;
    padding: 1rem 1.15rem;
    border-radius: var(--tgwv-reviews-radius-sm);
    background: var(--tgwv-reviews-surface);
    border: 1px dashed var(--tgwv-reviews-border);
    color: var(--tgwv-reviews-text-muted);
    font-size: 15px;
    text-align: center;
}

/* —— Review list —— */
.tgwv-reviews__list-section {
    margin-bottom: 2rem;
}

.tgwv-reviews__list-section--empty {
    margin-bottom: 0;
}

.tgwv-reviews__list-heading {
    margin: 0 0 1rem;
    font-size: 17px;
    font-weight: 700;
    color: var(--tgwv-color-dark, #1a1a1a);
}

.tgwv-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tgwv-reviews__item {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--tgwv-reviews-border);
    border-radius: var(--tgwv-reviews-radius-sm);
    background: var(--tgwv-color-light, #fff);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tgwv-reviews__item:hover {
    border-color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 14%, transparent);
    box-shadow: 0 4px 18px color-mix(in srgb, var(--tgwv-color-dark, #000) 4%, transparent);
}

.tgwv-reviews__item-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem 1rem;
    align-items: start;
}

.tgwv-reviews__item-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tgwv-reviews-accent) 12%, var(--tgwv-color-light, #fff));
    color: var(--tgwv-reviews-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.tgwv-reviews__item-main {
    min-width: 0;
}

.tgwv-reviews__item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.tgwv-reviews__item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tgwv-reviews__item-author {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgwv-color-dark, #1a1a1a);
}

.tgwv-reviews__item-date,
.tgwv-reviews__item-reply-date {
    color: var(--tgwv-reviews-text-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.tgwv-reviews__item-title {
    margin: 0 0 0.45rem;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tgwv-color-dark, #1a1a1a);
}

.tgwv-reviews__item-body {
    line-height: 1.7;
    font-size: 15px;
    color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 78%, transparent);
    word-break: break-word;
}

.tgwv-reviews__item-photos {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
}

.tgwv-reviews__item-photo {
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--tgwv-reviews-radius-sm);
    border: 1px solid var(--tgwv-reviews-border);
    background: var(--tgwv-reviews-surface);
    cursor: pointer;
    line-height: 0;
}

.tgwv-reviews__item-photo:hover,
.tgwv-reviews__item-photo:focus-visible {
    border-color: var(--tgwv-reviews-accent, #c42e24);
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 46, 36, 0.18);
}

.tgwv-reviews__item-photos img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgwv-reviews__lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tgwv-reviews__lightbox[hidden] {
    display: none !important;
}

.tgwv-reviews__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.tgwv-reviews__lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(880px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.tgwv-reviews__lightbox-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.tgwv-reviews__lightbox-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tgwv-reviews-text, #111827);
}

.tgwv-reviews__lightbox-counter {
    margin-right: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.tgwv-reviews__lightbox-close {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.tgwv-reviews__lightbox-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 1rem 3.25rem;
    background: #0f172a;
    overflow: hidden;
}

.tgwv-reviews__lightbox-body img {
    display: block;
    max-width: 100%;
    max-height: min(72vh, 740px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.tgwv-reviews__lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-size: 1.1rem;
}

.tgwv-reviews__lightbox-nav[hidden] {
    display: none !important;
}

.tgwv-reviews__lightbox-nav:hover,
.tgwv-reviews__lightbox-nav:focus-visible {
    background: #fff;
    outline: none;
}

.tgwv-reviews__lightbox-nav--prev {
    left: 0.75rem;
}

.tgwv-reviews__lightbox-nav--next {
    right: 0.75rem;
}

.tgwv-reviews__lightbox-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.85rem 1rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.tgwv-reviews__lightbox-footer-btn {
    min-height: 2.4rem;
    padding: 0.45rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
}

body.tgwv-reviews-lightbox-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .tgwv-reviews__lightbox-body {
        padding: 1rem 2.75rem;
    }

    .tgwv-reviews__lightbox-nav {
        width: 2.15rem;
        height: 2.15rem;
    }
}

.tgwv-reviews__image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tgwv-reviews__image-preview:empty {
    display: none;
}

.tgwv-reviews__image-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--tgwv-reviews-radius-sm);
    overflow: hidden;
    border: 1px solid var(--tgwv-reviews-border);
    background: var(--tgwv-reviews-surface);
}

.tgwv-reviews__image-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgwv-reviews__image-thumb-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.tgwv-reviews__item-reply {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--tgwv-reviews-radius-sm);
    background: var(--tgwv-reviews-surface);
    border: 1px solid color-mix(in srgb, var(--tgwv-reviews-accent) 12%, var(--tgwv-reviews-border));
}

.tgwv-reviews__item-reply-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
}

.tgwv-reviews__item-reply-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tgwv-reviews-accent) 10%, var(--tgwv-color-light, #fff));
    color: var(--tgwv-reviews-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tgwv-reviews__item-reply-body {
    font-size: 15px;
    line-height: 1.65;
    color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 75%, transparent);
}

/* —— Form —— */
.tgwv-reviews__form-wrap {
    margin-top: 0.5rem;
    margin-bottom: 20px;
    border: 1px solid var(--tgwv-reviews-border);
    border-radius: var(--tgwv-reviews-radius);
    background: var(--tgwv-color-light, #fff);
    box-shadow: var(--tgwv-reviews-shadow);
    overflow: hidden;
}

.tgwv-reviews__form-title {
    margin: 0;
    padding: 1.1rem 1.35rem;
    font-size: 17px;
    font-weight: 700;
    color: var(--tgwv-color-dark, #1a1a1a);
    border-bottom: 1px solid var(--tgwv-reviews-border);
    background: var(--tgwv-reviews-surface);
}

.tgwv-reviews__form {
    display: flex;
    flex-direction: column;
}

.tgwv-reviews__form-inner {
    display: flex;
    flex-direction: column;
}

.tgwv-reviews__rating-panel {
    padding: 1.15rem 1.35rem;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--tgwv-reviews-star) 8%, var(--tgwv-color-light, #fff)) 0%,
        var(--tgwv-color-light, #fff) 100%
    );
    border-bottom: 1px solid var(--tgwv-reviews-border);
}

.tgwv-reviews__form-fields {
    padding: 1.25rem 1.35rem 0.35rem;
}

.tgwv-reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.tgwv-reviews__grid--single {
    grid-template-columns: 1fr;
}

@media (max-width: 640px) {
    .tgwv-reviews__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.tgwv-reviews__field {
    margin-bottom: 1.1rem;
}

.tgwv-reviews__field--rating {
    margin-bottom: 0;
}

.tgwv-reviews__field label,
.tgwv-reviews__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 14px;
    color: var(--tgwv-color-dark, #1a1a1a);
}

.tgwv-reviews__rating-panel .tgwv-reviews__label {
    margin-bottom: 0.65rem;
    font-size: 15px;
}

.tgwv-reviews__field input[type="text"],
.tgwv-reviews__field input[type="email"],
.tgwv-reviews__field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--tgwv-reviews-border);
    border-radius: var(--tgwv-reviews-radius-sm);
    background: var(--tgwv-color-light, #fff);
    color: var(--tgwv-color-dark, #1a1a1a);
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tgwv-reviews__field input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0;
    font: inherit;
    font-size: 14px;
    color: var(--tgwv-color-dark, #1a1a1a);
}

.tgwv-reviews__field textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.tgwv-reviews__field input:hover,
.tgwv-reviews__field textarea:hover {
    border-color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 18%, transparent);
}

.tgwv-reviews__field input:focus,
.tgwv-reviews__field textarea:focus {
    outline: none;
    border-color: var(--tgwv-reviews-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tgwv-reviews-accent) 14%, transparent);
}

.tgwv-reviews__required {
    color: #dc2626;
    font-weight: 700;
}

/* Star rating input */
.tgwv-reviews__stars-input {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 0.2rem 0;
}

.tgwv-reviews__star-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tgwv-reviews__star-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.2rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.tgwv-reviews__star-label:hover {
    transform: scale(1.1);
    background: color-mix(in srgb, var(--tgwv-reviews-star) 10%, transparent);
}

.tgwv-reviews__star-label .tgwv-reviews__star {
    font-size: 32px;
    color: var(--tgwv-reviews-star-empty);
    transition: color 0.12s ease, filter 0.12s ease;
    filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--tgwv-color-dark, #000) 6%, transparent));
}

.tgwv-reviews__star-label:hover .tgwv-reviews__star,
.tgwv-reviews__star-label:hover ~ .tgwv-reviews__star-label .tgwv-reviews__star,
.tgwv-reviews__star-input:checked ~ .tgwv-reviews__star-label .tgwv-reviews__star,
.tgwv-reviews__star-input:focus-visible + .tgwv-reviews__star-label .tgwv-reviews__star {
    color: var(--tgwv-reviews-star);
}

.tgwv-reviews__star-input:focus-visible + .tgwv-reviews__star-label {
    outline: 2px solid var(--tgwv-reviews-accent);
    outline-offset: 2px;
}

.tgwv-reviews__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.tgwv-reviews__form-alert {
    margin: 1rem 1.35rem 0;
    padding: 0.7rem 0.95rem;
    border-radius: var(--tgwv-reviews-radius-sm);
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.tgwv-reviews__form-alert[hidden] {
    display: none !important;
}

.tgwv-reviews__field input::placeholder,
.tgwv-reviews__field textarea::placeholder {
    color: var(--tgwv-reviews-text-muted);
    opacity: 0.9;
}

.tgwv-reviews__hint {
    margin: 0.4rem 0 0;
    font-size: 13px;
    color: var(--tgwv-reviews-text-muted);
}

.tgwv-reviews__field--invalid input[type="text"],
.tgwv-reviews__field--invalid input[type="email"],
.tgwv-reviews__field--invalid textarea,
.tgwv-reviews__field--invalid input[type="file"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 12%, transparent);
}

.tgwv-reviews__field--invalid.tgwv-reviews__field--rating .tgwv-reviews__stars-input {
    outline: 2px solid color-mix(in srgb, #dc2626 35%, transparent);
    outline-offset: 4px;
    border-radius: 8px;
}

.tgwv-reviews__jq-error {
    display: none !important;
}

.tgwv-reviews__error {
    margin: 0.4rem 0 0;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: none;
}

.tgwv-reviews__error--visible {
    display: block;
}

.tgwv-reviews__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin: 0;
    padding: 0.5rem 1.35rem 1.35rem;
}

.tgwv-reviews__message {
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--tgwv-reviews-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.tgwv-reviews__message[hidden] {
    display: none !important;
}

.tgwv-reviews__message--visible {
    display: block;
}

.tgwv-reviews__message--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.tgwv-reviews__message--err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tgwv-reviews__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 0.5rem;
    min-width: 10.5rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.85rem;
    border: none;
    border-radius: 999px;
    background: var(--tgwv-reviews-accent);
    color: var(--tgwv-color-light, #fff);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--tgwv-reviews-accent) 28%, transparent);
}

.tgwv-reviews__submit:hover:not(:disabled) {
    opacity: 0.94;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--tgwv-reviews-accent) 32%, transparent);
}

.tgwv-reviews__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tgwv-reviews__submit-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid color-mix(in srgb, var(--tgwv-color-light, #fff) 35%, transparent);
    border-top-color: var(--tgwv-color-light, #fff);
    border-radius: 50%;
    animation: tgwv-reviews-spin 0.65s linear infinite;
}

.tgwv-reviews__form--loading .tgwv-reviews__submit-spinner {
    display: inline-block;
}

@keyframes tgwv-reviews-spin {
    to { transform: rotate(360deg); }
}

.tgwv-reviews__captcha {
    margin: 0 1.35rem 0.5rem;
}

.tgwv-reviews__overview > .tgwv-reviews__filters {
    grid-column: 1 / -1;
}

.tgwv-reviews__filters {
    margin-top: 1rem;
}

.tgwv-reviews__filters-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tgwv-reviews__filters-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--tgwv-reviews-border);
    border-radius: 999px;
    background: var(--tgwv-color-light, #fff);
    color: var(--tgwv-color-dark, #1a1a1a);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tgwv-reviews__filters-link:hover,
.tgwv-reviews__filters-link:focus-visible,
.tgwv-editor-body .tgwv-reviews .tgwv-reviews__filters-link:hover,
.tgwv-editor-body .tgwv-reviews .tgwv-reviews__filters-link:focus-visible {
    background: var(--tgwv-reviews-surface);
    border-color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 18%, transparent);
    color: var(--tgwv-color-dark, #1a1a1a);
    text-decoration: none;
}

.tgwv-reviews__filters-link--active {
    background: var(--tgwv-brand, #0977c6);
    border-color: var(--tgwv-brand, #0977c6);
    color: #fff;
}

.tgwv-reviews__filters-link--active:hover,
.tgwv-reviews__filters-link--active:focus-visible,
.tgwv-editor-body .tgwv-reviews .tgwv-reviews__filters-link--active:hover,
.tgwv-editor-body .tgwv-reviews .tgwv-reviews__filters-link--active:focus-visible {
    background: color-mix(in srgb, var(--tgwv-brand, #0977c6) 88%, #000);
    border-color: color-mix(in srgb, var(--tgwv-brand, #0977c6) 88%, #000);
    color: #fff;
}

@media (max-width: 480px) {
    .tgwv-reviews__filters-list {
        flex-wrap: wrap;
    }
}

.tgwv-reviews__filter-empty {
    margin: 0 0 1rem;
    color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 65%, transparent);
    font-size: 15px;
}

.tgwv-reviews__pagination {
    margin: 1.25rem 0 0;
}

.tgwv-reviews__pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tgwv-reviews__pagination-list a,
.tgwv-reviews__pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--tgwv-reviews-border);
    border-radius: 0.45rem;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tgwv-reviews__pagination-list a {
    background: var(--tgwv-color-light, #fff);
    color: var(--tgwv-color-dark, #1a1a1a);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tgwv-reviews__pagination-list a:hover {
    background: var(--tgwv-reviews-surface);
}

.tgwv-reviews__pagination-current {
    background: var(--tgwv-brand, #0977c6);
    border-color: var(--tgwv-brand, #0977c6);
    color: #fff;
}

.tgwv-reviews__pagination-ellipsis {
    padding: 0 0.25rem;
    color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 45%, transparent);
}

.tgwv-reviews--loading [data-tgwv-reviews-list] {
    pointer-events: none;
}

.tgwv-reviews__load-more-wrap {
    text-align: center;
    margin: 1.25rem 0 0;
}

.tgwv-reviews__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 1.35rem;
    border: 1px solid var(--tgwv-reviews-border);
    border-radius: 999px;
    background: var(--tgwv-color-light, #fff);
    color: var(--tgwv-color-dark, #1a1a1a);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tgwv-reviews__load-more:hover {
    background: var(--tgwv-reviews-surface);
    border-color: color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 18%, transparent);
}

.tgwv-reviews--loading .tgwv-reviews__load-more {
    opacity: 0.55;
    pointer-events: none;
}

.tgwv-reviews__skeleton {
    display: grid;
    gap: 1rem;
}

.tgwv-reviews__skeleton-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--tgwv-reviews-border);
}

.tgwv-reviews__skeleton-item:last-child {
    border-bottom: 0;
}

.tgwv-reviews__skeleton-avatar,
.tgwv-reviews__skeleton-line {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 8%, transparent) 0%,
        color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 14%, transparent) 50%,
        color-mix(in srgb, var(--tgwv-color-dark, #1a1a1a) 8%, transparent) 100%
    );
    background-size: 200% 100%;
    animation: tgwv-reviews-skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 0.45rem;
}

.tgwv-reviews__skeleton-avatar {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
}

.tgwv-reviews__skeleton-body {
    flex: 1;
    display: grid;
    gap: 0.55rem;
}

.tgwv-reviews__skeleton-line {
    height: 0.75rem;
}

.tgwv-reviews__skeleton-line--short {
    width: 35%;
}

.tgwv-reviews__skeleton-line--medium {
    width: 72%;
}

@keyframes tgwv-reviews-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
