/* Latest Reviews Widget */
.dgrev-reviews-grid {
    display: grid;
    gap: 20px;
}

.dgrev-reviews-carousel {
    position: relative;
    margin: 20px 0;
}

.dgrev-review-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.dgrev-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dgrev-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.dgrev-author-avatar {
    width: 40px;
    height: 40px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.dgrev-review-meta {
    flex: 1;
}

.dgrev-author-name {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
}

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

.dgrev-listing-name {
    font-size: 14px;
    margin-bottom: 10px;
}

.dgrev-listing-name i {
    color: #2271b1;
    margin-right: 5px;
}

.dgrev-listing-name a {
    color: #2271b1;
    text-decoration: none;
}

.dgrev-listing-name a:hover {
    text-decoration: underline;
}

.dgrev-rating {
    margin-bottom: 10px;
}

.dgrev-rating i {
    color: #ffc107;
    font-size: 16px;
    margin-right: 2px;
}

.dgrev-rating .far.fa-star {
    color: #e4e5e9;
}

.dgrev-review-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Review Summary Widget */
.dgrev-review-summary {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dgrev-average-rating {
    text-align: center;
    margin-bottom: 20px;
}

.dgrev-rating-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.dgrev-rating-stars {
    color: #ffc107;
    font-size: 24px;
}

.dgrev-total-reviews {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.dgrev-rating-breakdown {
    margin-top: 20px;
}

.dgrev-rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dgrev-rating-label {
    width: 60px;
    font-size: 14px;
}

.dgrev-rating-bar-outer {
    flex: 1;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.dgrev-rating-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dgrev-rating-count {
    width: 40px;
    font-size: 14px;
    text-align: right;
}

/* Dark Mode Support */
.elementor-editor-dark-mode .dgrev-review-card,
.elementor-editor-dark-mode .dgrev-review-summary {
    background: #1a1c1e;
    border-color: #2c2c2c;
}

.elementor-editor-dark-mode .dgrev-author-name {
    color: #fff;
}

.elementor-editor-dark-mode .dgrev-review-content {
    color: #b8b8b8;
}

.elementor-editor-dark-mode .dgrev-rating-bar-outer {
    background: #2c2c2c;
}

/* Responsive Design */
@media screen and (max-width: 767px) {
    .dgrev-reviews-grid {
        grid-template-columns: 1fr !important;
    }

    .dgrev-rating-number {
        font-size: 36px;
    }

    .dgrev-rating-stars {
        font-size: 20px;
    }
}

/* Carousel Navigation */
.tns-nav {
    text-align: center;
    margin-top: 20px;
}

.tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    margin: 0 4px;
    padding: 0;
    cursor: pointer;
}

.tns-nav button.tns-nav-active {
    background: #2271b1;
}

.tns-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.tns-controls button {
    position: absolute;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
}

.tns-controls button:first-child {
    left: -20px;
}

.tns-controls button:last-child {
    right: -20px;
}

.tns-controls button:hover {
    background: #f8f9fa;
}

.elementor-editor-dark-mode .tns-controls button {
    background: #2c2c2c;
    color: #fff;
}

.elementor-editor-dark-mode .tns-controls button:hover {
    background: #3c3c3c;
} 