/* DealerRater Reviews — frontend cards */

.drr-reviews-grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}
.drr-cols-1 { grid-template-columns: 1fr; }
.drr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.drr-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .drr-cols-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .drr-cols-2, .drr-cols-3 { grid-template-columns: 1fr; } }

/* Card */
.drr-review-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #00a54f;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #222;
    transition: box-shadow .2s;
}
.drr-review-card:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,.13);
}

/* Header */
.drr-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.drr-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drr-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.drr-author-name {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drr-author-link {
    color: #00a54f;
    text-decoration: none;
}
.drr-author-link:hover { text-decoration: underline; }

.drr-review-date {
    font-size: 12px;
    color: #888;
}
.drr-logo { flex-shrink: 0; margin-left: auto;}
.drr-logo svg{ max-width: 50px; }

/* Stars */
.drr-stars { display: flex; gap: 1px; }
.drr-star { font-size: 18px; line-height: 1; }
.drr-star-on  { color: #00a54f; }
.drr-star-off { color: #ddd; }

/* Title */
.drr-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
}

/* Text */
.drr-card-text p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* Read more/less */
.drr-hidden { display: none !important; }

.drr-read-more,
.drr-read-less {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #00a54f;
    cursor: pointer;
    text-decoration: none;
}
.drr-read-more:hover,
.drr-read-less:hover { text-decoration: underline; }

/* No reviews */
.drr-no-reviews {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 24px;
}

/* ── Carousel ────────────────────────────────────────────────────────────── */
.drr-carousel { margin: 24px auto; outline: none; }

.drr-carousel-slide {
    display: grid;
    gap: 20px;
}
.drr-carousel-slide.drr-slide-hidden { display: none !important; }

.drr-cols-1.drr-carousel-slide { grid-template-columns: 1fr; }
.drr-cols-2.drr-carousel-slide { grid-template-columns: repeat(2,1fr); }
.drr-cols-3.drr-carousel-slide { grid-template-columns: repeat(3,1fr); }

@media (max-width: 900px) { .drr-cols-3.drr-carousel-slide { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .drr-cols-2.drr-carousel-slide, .drr-cols-3.drr-carousel-slide { grid-template-columns: 1fr; } }

.drr-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
}
.drr-carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #00a54f;
    background: #fff;
    color: #00a54f;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.drr-carousel-btn:hover { background: #00a54f; color: #fff; }
.drr-carousel-btn:focus-visible { outline: 2px solid #00a54f; outline-offset: 2px; }
.drr-counter { font-size: 13px; color: #888; min-width: 48px; text-align: center; }
