:root {
  --lm-cr-primary: #7a5740;
  --lm-cr-accent: #c79a5d;
  --lm-cr-cream: #f7f2ec;
  --lm-cr-ink: #1f1c1a;
  --lm-cr-muted: #6f6258;
  --lm-cr-border: #e6dcd1;
  --lm-cr-shadow: 0 12px 30px rgba(31, 28, 26, 0.12);
}

.lm-customer-reviews {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--lm-cr-ink);
  background: transparent;
}

body.lm-header-overlay .lm-customer-reviews {
  margin-top: var(--lm-header-offset, 0px);
}

body.lm-first-block-tight .lm-customer-reviews {
  margin-top: 0;
}

.lm-customer-reviews.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.editor-styles-wrapper .lm-customer-reviews.alignfull,
.block-editor-block-list__layout .lm-customer-reviews.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.lm-cr__header {
  background: transparent;
  color: #2c1810;
}

.lm-cr__header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lm-cr__title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  margin: 0 0 8px;
  color: #2c1810;
}

.lm-cr__subtitle {
  margin: 0;
  font-size: 1rem;
  color: #2c1810;
  opacity: 0.75;
}

.lm-cr__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: #2c1810;
  border: 1px solid var(--lm-cr-accent);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.lm-cr__cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffffff 0%, #f9f5f1 100%);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.lm-cr__body {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr);
  gap: 28px;
  padding: 20px 20px 36px;
}

.lm-cr__panel {
  position: sticky;
  top: 120px;
  align-self: start;
  background: #fff;
  border: 1px solid #ede6de;
  border-radius: 18px;
  padding: 20px;
}

.lm-cr__panel-section + .lm-cr__panel-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--lm-cr-border);
}

.lm-cr__panel-title {
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: #2c1810;
  font-family: "Playfair Display", "Georgia", serif;
  margin: 0 0 16px;
}

.lm-cr__overall {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.lm-cr__overall-score {
  font-size: 3.2rem;
  font-weight: 700;
  color: #b8956a;
}

.lm-cr__overall-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.lm-cr__overall-stars svg {
  width: 18px;
  height: 18px;
  fill: #b8956a;
}

.lm-cr__overall-count {
  font-size: 0.95rem;
  color: #6f6258;
}

.lm-cr__rating-bars {
  display: grid;
  gap: 10px;
}

.lm-cr__rating-row {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 90px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #2c1810;
  cursor: pointer;
  border-radius: 12px;
  padding: 6px 8px;
  transition: background-color 180ms ease;
}

.lm-cr__rating-row:hover {
  background: #f9f5f1;
}

.lm-cr__rating-row.is-active .lm-cr__rating-label,
.lm-cr__rating-row.is-active .lm-cr__rating-count {
  color: #b8956a;
  font-weight: 600;
}

.lm-cr__rating-label {
  font-weight: 600;
}

.lm-cr__rating-bar {
  height: 8px;
  background: #e6e7ea;
  border-radius: 999px;
  overflow: hidden;
  border: 0;
}

.lm-cr__rating-bar-fill {
  display: block;
  height: 100%;
  width: var(--lm-cr-bar);
  background: #b8956a;
}

.lm-cr__filter-group {
  display: grid;
  gap: 10px;
}

.lm-cr__filter {
  border: 1px solid var(--lm-cr-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--lm-cr-ink);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.lm-cr__filter-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lm-cr__filter-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8956a;
}

.lm-cr__filter-icon i {
  font-size: 0.95rem;
}

.lm-cr__filter:hover {
  background: #f9f5f1;
}

.lm-cr__filter.is-active {
  border-color: var(--lm-cr-accent);
  background: rgba(199, 154, 93, 0.12);
  color: var(--lm-cr-primary);
  font-weight: 600;
}

.lm-cr__panel-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.lm-cr__clear {
  width: 100%;
  border: 0;
  background: #e2ded9;
  color: #4b3a31;
  font-weight: 600;
  cursor: pointer;
  display: none;
  padding: 14px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lm-cr__clear.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lm-cr__reviews {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 240px;
}

.lm-cr__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 1.05rem;
  color: #2c1810;
}

.lm-cr__summary-text {
  font-weight: 600;
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
}

.lm-cr__summary-note {
  font-size: 0.9rem;
  color: var(--lm-cr-muted);
}

.lm-cr__list {
  display: grid;
  gap: 18px;
}

.lm-cr__card {
  border: 1px solid var(--lm-cr-border);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lm-cr__card:hover {
  box-shadow: var(--lm-cr-shadow);
  transform: translateY(-2px);
}

.lm-cr__card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.lm-cr__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--lm-cr-accent);
  box-shadow: 0 0 0 4px rgba(199, 154, 93, 0.18);
  flex: 0 0 auto;
}

.lm-cr__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lm-cr__identity {
  flex: 1;
  display: grid;
  gap: 4px;
}

.lm-cr__name {
  font-weight: 600;
}

.lm-cr__verified {
  font-size: 0.8rem;
  color: var(--lm-cr-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lm-cr__rating {
  display: grid;
  gap: 6px;
  text-align: right;
}

.lm-cr__stars {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.lm-cr__stars svg {
  width: 16px;
  height: 16px;
  fill: #d2c2b4;
}

.lm-cr__stars svg.is-filled {
  fill: var(--lm-cr-accent);
}

.lm-cr__rating-value {
  font-size: 0.85rem;
  color: var(--lm-cr-muted);
}

.lm-cr__meta {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--lm-cr-muted);
}

.lm-cr__content {
  margin-top: 12px;
  line-height: 1.6;
}

.lm-cr__media-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lm-cr__media-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f4ede6;
  position: relative;
}

.lm-cr__media-item img,
.lm-cr__media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lm-cr__media-item--video::after {
  content: "Video Review";
  position: absolute;
  inset: auto 12px 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 999px;
}

.lm-cr__card-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lm-cr__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lm-cr__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(199, 154, 93, 0.15);
  color: var(--lm-cr-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.lm-cr__helpful {
  border: 1px solid var(--lm-cr-border);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  color: var(--lm-cr-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.lm-cr__helpful.is-active {
  border-color: var(--lm-cr-accent);
  color: var(--lm-cr-primary);
}

.lm-cr__empty {
  text-align: center;
  padding: 30px 20px;
  border: 1px dashed var(--lm-cr-border);
  border-radius: 16px;
  display: none;
  position: absolute;
  inset: 0;
  place-content: center;
}

.lm-cr__empty.is-visible {
  display: grid;
  gap: 10px;
}

.lm-cr__clear-inline {
  border: 0;
  background: var(--lm-cr-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.lm-cr__load-more {
  border: 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--lm-cr-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lm-cr__load-more.is-hidden {
  display: none;
}

.lm-cr__load-meta {
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.9;
}

.lm-cr__all-loaded {
  text-align: center;
  color: var(--lm-cr-muted);
  display: none;
}

.lm-cr__all-loaded.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .lm-cr__body {
    grid-template-columns: 1fr;
  }

  .lm-cr__panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .lm-cr__header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lm-cr__media-grid {
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .lm-cr__media-item {
    scroll-snap-align: start;
  }
}
