@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

.agr-device-mobile { display: none !important; }
@media (max-width: 767px) {
    .agr-device-desktop { display: none !important; }
    .agr-device-mobile { display: block !important; }
}

.agr-widget {
    --agr-per-view: 3;
    width: 100%;
    padding: var(--agr-space-y, 12px) var(--agr-space-x, 40px) !important;
    background: var(--agr-bg);
    border: 1px solid var(--agr-border);
    border-radius: var(--agr-radius);
    font-family: Arial, Helvetica, sans-serif;
}
.agr-widget * { box-sizing: border-box; }
.agr-inner { max-width: 1680px; margin: 0 auto; }
.agr-heading { margin: 0 auto clamp(8px, .7vw, 12px); max-width: 980px; }
.agr-align-center .agr-heading { text-align: center; }
.agr-align-left .agr-heading { text-align: left; margin-left: 0; }
.agr-heading h2 { margin: 0; color: var(--agr-text); font-family: var(--agr-title-font, Arial, Helvetica, sans-serif) !important; font-size: var(--agr-title-size, 36px) !important; line-height: 1.08; font-weight: var(--agr-title-weight, 700) !important; letter-spacing: -.035em; }
.agr-heading p { margin: 4px 0 0; color: var(--agr-muted); font-family: var(--agr-subtitle-font, Arial, Helvetica, sans-serif) !important; font-size: var(--agr-subtitle-size, 16px) !important; font-weight: var(--agr-subtitle-weight, 400) !important; line-height: 1.35; }

