/* =========================================
   STA GOOGLE REVIEWS WIDGET
========================================= */

.sta-google-reviews{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9990;
  width:min(340px, calc(100vw - 24px));
}

.sta-google-reviews__card{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 18px 16px;
  border:1px solid rgba(31,42,32,.10);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 16px 36px rgba(0,0,0,.16);
}

.sta-google-reviews__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.sta-google-reviews__brand{
  display:grid;
  gap:4px;
}

.sta-google-reviews__title{
  margin:0;
  color:#1F2A20;
  font-size:16px;
  font-weight:700;
  line-height:1.2;
}

.sta-google-reviews__subtitle{
  margin:0;
  color:#6A736B;
  font-size:13px;
  line-height:1.5;
}

.sta-google-reviews__rating{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.sta-google-reviews__score{
  color:#1F2A20;
  font-size:28px;
  font-weight:700;
  line-height:1;
}

.sta-google-reviews__stars{
  color:#C3A890;
  font-size:16px;
  letter-spacing:.08em;
  line-height:1;
}

.sta-google-reviews__count{
  color:#6A736B;
  font-size:13px;
  line-height:1.4;
}

.sta-google-reviews__text{
  margin:0;
  color:#3B463D;
  font-size:14px;
  line-height:1.7;
}

.sta-google-reviews__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.sta-google-reviews__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:#1F2A20;
  color:#E8E3D5;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  line-height:1;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.sta-google-reviews__btn:hover{
  background:#2D3A2F;
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.12);
}

.sta-google-reviews__btn--light{
  background:#F7F4ED;
  color:#1F2A20;
  border:1px solid rgba(31,42,32,.10);
}

.sta-google-reviews__btn--light:hover{
  background:#EDE5D7;
}

@media (max-width: 767px){
  .sta-google-reviews{
    right:10px;
    bottom:10px;
    width:min(320px, calc(100vw - 20px));
  }

  .sta-google-reviews__card{
    border-radius:20px;
    padding:16px;
  }
}

/* =========================================
   SCHOOL GOOGLE REVIEWS MODAL
========================================= */

.sta-school-google-reviews__banner{
  position:fixed;
  left:50%;
  bottom:16px;
  z-index:2147483646;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:min(260px, calc(100vw - 28px));
  min-height:50px;
  padding:7px 10px;
  border:1px solid rgba(31,42,32,.10);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  transform:translateX(-50%);
  cursor:pointer;
  text-align:center;
  transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.sta-school-google-reviews__banner:focus-visible{
  outline:2px solid #4285f4;
  outline-offset:2px;
}

.sta-school-google-reviews__banner:hover,
.sta-school-google-reviews__banner:focus-visible{
  transform:translateX(-50%) scale(1.02);
  box-shadow:0 12px 32px rgba(0,0,0,.2);
}

.sta-school-google-reviews__logo{
  flex:0 0 auto;
  width:22px;
  height:22px;
}

.sta-school-google-reviews__banner-text{
  display:grid;
  gap:2px;
  color:#111;
  font-family:var(--sta-font-sans);
  justify-items:center;
  font-size:12px;
  font-weight:500;
  line-height:1.1;
}

.sta-school-google-reviews__banner-text strong{
  font-weight:700;
}

.sta-school-google-reviews__overlay{
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.45);
}

.sta-school-google-reviews__overlay[hidden]{
  display:none !important;
}

.sta-school-google-reviews__modal{
  position:relative;
  width:min(520px, 92vw);
  max-height:80vh;
  overflow:auto;
  padding:22px 20px 16px;
  border-radius:18px;
  background:#fff;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  font-family:var(--sta-font-sans);
}

.sta-school-google-reviews__close{
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  border:0;
  border-radius:10px;
  background:#f2f2f2;
  color:#111;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

.sta-school-google-reviews__title{
  margin:0 0 6px;
  color:#111;
  font-size:18px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
}

.sta-school-google-reviews__subtitle{
  margin:0 0 14px;
  color:#666;
  font-size:14px;
  line-height:1.55;
  text-align:center;
}

.sta-school-google-reviews__list{
  display:grid;
  gap:12px;
}

.sta-school-google-reviews__review-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid #eee;
  border-radius:12px;
  background:#fff;
}

.sta-school-google-reviews__review-link{
  color:#111;
  font-size:15px;
  font-weight:600;
  line-height:1.35;
  text-decoration:none;
}

.sta-school-google-reviews__review-link:hover,
.sta-school-google-reviews__review-link:focus-visible{
  text-decoration:underline;
}

.sta-school-google-reviews__meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.sta-school-google-reviews__stars{
  position:relative;
  display:inline-block;
  color:#ddd;
  font-size:16px;
  line-height:1;
}

.sta-school-google-reviews__stars::before{
  content:"★★★★★";
  letter-spacing:1px;
}

.sta-school-google-reviews__stars::after{
  content:"★★★★★";
  position:absolute;
  left:0;
  top:0;
  width:calc(var(--sta-school-google-reviews-rating) / 5 * 100%);
  overflow:hidden;
  color:#fbbc05;
  letter-spacing:1px;
  white-space:nowrap;
}

.sta-school-google-reviews__score{
  color:#111;
  font-size:15px;
  font-weight:700;
  line-height:1;
}

.sta-school-google-reviews__count{
  color:#666;
  font-size:14px;
  line-height:1.3;
}

.sta-school-google-reviews__brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:16px;
  color:#666;
  font-size:13px;
  line-height:1.3;
  opacity:.78;
}

.sta-school-google-reviews__brand-logo{
  width:18px;
  height:18px;
}

.sta-school-google-reviews--no-scroll{
  overflow:hidden !important;
  overscroll-behavior:contain;
}

@media (max-width: 600px){
  .sta-school-google-reviews__overlay{
    padding:12px;
  }

  .sta-school-google-reviews__review-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .sta-school-google-reviews__meta{
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width: 480px){
  .sta-school-google-reviews__banner{
    bottom:12px;
    width:min(244px, calc(100vw - 24px));
    min-height:48px;
    padding:7px 9px;
    border-radius:14px;
  }

  .sta-school-google-reviews__stars{
    font-size:15px;
  }
}
