/* Google Rating Widget - fixed bottom-right corner */

.gr-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gr-widget--hiding {
    opacity: 0;
    transform: translateY(8px);
}

/* Close button */
.gr-widget__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #33b5e6;
    border: none;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 1;
}

.gr-widget__close:hover {
    background: #1a8ab5;
    transform: scale(1.15);
}

/* Main card link */
.gr-widget__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 14px;
    background: #ffffff;
    border: 2px solid #33b5e6;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(51, 181, 230, 0.25);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-width: 120px;
}

.gr-widget__link:hover {
    box-shadow: 0 4px 18px rgba(51, 181, 230, 0.45);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* Title */
.gr-widget__title {
    font-size: 11px;
    font-weight: 700;
    color: #33b5e6;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Stars */
.gr-widget__stars {
    display: flex;
    gap: 1px;
    align-items: center;
}

.gr-star {
    width: 20px;
    height: 20px;
}

.gr-star--full path  { fill: #33b5e6; }
.gr-star--empty path { fill: #d0edf8; }

/* Score row */
.gr-widget__score {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.gr-widget__rating {
    font-size: 22px;
    font-weight: 800;
    color: #1a8ab5;
    line-height: 1;
}

.gr-widget__label {
    font-size: 11px;
    color: #33b5e6;
    font-weight: 600;
}

/* Review count */
.gr-widget__count {
    font-size: 10px;
    color: #90a4ae;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .gr-widget {
        bottom: 12px;
        right: 12px;
    }

    .gr-widget__link {
        padding: 8px 11px;
        min-width: 105px;
        border-radius: 8px;
        gap: 2px;
    }

    .gr-star {
        width: 17px;
        height: 17px;
    }

    .gr-widget__rating  { font-size: 19px; }
    .gr-widget__title   { font-size: 10px; }
    .gr-widget__label   { font-size: 10px; }
    .gr-widget__count   { font-size: 9px;  }
}
