/* ==========================================================================
   Google Opinie – pd_googlereviews
   ========================================================================== */

.pdgr-slider-section,
.pdgr-badge-wrap,
.pdgr-overlay {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pdgr-star-empty {
    color: #dadce0;
}

/* --------------------------------------------------------------------------
   Slider
   -------------------------------------------------------------------------- */

.pdgr-slider-section {
    padding: 40px 0;
}

.pdgr-slider-header {
    text-align: center;
    margin-bottom: 30px;
}

.pdgr-slider-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 10px;
}

.pdgr-slider-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #5f6368;
}

.pdgr-slider-summary .pdgr-google-icon {
    width: 24px;
    height: 24px;
}

.pdgr-slider-summary-rating {
    font-size: 22px;
    font-weight: 700;
    color: #202124;
}

.pdgr-slider-summary-stars {
    color: #FBBC04;
    font-size: 20px;
    letter-spacing: 1px;
}

.pdgr-slider-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 50px;
}

.pdgr-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pdgr-slider-slide {
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
    padding: 0 10px;
    box-sizing: border-box;
}

.pdgr-slider-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.pdgr-slider-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pdgr-slider-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pdgr-slider-avatar,
.pdgr-slider-avatar-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #e8eaed;
}

.pdgr-slider-avatar {
    object-fit: cover;
}

.pdgr-slider-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #5f6368;
    font-size: 18px;
}

.pdgr-slider-author {
    font-weight: 600;
    font-size: 14px;
    color: #202124;
}

.pdgr-slider-author a {
    color: inherit;
    text-decoration: none;
}

.pdgr-slider-time {
    font-size: 12px;
    color: #70757a;
}

.pdgr-slider-stars {
    color: #FBBC04;
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.pdgr-slider-text {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.pdgr-slider-google {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #70757a;
}

.pdgr-slider-google .pdgr-google-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Strzałki nawigacji */
.pdgr-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dadce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: box-shadow 0.2s, background 0.2s, opacity 0.2s;
    padding: 0;
}

.pdgr-slider-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.pdgr-slider-btn-prev {
    left: 5px;
}

.pdgr-slider-btn-next {
    right: 5px;
}

.pdgr-slider-btn svg {
    width: 20px;
    height: 20px;
    fill: #5f6368;
}

/* Stopka slidera */
.pdgr-slider-footer {
    text-align: center;
    margin-top: 25px;
}

.pdgr-slider-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.pdgr-slider-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Odznaka
   -------------------------------------------------------------------------- */

.pdgr-badge-wrap {
    display: flex;
    padding: 15px;
    justify-content: center;
}

.pdgr-badge-wrap--float_left,
.pdgr-badge-wrap--float_right {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    padding: 0;
}

.pdgr-badge-wrap--float_left {
    left: 20px;
}

.pdgr-badge-wrap--float_right {
    right: 20px;
}

.pdgr-badge {
    background: #fff;
    border: 2px solid #4285F4;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 360px;
}

.pdgr-badge:hover,
.pdgr-badge:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    outline: none;
}

.pdgr-badge-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdgr-badge .pdgr-google-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.pdgr-badge-info {
    color: #202124;
}

.pdgr-badge-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #202124;
}

.pdgr-badge-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdgr-badge-rating-num {
    font-size: 18px;
    font-weight: 700;
    color: #202124;
}

.pdgr-badge-stars {
    color: #FBBC04;
    font-size: 16px;
    letter-spacing: 1px;
}

.pdgr-badge-count {
    font-size: 12px;
    color: #202124;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Popup z opiniami
   -------------------------------------------------------------------------- */

.pdgr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.pdgr-overlay.active {
    display: flex;
}

.pdgr-popup {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pdgr-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 5px;
}

.pdgr-popup-close:hover {
    color: #333;
}

.pdgr-popup-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pdgr-popup-header .pdgr-google-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: block;
}

.pdgr-popup-header h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #202124;
}

.pdgr-popup-rating-big {
    font-size: 48px;
    font-weight: 700;
    color: #202124;
    line-height: 1.1;
}

.pdgr-popup-stars {
    color: #FBBC04;
    font-size: 24px;
    letter-spacing: 2px;
}

.pdgr-popup-count {
    font-size: 14px;
    color: #70757a;
}

.pdgr-review-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pdgr-review-item:last-of-type {
    border-bottom: none;
}

.pdgr-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pdgr-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eaed;
    flex-shrink: 0;
}

.pdgr-review-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #5f6368;
    font-size: 16px;
}

.pdgr-review-author {
    font-weight: 600;
    font-size: 14px;
    color: #202124;
}

.pdgr-review-author a {
    color: inherit;
    text-decoration: none;
}

.pdgr-review-time {
    font-size: 12px;
    color: #70757a;
}

.pdgr-review-stars {
    color: #FBBC04;
    font-size: 14px;
    margin-bottom: 5px;
}

.pdgr-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #3c4043;
}

.pdgr-popup-actions {
    text-align: center;
    margin-top: 15px;
}

.pdgr-popup-actions--secondary {
    margin-top: 10px;
}

.pdgr-popup-actions--secondary a {
    color: #4285F4;
    font-size: 13px;
}

.pdgr-leave-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #4285F4;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.pdgr-leave-btn:hover {
    background: #3367D6;
    color: #fff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   RWD
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .pdgr-slider-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .pdgr-slider-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pdgr-slider-wrap {
        padding: 0 40px;
    }

    .pdgr-badge-wrap--float_left,
    .pdgr-badge-wrap--float_right {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
    }
}
