/* FRONTEND REVIEWS */

:root {
    --wc-custom-reviews-star-color: #ffb400;
    --wc-custom-reviews-button-color: #0073aa;
    --wc-custom-reviews-border-color: #e0e0e0;
    --wc-custom-reviews-text-color: #333;
    --wc-custom-reviews-light-bg: #f9f9f9;
}

/* ===  Resumo das Avaliações ===*/

.reviews-title {
    font-size: 22px;
    color: var(--wc-custom-reviews-text-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.reviews-summary {
    background: #fff;
    padding: 20px;
    margin: 30px 0 30px 0;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rating-overview {
    display: flex;
    gap: 30px;
    align-items: center;
    width: 900px;
    justify-self: center;
    margin-bottom: 20px;
}

.average-rating {
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--wc-custom-reviews-text-color);
    line-height: 1;
    margin-bottom: 8px;
}

.average-rating .stars-display {
    margin-bottom: 8px;
}

.average-rating .stars-display .star, .fa-solid.fa-star, .fa-solid.fa-star-half-stroke {
    color: var(--wc-custom-reviews-star-color);
}

.fa-regular.fa-star {
    color: #ddd;
}

.total-reviews {
    color: var(--wc-custom-reviews-text-color);
    font-size: 14px;
}

.rating-breakdown {
    flex: 1;
    border-left: 1px solid #EAE9E9;
    border-right: 1px solid #EAE9E9;
    padding: 0 70px 0 70px
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars-display {
    display: flex;
    align-items: center;
    gap: 6px
}

@media screen and (max-width: 1000px) {
    .rating-overview {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-self: center;
    }
    
    .rating-breakdown {
        border: none;
    }
     .rating-bar {
        width: 400px;
    }

    .no-reviews {
        flex-direction: column;
        gap: 0!important;
    }

    .no-reviews-summary {
        border: none!important
    }

    .review-button-container {
        margin: 0px!important
    }
}

@media screen and (min-width: 449px) and (max-width: 529px) {
    
    .rating-bar {
        width: 350px;
    }
}

@media screen and (min-width: 400px) and (max-width: 448px) {
    
    .rating-bar {
        width: 300px;
    }
}

@media screen and (max-width: 399px) {
    
    .rating-bar {
        width: 260px;
    }
}

.star-label {
    min-width: 30px;
    font-size: 14px;
    color: var(--wc-custom-reviews-text-color);
    text-align: end;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--wc-custom-reviews-star-color);
    transition: width 0.3s ease;
}

.bar-count {
    min-width: 30px;
    text-align: right;
    font-size: 12px;
    color: #666;
}

.no-reviews {
    display: flex;
    gap: 10px;
}

.no-reviews-summary {
    text-align: center;
    padding: 20px;
    color: #666;
    border-right: 1px solid #EAE9E9;
}

/* Lista de Comentários */

/* Itens da grade: Definimos a largura para o Flexbox calcular as colunas. */
.review-grid-item {
    box-sizing: border-box;
    padding: 16px;
    color: #333333;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    cursor: pointer;
}

/* Remove o cursor pointer dos cards sem mídia */
.review-grid-item.no-media {
    cursor: default;
}

/* 2 colunas: Telas a partir de 481px ATÉ 899px */
@media screen and (max-width: 899px) {
    .review-grid-item {
        width: calc(50% - 7.5px); /* 2 colunas com gap de 15px */
    }
}

/* 3 colunas: Telas a partir de 900px */
@media screen and (min-width: 900px) {
    .review-grid-item {
        width: calc(33.333% - 10px); /* 3 colunas com gap de 15px */
    }
}

/* 4 colunas: Telas a partir de 1201px */
@media screen and (min-width: 1201px) {
    .review-grid-item {
        width: calc(25% - 11.25px); /* 4 colunas com gap de 15px */
    }
}

/* 5 colunas: Telas a partir de 1400px (ajuste conforme necessário para telas muito grandes) */
@media screen and (min-width: 1400px) {
    .review-grid-item {
        width: calc(20% - 12px); /* 5 colunas com gap de 15px */
    }
}

/* Estilos internos (permanecem os mesmos) */
.review-image-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #f5f5f5;
}

.review-image-grid img,
.review-video-grid video {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.review-video-grid video {
    object-fit: cover;
}

.review-video-grid {
    position: relative;
}

.review-video-grid .play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.review-video-grid .play-icon-overlay i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

/* Contador de imagens */
.images-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    background-color: #fff;
    color: #000;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 5px;
    line-height: inherit;
    user-select: none;
    box-shadow: 1px 1px 2px #646464;
    display: block !important;
}

/* Contadores aninhados (efeito empilhado) */
.images-counter .images-counter {
    top: 2px;
    right: 2px;
}

.images-counter .images-counter .images-counter {
    top: 2px;
    right: 2px;
}

/* Preview de múltiplas imagens e vídeos no formulário */
.images-preview-container {
    margin-top: 10px;
}

.review-images-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.review-image-preview-item img,
.review-image-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--wc-custom-reviews-border-color);
}