/* Fixed trust/rating rail on desktop */
.agr-content-grid {
    display: grid;
    grid-template-columns: minmax(235px, 285px) minmax(0, 1fr);
    gap: clamp(16px, 1.8vw, 28px);
    align-items: stretch;
}
.agr-trust-panel {
    min-width: 0;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255,255,255,.68);
    border: 1px solid var(--agr-border);
    border-radius: calc(var(--agr-radius) - 7px);
    box-shadow: 0 12px 30px rgba(88,25,43,.055);
    backdrop-filter: blur(7px);
}
.agr-google-reviews-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}
.agr-google-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 8px 20px rgba(0,0,0,.07);
}
.agr-google-g > span {
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
    background-image: conic-gradient(from -35deg, #4285f4 0 29%, #34a853 29% 47%, #fbbc05 47% 67%, #ea4335 67% 83%, #4285f4 83% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.agr-google-reviews-copy { display: flex; flex-direction: column; line-height: 1.04; color: #3c4043; }
.agr-google-reviews-copy strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.agr-google-reviews-copy > span { margin-top: 1px; font-size: 11px; color: var(--agr-muted); }
.agr-maps-brand-attribution { margin-top: 3px; color: #5e5e5e !important; font-size: 11px; line-height: 1.1; font-weight: 400; text-decoration: none !important; }
.agr-maps-brand-attribution:hover { text-decoration: underline !important; }

.agr-trust-score { display: flex; flex-direction: column; align-items: center; text-align: center; }
.agr-business-name { margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--agr-muted); }
.agr-score { font-size: clamp(30px, 2.1vw, 36px); line-height: 1; color: var(--agr-text); letter-spacing: -.04em; }
.agr-stars { position: relative; display: inline-block; margin-top: 4px; font-size: 18px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.agr-stars-empty { color: #e4d8da; }
.agr-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--agr-stars); white-space: nowrap; }
.agr-total { margin-top: 4px; color: var(--agr-muted); font-size: 11px; }

.agr-summary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
    margin-top: 8px;
}
.agr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.agr-btn:hover { transform: translateY(-1px); }
.agr-btn-primary { background: var(--agr-accent); color: #fff !important; box-shadow: 0 8px 22px rgba(89,0,25,.13); }
.agr-btn-secondary { background: #fff; color: var(--agr-accent) !important; border: 1px solid var(--agr-border); }

.agr-reviews-area { min-width: 0; display: flex; align-items: stretch; }
.agr-carousel-wrap { position: relative; width: 100%; min-width: 0; }
.agr-carousel { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 18px; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.agr-carousel::-webkit-scrollbar { display: none; }
.agr-card { flex: 0 0 calc((100% - (var(--agr-per-view) - 1) * 18px) / var(--agr-per-view)) !important; min-width: 0; min-height: 220px; display: flex; flex-direction: column; scroll-snap-align: start; padding: 20px; background: var(--agr-card); border: 1px solid var(--agr-border); border-radius: calc(var(--agr-radius) - 6px); box-shadow: 0 12px 30px rgba(88,25,43,.06); }
.agr-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.agr-author { display: flex; align-items: center; gap: 11px; min-width: 0; }
.agr-avatar-link { flex: 0 0 auto; }
.agr-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--agr-border); }
.agr-avatar-fallback { display: flex; align-items: center; justify-content: center; background: #fde7ec; color: var(--agr-accent); font-size: 17px; }
.agr-author-text { display: flex; flex-direction: column; min-width: 0; }
.agr-author-name { display: block; max-width: 190px; color: var(--agr-text) !important; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.agr-time { margin-top: 3px; color: var(--agr-muted); font-size: 12px; }
.agr-review-stars { flex: 0 0 auto; white-space: nowrap; font-size: 14px; letter-spacing: 1px; color: #e3d7d9; }
.agr-review-stars .is-on { color: var(--agr-stars); }
.agr-review-text {
    position: relative;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--agr-lines);
    overflow: hidden;
    color: var(--agr-text);
    font-size: 15px;
    line-height: 1.58;
}
.agr-review-text.is-expanded { display: block; -webkit-line-clamp: initial; overflow: visible; }
.agr-read-more { align-self: flex-start; margin: 10px 0 0; padding: 0; border: 0; background: transparent; color: var(--agr-accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.agr-read-more:hover { text-decoration: underline; }

.agr-arrow { position: absolute; top: 50%; z-index: 4; width: 46px; height: 46px; margin-top: -23px; display: none; align-items: center; justify-content: center; border: 1px solid var(--agr-border); border-radius: 50%; background: rgba(255,255,255,.96); color: var(--agr-accent); font-size: 34px; line-height: 1; box-shadow: 0 10px 24px rgba(80,20,38,.12); cursor: pointer; transition: transform .2s ease, opacity .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.agr-arrow:hover:not([disabled]) { transform: scale(1.08); background: var(--agr-accent); color: #fff; border-color: var(--agr-accent); box-shadow: 0 13px 28px rgba(89,0,25,.28); }
.agr-prev { left: -18px; }
.agr-next { right: -18px; }
.agr-widget.agr-can-scroll .agr-arrow { display: flex; }
.agr-arrow[disabled] { opacity: .35; cursor: default; }

.agr-footer { margin-top: 5px; display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; color: var(--agr-muted); font-size: 11px; line-height: 1.45; }
.agr-notice { flex: 1 1 520px; margin: 0; }
.agr-provider-attributions a { color: var(--agr-muted) !important; font-weight: 700; text-decoration: none !important; }
.agr-provider-attributions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }

@media (max-width: 1199px) {
    .agr-content-grid { grid-template-columns: minmax(220px, 255px) minmax(0, 1fr); gap: 24px; }
    .agr-trust-panel { padding: 10px 13px; }
    .agr-card { min-height: 215px; }
}
@media (max-width: 991px) {
    .agr-widget { padding: var(--agr-space-y, 12px) var(--agr-space-x, 40px) !important; }
    .agr-content-grid { grid-template-columns: 1fr; }
    .agr-trust-panel { display: grid; grid-template-columns: auto minmax(180px, .8fr) minmax(260px, 1fr); align-items: center; gap: 18px 26px; }
    .agr-google-reviews-brand { justify-content: flex-start; margin: 0; }
    .agr-trust-score { align-items: flex-start; text-align: left; }
    .agr-summary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
    .agr-card { min-height: 210px; }
}
@media (max-width: 767px) {
    .agr-widget { border-radius: max(14px, calc(var(--agr-radius) - 8px)); padding: var(--agr-space-y, 10px) var(--agr-space-x, 14px) !important; }
    .agr-content-grid { gap: 12px; }
    .agr-trust-panel { display: flex; padding: 14px 14px; }
    .agr-google-reviews-brand { justify-content: center; margin-bottom: 10px; }
    .agr-trust-score { align-items: center; text-align: center; }
    .agr-summary-actions { grid-template-columns: 1fr; margin-top: 12px; }
    .agr-carousel { gap: 12px; }
    .agr-card { flex-basis: calc((100% - (var(--agr-per-view) - 1) * 12px) / var(--agr-per-view)) !important; min-height: 205px; padding: 17px; }
    .agr-arrow { width: 40px; height: 40px; margin-top: -20px; font-size: 30px; }
    .agr-prev { left: -8px; }
    .agr-next { right: -8px; }
    .agr-footer { align-items: flex-start; flex-direction: column; }
}
