/* PC International ? Google Reviews */

.pcigr {
    border: 1px solid #dce4ec;
    border-radius: 12px;
    padding: 14px;
    background: #e5ffd6;
    color: #203247;
    box-sizing: border-box;
    margin: 14px 0;
}

.pcigr * {
    box-sizing: border-box;
}

.pcigr [hidden] {
    display: none !important;
}


/* Header and footer layout */

.pcigr-top,
.pcigr-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pcigr .pcigr-summary {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.pcigr .pcigr-status {
    font-size: 13px;
    color: #4d6072;
    margin: 2px 0;
}


/* Slider navigation controls */

.pcigr-controls {
    display: flex;
    gap: 8px;
}

.pcigr-controls button {
    border: 1px solid #bac8d4;
    border-radius: 6px;
    background: white;
    color: #142b45;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
    font-size: 20px;
}

.pcigr-controls button:disabled {
    opacity: 0.45;
    cursor: default;
}


/* Slider track */

.pcigr-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0 5px;
    align-items: stretch;
    scrollbar-width: none;
}

.pcigr-track::-webkit-scrollbar {
    display: none;
}


/* Review cards */

.pcigr-card {
    flex: 0 0 calc((100% - 24px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    border: 1px solid #dce4ec;
    border-radius: 9px;
    padding: 12px;
    background: white;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
}


/* Reviewer information */

.pcigr-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pcigr-by {
    min-width: 0;
}

.pcigr-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pcigr-name {
    font-weight: 650;
    font-size: 14px;
}

.pcigr-card .pcigr-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcigr-date,
.pcigr-original,
.pcigr-source {
    font-size: 12px;
}


/* Review stars */

.pcigr-stars {
    color: #eac16f;
    letter-spacing: 2px;
    margin: 6px 0;
}


/* Review text and truncation */

.pcigr .pcigr-text {
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    height: 5.8em;
}


/* Review action links */

.pcigr-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.pcigr .pcigr-more {
    font: inherit;
    font-size: 12px;
    color: #175b94;
    text-decoration: underline;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}


/* Google Maps footer */

.pcigr-bottom {
    margin-top: 8px;
    justify-content: space-between;
}

.pcigr-maps {
    margin-left: auto;
    font-size: 14px;
}


/* Google Maps logo and attribution */

.pcigr-logo {
    display: inline-flex;
    align-items: center;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: #5e5e5e;
    white-space: nowrap;
    letter-spacing: normal;
    padding: 10px 10px 5px;
}

.pcigr-logo img {
    height: 24px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
}

.pcigr-attributions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* Accessibility */

.pcigr a:focus-visible,
.pcigr button:focus-visible,
.pcigr-track:focus-visible {
    outline: 3px solid #175b94;
    outline-offset: 3px;
}


/* Full review popup */

.pcigr-dialog {
    position: fixed;
    width: min(620px, calc(100% - 32px));
    max-height: 80vh;
    overflow: auto;
    padding: 24px;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #fff;
    color: #203247;
}

.pcigr-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.pcigr-dialog h3 {
    margin: 0 0 12px;
}

.pcigr .pcigr-fulltext {
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 12px 0;
}

.pcigr .pcigr-close {
    display: block;
    margin-top: 14px;
    cursor: pointer;
}

.pcigr-dialog .pcigr-original {
    font-size: 14px;
}


/* Tablet responsiveness */

@media (max-width: 850px) {

    .pcigr-card {
        flex-basis: calc((100% - 12px) / 2);
    }

}


/* Mobile responsiveness */

@media (max-width: 550px) {

    .pcigr-card {
        flex-basis: 100%;
    }

    .pcigr {
        padding: 10px;
    }

}


/* Overall Google rating and fallback */

.pcigr-score-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.pcigr-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* Fractional rating stars */

.pcigr-score-stars {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    line-height: 1.1;
    vertical-align: middle;
}

.pcigr-score-empty {
    color: #c8cfd7;
}

.pcigr-score-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: #eac16f;
    white-space: nowrap;
}


/* Total Google rating count */

.pcigr-score-count {
    font-size: 13px;
    font-weight: 400;
    color: #4d6072;
}