.review {
  background: #fff;
  box-sizing: border-box;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
  padding: 26px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.review:before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 1;
  color: #c00;
  opacity: .08;
}

.review__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Google only ever serves reviewer photos at 36x36 — this is as large as
   they can go before the upscale starts showing. */
.review__avatar img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #f0d060;
}

.review__avatar--lg img {
  width: 44px;
  height: 44px;
}

.review__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.review__author {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  background: #ffe9a3;
  border-radius: 8px;
  padding: 3px 10px 3px 8px;
}

.review__stars {
  display: flex;
  gap: 1px;
  font-size: 13px;
  line-height: 1;
}

.review__star {
  color: rgba(0, 0, 0, .18);
}

.review__star.is-filled {
  color: #d99400;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}

.review__rating-value {
  font-size: 12px;
  font-weight: 800;
  color: #8a5c00;
}

.review__text {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

.review__photos {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.review__photos img {
  flex: 1 1 0;
  min-width: 0;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.review-dialog__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 28px;
}

.review-dialog__photos img {
  flex: 1 1 200px;
  height: 240px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.review__more {
  display: block;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  color: #c00;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

.review__more:hover {
  color: #900;
}

/* Native <dialog> defaults to position:fixed, centered in the viewport via
   UA-stylesheet auto margins — do NOT override position here, that's what
   made the modal render up near the document's top instead of centered on
   screen regardless of scroll position.

   display:none until [open]: a plain class selector can outrank the UA
   stylesheet's dialog:not([open]) rule depending on what else the page
   loads (confirmed happening on .popup-plus-dialog — same pattern, fixed
   the same way here defensively even though this one tested fine). */
.review-dialog {
  display: none;
}

.review-dialog[open] {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: min(60vh, calc(100% - 64px));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  color: #111;
  text-align: left;
}

.review-dialog::backdrop {
  background: rgba(20, 10, 10, .6);
}

.review-dialog__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  background: #c00;
  padding: 28px 56px 28px 28px;
  position: relative;
}

.review-dialog__body {
  overflow-y: auto;
  min-height: 0;
}

.review-dialog__header:before {
  content: "\201C";
  position: absolute;
  bottom: -6px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: #fff;
  opacity: .12;
}

.review-dialog__header .review__author,
.review-dialog__header .review-dialog__author {
  color: #fff;
}

.review-dialog__author {
  margin: 0 0 6px;
  font-size: 19px;
}

.review-dialog__header .review__rating {
  background: rgba(255, 255, 255, .18);
}

.review-dialog__header .review__star {
  color: rgba(255, 255, 255, .35);
}

.review-dialog__header .review__star.is-filled {
  color: #ffcc00;
  text-shadow: none;
}

.review-dialog__header .review__rating-value {
  color: #fff;
}

.review-dialog__text {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  padding: 24px 28px 28px;
}

.review-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.review-dialog-close:hover {
  background: rgba(255, 255, 255, .3);
}

/* Overrides the legacy #block-views-reviews-block .slick-slide padding
   (style.css/lg.css), which reserved a big bottom gap for the old
   floating-avatar design; the avatar now sits inline in the card header. */
#block-views-reviews-block .review-sections .slick-slide {
  padding: 0 12px 30px;
  display: flex;
}

/* carousel.css's .slick-track is a flex row with the default
   align-items: stretch, which forces every slide in a row to the height of
   its tallest sibling — fine for uniform cards, but a review with photos is
   much taller than a plain-text one, leaving a big empty gap under the
   shorter card. Let review cards size to their own content instead. */
#block-views-reviews-block .review-sections .slick-track {
  align-items: flex-start;
}

.review-sections .views-row {
  display: flex;
  width: 100%;
}

/* Tabs with too few reviews to fill a carousel page (<= slidesToShow) never
   get built by Drupal.lockCarousel (see carousel.js's early-return guard),
   so they keep their plain child markup — lay those out as a wrapping row
   instead of the default stacked block flow. */
.review-sections:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.review-sections:not(.slick-initialized) .views-row {
  flex: 1 1 320px;
}

.review-tabs__nav {
  display: flex;
  gap: 12px;
  margin: 0 0 36px;
  padding: 4px 4px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.review-tabs__nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .review-tabs__nav {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding-bottom: 0;
  }
}

.review-tabs__tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  color: #333;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .02em;
  padding: 8px 22px 8px 8px;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.review-tabs__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ffe9a3;
  color: #8a0000;
  transition: background-color .18s ease, color .18s ease;
}

.review-tabs__tab-icon svg {
  width: 17px;
  height: 17px;
}

.review-tabs__tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.review-tabs__tab.is-active {
  background: #c00;
  color: #fff;
  box-shadow: 0 8px 22px rgba(204, 0, 0, .35);
}

.review-tabs__tab.is-active .review-tabs__tab-icon {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.review-tabs__panel {
  display: none;
}

.review-tabs__panel.is-active {
  display: block;
}
