/* ═══════════════════════════════════════════════════
   Google Reviews Carousel – carousel.css  v2.0
   ═══════════════════════════════════════════════════ */

/* ── Wrapper ── */
.grc-wrapper { width: 100%; box-sizing: border-box; font-family: inherit; }

/* ── Header row ── */
.grc-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap; gap: 12px;
}
.grc-heading { font-size: 22px; font-weight: 600; margin: 0; color: #1a1a1a; }

/* ════════════════════════════════════════
   ARROW BUTTON BASE
════════════════════════════════════════ */
.grc-nav-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #dddddd;
  background: #ffffff; color: #1a1a1a;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, opacity 0.18s;
  z-index: 2;
}
.grc-nav-btn:hover   { background: #f5f5f5; border-color: #aaaaaa; }
.grc-nav-btn:disabled,
.grc-nav-btn[disabled] { opacity: 0.32; cursor: default; pointer-events: none; }

/* Header arrows – flex row inside .grc-nav */
.grc-nav-header { display: flex; gap: 8px; }

/* ════════════════════════════════════════
   TRACK OUTER – wraps track + side arrows
════════════════════════════════════════ */
.grc-track-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Outside: arrows flank the track, track takes remaining space */
.grc-arrows-outside .grc-track-outer { gap: 10px; }
.grc-arrows-outside .grc-track-wrap  { flex: 1; min-width: 0; }

/* Inside: arrows float over the track edges */
.grc-arrows-inside .grc-track-outer  { gap: 0; }
.grc-arrows-inside .grc-track-wrap   { flex: 1; min-width: 0; }
.grc-arrows-inside .grc-prev,
.grc-arrows-inside .grc-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
}
.grc-arrows-inside .grc-prev { left: 8px; }
.grc-arrows-inside .grc-next { right: 8px; }

/* Header: track-outer is just a plain block (no side arrows) */
.grc-arrows-header .grc-track-outer { display: block; }

/* ════════════════════════════════════════
   TRACK
════════════════════════════════════════ */
.grc-track-wrap { overflow: hidden; width: 100%; }
.grc-track {
  display: flex; gap: 18px;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ════════════════════════════════════════
   CARD
════════════════════════════════════════ */
.grc-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 22px;
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 10px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.grc-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); }

/* Dynamic per-view (JS also controls via inline transform; these set flex-basis) */
.grc-wrapper[data-config*='"perView":1'] .grc-card { flex-basis: 100%; }
.grc-wrapper[data-config*='"perView":2'] .grc-card { flex-basis: calc((100% - 18px) / 2); }
.grc-wrapper[data-config*='"perView":3'] .grc-card { flex-basis: calc((100% - 36px) / 3); }

/* Card top row */
.grc-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px;
}
.grc-reviewer-info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1;
}
.grc-reviewer-name { font-size: 14px; font-weight: 600; color: #1a1a1a; display: block; }
.grc-review-date   { font-size: 12px; color: #888888; display: block; }

/* ════════════════════════════════════════
   CARD ICONS
════════════════════════════════════════ */
.grc-card-icon {
  width: 22px; height: 22px;
  flex-shrink: 0; display: block;
}
.grc-icon-custom {
  width: 22px; height: 22px;
  object-fit: contain; display: block;
}

/* ════════════════════════════════════════
   STARS  – explicit specificity so empty overrides filled
════════════════════════════════════════ */
.grc-stars       { display: flex; gap: 2px; flex-wrap: nowrap; align-items: center; }
.grc-star        { font-size: 18px; line-height: 1; color: #F4B400; display: inline-block; }
.grc-star-empty  { color: #e0e0e0 !important; }

/* ════════════════════════════════════════
   REVIEW TEXT & READ MORE
════════════════════════════════════════ */
.grc-review-text {
  font-size: 13.5px; color: #555555;
  line-height: 1.65; margin: 0; flex: 1;
}
.grc-read-more {
  font-size: 13px; color: #555555;
  background: transparent; border: none; padding: 0;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; text-align: left;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.grc-read-more:hover { color: #1a1a1a; }

/* ════════════════════════════════════════
   DOTS
════════════════════════════════════════ */
.grc-dots {
  display: flex; gap: 7px;
  justify-content: center;
  margin-top: 18px; flex-wrap: wrap;
}
.grc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; background: #cccccc;
  cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.2s, border-radius 0.2s;
}
.grc-dot.active { background: #555555; width: 20px; border-radius: 4px; }

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.grc-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 99999;
  align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.grc-modal-overlay.open { display: flex; }

.grc-modal-box {
  background: #ffffff; border-radius: 14px; padding: 28px;
  max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative; box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  box-sizing: border-box;
}
.grc-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 22px; line-height: 1;
  cursor: pointer; color: #888888; padding: 4px 8px; border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.grc-modal-close:hover { color: #333; background: #f0f0f0; }

.grc-modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.grc-modal-reviewer-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.grc-modal-name  { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.grc-modal-date  { font-size: 12px; color: #888888; }
.grc-modal-icon-slot .grc-card-icon,
.grc-modal-icon-slot .grc-icon-custom { width: 22px; height: 22px; flex-shrink: 0; }

.grc-modal-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.grc-modal-text  { font-size: 14px; color: #555555; line-height: 1.75; white-space: pre-line; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grc-wrapper[data-config*='"perTablet":1'] .grc-card,
  .grc-wrapper[data-config*='"perView":3']   .grc-card { flex-basis: calc((100% - 18px) / 2); }
  .grc-wrapper[data-config*='"perTablet":2'] .grc-card { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 640px) {
  .grc-card { flex-basis: 100% !important; }
  .grc-heading { font-size: 18px; }
  .grc-arrows-outside .grc-nav-btn,
  .grc-arrows-inside  .grc-nav-btn { display: none; }
}
