/* ============================================================
   pshureviews – Facebook Reviews Widget
   Prefix: fbr-  (100% egyedi, nincs Bootstrap / Tailwind)
   ============================================================ */

/* ── Reset a widgeten belül ── */
.fbr-widget,
.fbr-widget *,
.fbr-widget *::before,
.fbr-widget *::after {
    box-sizing: border-box;
}

/* ── Widget wrapper ── */
.fbr-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1c1e21;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    max-width: 1600px;
}

/* ── Header kártya ── */
.fbr-header {
    background: #fff;
    border-radius: 10px;
    padding: 18px 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
    gap: 16px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

.fbr-header-meta {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
}

.fbr-title {
    font-size: 20px;
    font-weight: 700;
    color: #1c1e21;
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.fbr-title-fb {
    color: #1877F2;
}

/* ── Rating ── */
.fbr-rating-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 6px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

.fbr-score {
    font-size: 18px;
    font-weight: 700;
    color: #1c1e21;
    line-height: 1;
}

.fbr-stars,
.fbr-card-stars {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 1px;
    line-height: 0;
}

.fbr-star {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.fbr-card-stars .fbr-star {
    width: 17px;
    height: 17px;
}

.fbr-count {
    font-size: 14px;
    color: #65676b;
    line-height: 1;
}

/* ── CTA gomb ── */
.fbr-cta-btn {
    display: inline-block;
    background: #1877F2;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    -webkit-transition: background 0.15s ease;
    transition: background 0.15s ease;
}

.fbr-cta-btn:hover,
.fbr-cta-btn:focus {
    background: #166fe5;
    color: #fff !important;
    text-decoration: none !important;
    outline: none;
}

/* ── Carousel külső wrapper ── */
.fbr-carousel-outer {
    position: relative;
    padding: 0 22px; /* tér a nyilaknak, hogy ne lógjanak ki */
}

.fbr-carousel-track-wrap {
    overflow: hidden;
    /* padding + negatív margin trükk: az overflow:hidden ne vágja le a card box-shadowt */
    padding: 6px 2px 10px;
    margin: -6px -2px -10px;
}

.fbr-carousel-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-transition: -webkit-transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    transition: -webkit-transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Review kártya ── */
.fbr-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 16px 14px;
    min-width: 0;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc((100% - 4 * 12px) / 5);
            flex: 0 0 calc((100% - 4 * 12px) / 5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Kártya fejléc: avatar + név + dátum */
.fbr-card-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

/* Avatar – img verzió */
img.fbr-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    display: block;
}

/* Avatar – initials fallback */
.fbr-avatar-fallback {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: inherit;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    line-height: 1;
}

.fbr-card-user {
    min-width: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 0%;
            flex: 1 1 0%;
}

.fbr-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1c1e21;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fbr-card-date {
    font-size: 12px;
    color: #65676b;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Csillagok – a kártyán */
.fbr-card-stars {
    margin-bottom: 8px;
}

/* Vélemény szöveg – 3 soros csonkítás */
.fbr-card-text {
    font-size: 13px;
    color: #1c1e21;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    margin-bottom: 4px;
}

/* „Tovább olvasom" */
.fbr-card-readmore {
    display: inline-block;
    font-size: 13px;
    color: #65676b;
    margin-bottom: 12px;
    text-decoration: none;
    -webkit-transition: color 0.15s;
    transition: color 0.15s;
    line-height: 1.4;
}

a.fbr-card-readmore:hover {
    color: #1877F2;
    text-decoration: underline;
}

/* Kártya footer: FB ikon + forrás */
.fbr-card-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
    margin-top: auto;
}

.fbr-fb-badge {
    width: 28px;
    height: 28px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    display: block;
}

.fbr-source-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    line-height: 1;
}

.fbr-source-label {
    font-size: 11px;
    color: #65676b;
    line-height: 1.35;
    display: block;
}

.fbr-source-link {
    font-size: 13px;
    color: #1877F2 !important;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1.35;
    display: block;
}

.fbr-source-link:hover {
    text-decoration: underline !important;
}

/* ── Navigációs gombok ── */
.fbr-nav-btn {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #dddfe2;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    z-index: 10;
    padding: 0;
    color: #1c1e21;
    -webkit-transition: background 0.15s ease, opacity 0.15s ease;
    transition: background 0.15s ease, opacity 0.15s ease;
    line-height: 0;
}

.fbr-nav-btn:hover {
    background: #f0f2f5;
}

.fbr-nav-btn:focus {
    outline: 2px solid #1877F2;
    outline-offset: 2px;
}

.fbr-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.fbr-nav-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.fbr-nav-prev {
    left: 0;
}

.fbr-nav-next {
    right: 0;
}

/* ── Drag cursor ── */
.fbr-carousel-track {
    cursor: -webkit-grab;
    cursor: grab;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.fbr-carousel-track.fbr-is-dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
    -webkit-transition: none !important;
    transition: none !important;
}

/* ── Dots ── */
.fbr-dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 6px;
    margin-top: 14px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

.fbr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccd0d5;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
    display: block;
}

.fbr-dot.fbr-dot--active {
    background: #1877F2;
}

/* ── „További vélemények" link ── */
.fbr-more-row {
    text-align: center;
    margin-top: 16px;
}

.fbr-more-link {
    display: inline-block;
    font-size: 14px;
    color: #1877F2 !important;
    font-weight: 500;
    text-decoration: none !important;
    -webkit-transition: opacity 0.15s;
    transition: opacity 0.15s;
}

.fbr-more-link:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .fbr-card {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc((100% - 3 * 12px) / 4);
                flex: 0 0 calc((100% - 3 * 12px) / 4);
    }
}

