/* Google Reviews Widget — bottom-left, dark theme matching Google */
.gr-widget{position:fixed;bottom:24px;left:24px;z-index:9997;width:360px;max-width:calc(100vw - 48px);background:#1f1f1f;color:#e8eaed;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.4);font-family:'Google Sans','Roboto',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;opacity:0;transform:translateY(20px);transition:opacity .4s,transform .4s,width .35s ease,max-width .35s ease;overflow:hidden;display:none}
.gr-widget.show{opacity:1;transform:translateY(0);display:block}

/* Header */
.gr-header{padding:12px 14px;border-bottom:1px solid #3c4043;display:flex;align-items:center;gap:10px}
.gr-g-logo{width:20px;height:20px;flex-shrink:0}
.gr-header-title{font-size:13px;font-weight:500;color:#e8eaed;flex:1;letter-spacing:.1px}
.gr-header-rating{display:flex;align-items:center;gap:5px;font-size:13px}
.gr-header-rating .gr-num{font-weight:600;color:#e8eaed}
.gr-header-rating .gr-stars{color:#FBBC04;font-size:11px;letter-spacing:1px}
.gr-collapse-btn{width:26px;height:26px;background:none;border:none;color:#9aa0a6;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;flex-shrink:0;line-height:1;transition:background .2s,color .2s}
.gr-collapse-btn:hover{background:#3c4043;color:#e8eaed}
.gr-collapse-btn svg{display:block}

/* Body */
.gr-body{padding:14px 40px;position:relative;min-height:170px}
.gr-review{display:none}
.gr-review.active{display:block;animation:gr-fade .4s ease}
@keyframes gr-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.gr-reviewer{display:flex;align-items:flex-start;gap:12px;margin-bottom:6px}
.gr-avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:500;color:#fff;flex-shrink:0;font-family:inherit}
.gr-reviewer-info{flex:1;min-width:0;padding-top:1px}
.gr-name{font-size:14px;font-weight:600;color:#e8eaed;line-height:1.2}
.gr-meta{font-size:11px;color:#9aa0a6;margin-top:3px}

.gr-stars-row{display:flex;align-items:center;gap:8px;margin:8px 0 8px}
.gr-stars-row .gr-stars{color:#FBBC04;font-size:13px;letter-spacing:1px;line-height:1}
.gr-date{font-size:11px;color:#9aa0a6}
.gr-new-badge{display:inline-block;padding:1px 6px;border:1px solid #5f6368;border-radius:4px;font-size:10px;color:#e8eaed;font-weight:500}

.gr-text-wrap{position:relative}
.gr-text{font-size:13px;color:#c4c7c5;line-height:1.5;max-height:6em;overflow:hidden;position:relative;white-space:pre-wrap;transition:max-height .35s ease}
.gr-text.expanded{max-height:1200px}
.gr-text:not(.expanded)::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1.6em;background:linear-gradient(transparent,#1f1f1f);pointer-events:none}
.gr-more{display:inline-block;margin-top:4px;font-size:12px;color:#8ab4f8;cursor:pointer;background:none;border:none;padding:0;font-family:inherit}
.gr-more:hover{text-decoration:underline}

/* Owner reply */
.gr-reply{margin-top:10px;padding:10px 12px;background:#2a2a2a;border-radius:8px;border-left:3px solid #5f6368}
.gr-reply-hdr{font-size:12px;color:#e8eaed}
.gr-reply-hdr strong{font-weight:600}
.gr-reply-hdr span{color:#9aa0a6}
.gr-reply-date{font-size:10px;color:#9aa0a6;margin:2px 0 4px}
.gr-reply-text{font-size:12px;color:#c4c7c5;line-height:1.4}

/* Footer */
.gr-footer{padding:10px 14px;border-top:1px solid #3c4043;display:flex;align-items:center;justify-content:space-between;gap:10px}
.gr-nav-arrows{position:absolute;inset:0;pointer-events:none;z-index:2}
.gr-arrow{position:absolute;top:50%;transform:translateY(-50%);width:26px;height:26px;background:#2a2a2a;border:1px solid #3c4043;color:#9aa0a6;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;transition:background .2s,color .2s,border-color .2s;pointer-events:auto}
#gr-prev{left:6px}
#gr-next{right:6px}
.gr-arrow:hover{background:#3c4043;color:#e8eaed;border-color:#5f6368}
.gr-arrow svg{display:block}
.gr-dots{display:flex;gap:6px;align-items:center}
.gr-dot{width:6px;height:6px;border-radius:50%;background:#5f6368;cursor:pointer;border:none;padding:0;transition:background .2s,transform .2s}
.gr-dot.active{background:#8ab4f8;transform:scale(1.15)}
.gr-view-all{font-size:12px;color:#8ab4f8;text-decoration:none;font-weight:500}
.gr-view-all:hover{text-decoration:underline;color:#8ab4f8}

/* Collapsed strip — universal (mobile default + user-collapsed on desktop) */
.gr-collapsed{display:none;align-items:center;gap:8px;padding:11px 14px;cursor:pointer;font-size:12px}
.gr-collapsed:hover{background:#262626}
.gr-collapsed .gr-stars{color:#FBBC04;font-size:11px;letter-spacing:.5px;flex-shrink:0}
.gr-collapsed-name{font-weight:600;color:#e8eaed;flex-shrink:0}
.gr-collapsed-text{color:#9aa0a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.gr-collapsed-icon{color:#9aa0a6;font-size:10px;flex-shrink:0;transform:rotate(180deg)}

/* When collapsed: hide full card sections, show strip */
.gr-widget.collapsed{width:auto;min-width:280px;max-width:360px}
.gr-widget.collapsed .gr-header,
.gr-widget.collapsed .gr-body,
.gr-widget.collapsed .gr-footer{display:none}
.gr-widget.collapsed .gr-collapsed{display:flex}

/* Mobile */
@media(max-width:600px){
  .gr-widget{bottom:18px;left:18px;border-radius:10px;width:calc(100vw - 100px);max-width:340px}
  .gr-widget.collapsed{width:calc(100vw - 100px);max-width:280px;min-width:0}
}