.review-image-preview-item.video-preview {
    position: relative;
}

.review-image-preview-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.review-image-preview-item .play-icon i {
    color: white;
    font-size: 12px;
    margin-left: 2px;
}

.review-image-preview-item .remove-preview-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.review-image-preview-item .remove-preview-image:hover {
    background: #cc0000;
}

.customer-info-grid, .review-text-grid {
    margin-top: 10px;
    text-align: center;
}

/* === Botão de Avaliar === */
.review-button-container {
    margin-top: 20px;
    text-align: center;
}

.open-review-modal-btn {
    background: var(--wc-custom-reviews-button-color)!important;
    color: #fff!important;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700!important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.open-review-modal-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.open-review-modal-btn:active {
    transform: translateY(0);
}

/* === Modal de Avaliação === */
.wc-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wc-review-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wc-review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.wc-review-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--wc-custom-reviews-text-color);
}

.wc-review-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wc-review-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.wc-review-modal-body {
    padding: 24px;
}

/* === Formulário no Modal === */
.wc-review-modal .form-row {
    margin-bottom: 20px;
}

.wc-review-modal .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--wc-custom-reviews-text-color);
}

.wc-review-modal .form-row input[type="text"],
.wc-review-modal .form-row input[type="email"],
.wc-review-modal .form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.wc-review-modal .form-row input[type="text"]:focus,
.wc-review-modal .form-row input[type="email"]:focus,
.wc-review-modal .form-row textarea:focus {
    outline: none;
    border-color: var(--wc-custom-reviews-button-color);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wc-review-modal .rating-input {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.wc-review-modal .rating-input input[type="radio"] {
    display: none;
}

.wc-review-modal .rating-input .star-label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 0;
    font-weight: normal;
}

.wc-review-modal .rating-input .star-label:hover,
.wc-review-modal .rating-input .star-label.hovered {
    color: var(--wc-custom-reviews-star-color);
}

.wc-review-modal .rating-input input[type="radio"]:checked + .star-label {
    color: var(--wc-custom-reviews-star-color);
}

.wc-review-modal .submit-review-btn {
    background: var(--wc-custom-reviews-button-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.wc-review-modal .submit-review-btn:hover {
    background: #005a87;
}

.wc-review-modal .submit-review-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wc-review-modal .form-messages {
    margin-top: 15px;
}

.wc-review-modal .form-messages .success {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.wc-review-modal .form-messages .error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.wc-review-modal .description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 0;
}

/* === Responsividade do Modal === */
@media (max-width: 768px) {
    .wc-review-modal {
        padding: 10px;
    }
    
    .wc-review-modal-content {
        max-height: 95vh;
    }
    
    .wc-review-modal-header,
    .wc-review-modal-body {
        padding: 16px;
    }
    
    .wc-review-modal-header h3 {
        font-size: 18px;
    }
}


/* === Previne scroll do body quando modal está aberto === */
body.modal-open {
    overflow: hidden;
}



/* === Responsividade da Mensagem de Sucesso no Modal === */
.wc-review-modal .form-messages {
    word-wrap: break-word; /* Garante que o texto quebre para caber no container */
    overflow-wrap: break-word; /* Para navegadores modernos */
    max-width: 100%; /* Garante que não ultrapasse a largura do pai */
    box-sizing: border-box; /* Inclui padding e border no cálculo da largura */
}

.wc-review-modal .form-messages .success,
.wc-review-modal .form-messages .error {
    width: 100%; /* Ocupa 100% da largura disponível */
    box-sizing: border-box; /* Inclui padding e border no cálculo da largura */
    padding: 10px; /* Ajuste de padding para melhor visualização */
    font-size: 14px; /* Ajuste de fonte para melhor visualização */
    text-align: center; /* Centraliza o texto */
}



/* === Modal de Sucesso com Confetes === */
.wc-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wc-success-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: successModalFadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

@keyframes successModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wc-success-modal .success-icon {
    margin-bottom: 20px;
    animation: successIconBounce 0.6s ease 0.3s both;
}

@keyframes successIconBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.wc-success-modal h3 {
    color: #4CAF50;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    animation: successTextSlide 0.5s ease 0.5s both;
}

.wc-success-modal .success-message {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 30px 0;
    animation: successTextSlide 0.5s ease 0.6s both;
}

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

.wc-success-modal-close {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: successButtonSlide 0.5s ease 0.7s both;
}

.wc-success-modal-close:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

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

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    animation: confettiFall 3s linear infinite;
}

.confetti:nth-child(2n) {
    background: #4ecdc4;
    animation-delay: -0.5s;
}

.confetti:nth-child(3n) {
    background: #45b7d1;
    animation-delay: -1s;
}

.confetti:nth-child(4n) {
    background: #f9ca24;
    animation-delay: -1.5s;
}

.confetti:nth-child(5n) {
    background: #6c5ce7;
    animation-delay: -2s;
}

.confetti:nth-child(6n) {
    background: #a29bfe;
    animation-delay: -2.5s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* === Responsividade do Modal de Sucesso === */
@media (max-width: 768px) {
    .wc-success-modal {
        padding: 15px;
    }
    
    .wc-success-modal-content {
        padding: 30px 20px;
    }
    
    .wc-success-modal h3 {
        font-size: 20px;
    }
    
    .wc-success-modal .success-message {
        font-size: 14px;
    }
    
    .wc-success-modal .success-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* Confetti styles from CodePen */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    opacity: 0;
    animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

/* Validar formulários */
.wc-review-modal .form-row input.error-field,
.wc-review-modal .form-row textarea.error-field {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Paginação */
.wc-custom-reviews-pagination {
    text-align: center;
    margin-top: 20px;
}

.wc-custom-reviews-pagination .pagination-button {
    background-color: #ffffff;
    border: none;
    padding: 8px 11px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    align-items: center;
    text-align: center;
    display: inline-block;
}

.wc-custom-reviews-pagination .pagination-button.active {
    color: var(--wd-primary-color);
    font-size: 20px;
    font-weight: 700;
    border: none;
}

.wc-custom-reviews-pagination .pagination-button:hover:not(.active) {
    background-color: #e0e0e0;
}

/* Spinner styles */

.reviews-list {
    position: relative; 
    min-height: 100px; 
}

.loader {
    position: absolute; /* Posicionamento absoluto para não afetar o fluxo do documento */
    top: 50%; /* Centraliza verticalmente */
    left: 50%; /* Centraliza horizontalmente */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 8px solid #dddddd;
    border-top-color: var(--wd-primary-color);
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
    z-index: 10; /* Garante que fique acima dos reviews */
}

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

/* MODAL */

/* === Modal de Visualização de Review Detalhado === */
/* === MODAL DE REVIEW (DESIGN PROFISSIONAL) === */

.wc-single-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

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

.wc-single-review-modal-inner-content {
    background: #fff;
    width: 100%;
    max-width: 813px;
    height: 584px;
    border-radius: 10px;
    box-shadow: 0px 0px 35px -10px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(15%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botão Fechar */
.wc-single-review-modal .wc-single-review-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    padding: 16px 10px;
    width: auto;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.1s ease-in;
    z-index: 100;
    line-height: 0;
    text-transform: none;
    font-weight: normal;
    font-family: inherit;
    box-shadow: none;
    gap: 0;
}

.wc-single-review-modal .wc-single-review-modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: transparent;
    box-shadow: none;
    color: #f4f5f6;
}

/* Container Principal (Flexbox) */
.wc-single-review-modal-content {
    display: flex;
    justify-content: center;
    height: 100%;
    position: relative;
    background-color: #F0F0F0;
}

.wc-single-review-modal-grid {
    display: flex;
    width: 100%;
    height: 100%;
}

/* === LADO ESQUERDO: GALERIA === */
.modal-image-section {
    flex-basis: 53%;
    min-width: 438px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.modal-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    margin: 0 auto;
    position: relative;
    display: block;
    transition: opacity 0.2s ease-in;
}

/* Vídeo no modal */
.modal-main-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    background: #000;
}

/* Setas de Navegação */
.modal-gallery .modal-gallery-arrow {
    position: absolute;
    width: 45px;
    height: 45px;
    min-height: auto;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    padding: 0;
    text-transform: none;
    font-weight: normal;
    box-shadow: none;
    gap: 0;
}

.modal-gallery .modal-gallery-arrow svg {
    width: 19px;
    fill: #e3e1e1;
    filter: drop-shadow(1.95px 1.95px 2.6px rgba(0, 0, 0, 0.15));
}

.modal-gallery .modal-gallery-arrow.modal-gallery-prev {
    left: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.modal-gallery .modal-gallery-arrow.modal-gallery-next {
    right: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.modal-gallery .modal-gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: transparent;
    box-shadow: none;
}

/* Miniaturas */
.modal-gallery-thumbs {
    position: absolute;
    padding: 10px;
    bottom: 10px;
    display: flex;
    max-width: 100%;
    overflow: hidden;
    overflow-x: auto;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
}

.modal-thumb {
    border-radius: 8px;
    width: 60px !important;
    height: 60px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    min-width: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.modal-thumb img,
.modal-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-thumb .thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.modal-thumb .thumb-play-icon i {
    color: white;
    font-size: 8px;
    margin-left: 1px;
}

/* Esconde controles nativos indesejados no WebKit (Chrome/Safari) */
video::-webkit-media-controls-seek-back-button,
video::-webkit-media-controls-seek-forward-button,
video::-webkit-media-controls-rewind-button,
video::-webkit-media-controls-fast-forward-button,
video::-internal-media-controls-download-button {
    display: none !important;
}

/* Tenta esconder botão de overflow (três pontinhos) onde costuma ficar o download/playback speed */
video::-webkit-media-controls-overflow-button {
    display: none !important;
}

.modal-thumb:hover {
    transform: scale(1.05);
}

.modal-thumb.active {
    border: 2px solid #f3841e;
}

.gallery-images-data {
    display: none;
}

/* === LADO DIREITO: INFORMAÇÕES === */
.modal-info-section {
    flex-basis: 47%;
    flex-grow: 1;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-width: 375px;
}

.modal-review-info {
    padding: 24px;
    flex-shrink: 0;
}

/* Nome e Badge */
.modal-customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-customer-name {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.modal-verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: #2e7d32;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: normal;
    width: auto;
}

.modal-verified-badge i {
    font-size: 14px;
}

/* Linha de Estrelas e Data */
.modal-rating {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 16px 0;
}

.modal-rating .stars-container {
    display: flex;
    gap: 2px;
}

.modal-rating .fa-solid.fa-star,
.modal-rating .fa-solid.fa-star-half-stroke {
    color: var(--wc-custom-reviews-star-color);
    font-size: 18px;
}

.modal-rating .fa-regular.fa-star {
    color: #ddd;
    font-size: 16px;
}

.modal-review-date {
    color: #767676;
    font-size: 12px;
    line-height: 18px;
    font-weight: normal;
}

/* Texto do Review */
.modal-review-text {
    /* padding: 0 24px 24px 24px; */
    overflow-y: auto;
    flex: 1;
    font-size: 16px;
    line-height: 24px;
    margin-top: 16px;
}

.modal-review-text p {
    font-size: 16px;
    line-height: 24px;
    color: #444;
    margin: 0;
}

/* Informações do Produto */
.modal-product-info {
    padding: 0 20px 10px 20px;
    border-top: 1px solid #e3e3e3;
    padding-top: 16px;
}

.modal-product-info hr.divider {
    display: none;
}

.modal-product-link {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    text-decoration: none;
    pointer-events: none;
}

.modal-product-image {
    flex-shrink: 0;
}

.modal-product-image img {
    max-width: 150px;
    height: auto;
    max-height: 56px;
    border-radius: 4px;
}

.modal-product-name {
    text-transform: uppercase;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: black;
    margin: 0;
}

/* === RESPONSIVIDADE === */

/* Tablets */
@media (max-width: 690px) {
    .wc-single-review-modal-inner-content {
        overflow: scroll !important;
        height: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        min-height: 100vh;
        max-height: none;
    }
    
    .wc-single-review-modal-content {
        border-radius: 0 !important;
    }
    
    .wc-single-review-modal-grid {
        flex-direction: column;
        height: fit-content !important;
        min-height: 101vh;
    }
    
    .modal-image-section {
        overflow: unset !important;
        flex-basis: auto;
        min-height: unset !important;
        max-height: none !important;
        min-width: unset !important;
        padding-bottom: 0 !important;
        display: block !important;
        height: auto !important;
        background: #000 !important;
    }

    .modal-gallery, 
    .modal-gallery-main {
        height: auto !important;
        display: block !important;
    }

    .modal-main-image,
    .modal-main-video {
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }
    
    .modal-info-section {
        min-width: unset;
    }
    
    .modal-review-text {
        height: auto;
        max-height: 210px;
    }
    
    .modal-product-info {
        padding: 12px 12px 20px 12px !important;
    }
    
    .modal-gallery-thumbs {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 0 !important;
        width: 100%;
        justify-content: center;
        z-index: 20;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Esconde thumbnails quando o vídeo está tocando */
    .wc-single-review-modal.video-playing .modal-gallery-thumbs {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Fix close button on mobile */
    .wc-single-review-modal .wc-single-review-modal-close {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 999999;
    }
}

/* Scrollbar personalizada */
.modal-review-text::-webkit-scrollbar {
    width: 6px;
}

.modal-review-text::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-review-text::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.modal-review-text::-webkit-scrollbar-thumb:hover {
    background: #999;
}