@media (max-width: 991px) {
    .fbr-card {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc((100% - 2 * 12px) / 3);
                flex: 0 0 calc((100% - 2 * 12px) / 3);
    }
}

@media (max-width: 767px) {
    .fbr-card {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc((100% - 12px) / 2);
                flex: 0 0 calc((100% - 12px) / 2);
    }
    .fbr-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
        gap: 12px;
    }
    .fbr-carousel-outer {
        padding: 0 18px;
    }
    .fbr-nav-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 479px) {
    .fbr-card {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 100%;
                flex: 0 0 100%;
    }
    .fbr-header {
        padding: 14px 16px;
    }
    .fbr-carousel-outer {
        padding: 0 14px;
    }
    .fbr-nav-btn {
        width: 28px;
        height: 28px;
    }
}

/* ============================================================
   Google variant – overrides on top of the fbr- base
   ============================================================ */

.fbr-widget--google .fbr-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
}

.gr-logo {
    display: inline-block;
    line-height: 0;
}

.gr-logo svg {
    width: 22px;
    height: 22px;
    display: block;
}

.gr-title-text {
    line-height: 1.2;
}

.fbr-widget--google .fbr-cta-btn {
    background: #1a73e8;
}

.fbr-widget--google .fbr-cta-btn:hover,
.fbr-widget--google .fbr-cta-btn:focus {
    background: #1765cc;
}

.fbr-widget--google .fbr-nav-btn:focus {
    outline-color: #1a73e8;
}

.fbr-widget--google .fbr-dot.fbr-dot--active {
    background: #1a73e8;
}

.fbr-widget--google a.fbr-card-readmore:hover {
    color: #1a73e8;
}

.fbr-widget--google .fbr-source-link {
    color: #1a73e8 !important;
}

.fbr-widget--google .fbr-more-link {
    color: #1a73e8 !important;
}

.gr-g-badge {
    width: 26px;
    height: 26px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    display: block;
}

/* ── Powered by Google (required attribution) ── */
.gr-powered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 0 4px;
    font-size: 12px;
    color: #70757a;
    letter-spacing: 0.01em;
}

.gr-powered span {
    line-height: 1;
}

@media (max-width: 479px) {
    .gr-powered {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
}
