/*
 * Google Reviews — block-scoped styles
 *
 * Full-bleed breakout: pulls the section to the viewport edges when it is
 * placed inside a constrained content area (e.g. the No-Title template with
 * contentSize: 720px). When the parent is already full-width the maths
 * resolves to margin-left: 0 so this is safe in all contexts.
 */

body:not(.editor-styles-wrapper) .alignfull.vio-google-reviews {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ── Aggregate heading ───────────────── */
.vio-google-reviews .vio-gr__aggregate-heading {
  margin-bottom: 2px;
}

/* ── Nav row: prev arrow + scrollbar + next arrow ────────────────────────── */
.vio-gr__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 0 8px;
}
.vio-gr__scrollbar {
  position: relative !important;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
}
.vio-gr__scrollbar .swiper-scrollbar-drag {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}
.vio-bg--vio-ink .vio-gr__scrollbar {
  background: rgba(255, 255, 255, 0.18);
}
.vio-bg--vio-ink .vio-gr__scrollbar .swiper-scrollbar-drag {
  background: rgba(255, 255, 255, 0.75);
}
.vio-gr__arrow {
  position: relative;
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vio-gr__arrow:hover {
  opacity: 1;
}
.vio-gr__arrow:focus-visible {
  opacity: 1;
  outline: 2px solid var(--wp--preset--color--vio-ink, #030303);
  outline-offset: 2px;
  border-radius: 50%;
}
/* Override global [class$="__prev/next"] 82px sizing */
body .vio-gr__arrow,
body .vio-gr__arrow svg {
  min-width: auto !important;
  min-height: auto !important;
}
body .vio-gr__arrow {
  width: 44px !important;
  height: 44px !important;
}
body .vio-gr__arrow svg {
  width: 36px !important;
  height: 36px !important;
}
/* Dim at carousel edges instead of hiding */
.vio-gr__arrow.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.vio-gr__arrow[hidden] {
  display: none;
}

.vio-gr__carousel {
  position: relative;
}

/* ── Track overflow — higher specificity (0,3,0) beats global (0,2,0) */
.vio-google-reviews .vio-gr__carousel .vio-gr__track {
  overflow: hidden;
}

/* ── Lotion-background variant: invert aggregate/card contrast ───────────── */
/* On a lotion section the aggregate pill (mtn-greige) and lotion cards create
   near-invisible contrast. Fix: flatten the aggregate pill, give cards the
   mtn-greige background instead so they pop against the lotion section. */
.vio-google-reviews.vio-bg--vio-lotion .vio-gr__aggregate {
  background-color: transparent;
}

.vio-google-reviews.vio-bg--vio-lotion .vio-gr__card {
  background: var(--wp--preset--color--vio-mtn-greige, #E9E3DC);
  border-color: transparent;
}

/* Ensure author name links use the section's ink color regardless of inherited link styles */
.vio-google-reviews .vio-gr__author-name a {
  color: var(--vio-ink, var(--wp--preset--color--vio-ink, #030303));
  text-decoration: none;
}

