/**
 * MB Google Reviews — Frontend Styles
 * Carrusel de reviews de Google
 */

.mbgr-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mbgr-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.mbgr-track::-webkit-scrollbar {
    display: none;
}

.mbgr-card {
    flex: 0 0 320px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.mbgr-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mbgr-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
}

/* Avatar */
.mbgr-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background-color: #9c27b0;
}

.mbgr-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.mbgr-avatar-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.mbgr-user-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-right: 25px;
}

.mbgr-name {
    font-weight: 600;
    font-size: 15px;
    color: #202124;
    line-height: 1.2;
}

.mbgr-date {
    font-size: 13px;
    color: #70757a;
    margin-top: 2px;
}

/* Google icon */
.mbgr-google-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
}

.mbgr-stars {
    color: #fbbc04;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.mbgr-verified {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    fill: #1a73e8;
}

.mbgr-text {
    font-size: 14px;
    color: #3c4043;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.mbgr-read-more {
    font-size: 14px;
    color: #70757a;
    text-decoration: none;
    margin-top: auto;
}

.mbgr-read-more:hover {
    text-decoration: underline;
}

/* Navigation arrows */
.mbgr-nav {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
    padding: 0;
}

.mbgr-nav:hover {
    background: #f1f3f4;
}

.mbgr-prev {
    left: -20px;
}

.mbgr-next {
    right: -20px;
}

.mbgr-nav svg {
    width: 24px;
    height: 24px;
    fill: #5f6368;
}

@media (max-width: 768px) {

    .mbgr-prev,
    .mbgr-next {
        display: none;
    }

    .mbgr-card {
        flex: 0 0 280px;
    }
}