/* =============================================================
   Shared editorial testimonials layout (Cloffy voices template)
   Theme colors stay in each brand stylesheet.
   ============================================================= */

.voices-editorial .container {
  position: relative;
  z-index: 1;
}

.voices-editorial__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 24px;
}

.voices-editorial__head .heading {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 12px;
}

.voices-editorial__head > p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 auto;
}

.voices-editorial__carousel {
  padding-top: 8px;
}

.voices-editorial .testimonial .info-part {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px !important;
  border-radius: 16px !important;
  border-top: none !important;
  overflow: visible;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.voices-editorial .testimonial .info-part::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--voices-accent-a, var(--brown)),
    var(--voices-accent-b, var(--brown-mid)),
    var(--voices-accent-a, var(--brown))
  );
}

.voices-editorial .testimonial .info-part::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    var(--voices-accent-a, var(--brown)),
    var(--voices-accent-b, var(--brown-mid)),
    var(--voices-accent-a, var(--brown))
  );
}

.voices-editorial__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.voices-editorial__quote {
  display: block !important;
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.voices-editorial .testimonial .info-part .info-text {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  margin: 0 0 20px;
  padding-left: 2px;
  text-align: left;
}

.voices-editorial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.voices-editorial__avatar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
}

.voices-editorial__author .name {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.voices-editorial .testimonial .info-part .name h3 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.voices-editorial .testimonial .info-part .name p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.testimonial-stack__card .voices-editorial__author,
.testimonial-stack__card .voices-editorial__avatar {
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .voices-editorial__head {
    margin-bottom: 32px;
  }

  .voices-editorial .testimonial .info-part .info-text {
    font-size: 14px;
  }
}

/* ---- Brand themes (Cloffy card chrome, page palette) ---- */

.page-cloffy .cloffy-voices.voices-editorial .voices-editorial__head .heading {
  color: var(--cloffy-brown) !important;
}

.page-cloffy .cloffy-voices.voices-editorial .voices-editorial__head > p {
  color: var(--cloffy-brown-soft);
}

.page-cloffy .cloffy-voices.voices-editorial .testimonial .info-part {
  --voices-accent-a: var(--cloffy-brown);
  --voices-accent-b: var(--cloffy-warm-deep);
  background: linear-gradient(180deg, #fffdfb 0%, #faf6f1 100%) !important;
  border: 1px solid rgba(230, 197, 170, 0.35) !important;
  border-left: none !important;
  box-shadow: 0 12px 32px var(--cloffy-shadow) !important;
}

.page-cloffy .cloffy-voices.voices-editorial .testimonial .info-part:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px var(--cloffy-shadow-lg) !important;
  border-color: rgba(230, 197, 170, 0.55) !important;
}

.page-cloffy .cloffy-voices.voices-editorial .testimonial .info-part,
.page-cloffy .cloffy-voices.voices-editorial .testimonial .info-part .info-text {
  color: #5c4a44 !important;
}

.page-cloffy .cloffy-voices.voices-editorial .testimonial .info-part .name h3 {
  color: var(--cloffy-brown) !important;
}

.page-cloffy .cloffy-voices.voices-editorial .testimonial .info-part .name p {
  color: var(--cloffy-brown-soft) !important;
}

.page-cloffy .cloffy-voices.voices-editorial .voices-editorial__quote {
  color: rgba(92, 52, 40, 0.12);
}

.page-cloffy .cloffy-voices.voices-editorial .voices-editorial__author {
  border-top: 1px solid rgba(92, 52, 40, 0.08);
}

.page-cloffy .cloffy-voices.voices-editorial .voices-editorial__avatar {
  background: linear-gradient(135deg, var(--cloffy-brown) 0%, var(--cloffy-brown-mid) 100%);
  box-shadow: 0 4px 12px rgba(92, 52, 40, 0.25);
  border: 2px solid rgba(230, 197, 170, 0.5);
}

/* Dhatri */
.page-dhatri .dhatri-voices.voices-editorial .voices-editorial__head .heading {
  color: var(--dhatri-brown) !important;
}

.page-dhatri .dhatri-voices.voices-editorial .voices-editorial__head > p {
  color: var(--dhatri-brown-soft);
}

.page-dhatri .dhatri-voices.voices-editorial .testimonial .info-part {
  --voices-accent-a: var(--dhatri-brown);
  --voices-accent-b: var(--dhatri-warm-deep);
  background: linear-gradient(180deg, #fffdfb 0%, #faf6f1 100%) !important;
  border: 1px solid rgba(200, 230, 201, 0.55) !important;
  border-left: none !important;
  box-shadow: 0 12px 32px var(--dhatri-shadow) !important;
}

.page-dhatri .dhatri-voices.voices-editorial .testimonial .info-part:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px var(--dhatri-shadow-lg) !important;
  border-color: rgba(168, 213, 168, 0.65) !important;
}

.page-dhatri .dhatri-voices.voices-editorial .testimonial .info-part,
.page-dhatri .dhatri-voices.voices-editorial .testimonial .info-part .info-text {
  color: #5c4a44 !important;
}

.page-dhatri .dhatri-voices.voices-editorial .testimonial .info-part .name h3 {
  color: var(--dhatri-brown) !important;
}

.page-dhatri .dhatri-voices.voices-editorial .testimonial .info-part .name p {
  color: var(--dhatri-brown-soft) !important;
}

.page-dhatri .dhatri-voices.voices-editorial .voices-editorial__quote {
  color: rgba(57, 109, 27, 0.12);
}

.page-dhatri .dhatri-voices.voices-editorial .voices-editorial__author {
  border-top: 1px solid rgba(57, 109, 27, 0.08);
}

.page-dhatri .dhatri-voices.voices-editorial .voices-editorial__avatar {
  background: linear-gradient(135deg, var(--dhatri-brown) 0%, var(--dhatri-brown-mid) 100%);
  box-shadow: 0 4px 12px rgba(57, 109, 27, 0.25);
  border: 2px solid rgba(200, 230, 201, 0.5);
}

/* Fitlys */
.page-fitlys .fitlys-proof.voices-editorial .voices-editorial__head .heading {
  color: var(--fitlys-green) !important;
}

.page-fitlys .fitlys-proof.voices-editorial .voices-editorial__head > p {
  color: #4a5c48;
}

.page-fitlys .fitlys-proof.voices-editorial .testimonial .info-part {
  --voices-accent-a: var(--fitlys-green);
  --voices-accent-b: var(--fitlys-green-soft);
  background: linear-gradient(180deg, #fffdfb 0%, #f7faf5 100%) !important;
  border: 1px solid rgba(200, 230, 201, 0.55) !important;
  border-left: none !important;
  box-shadow: 0 12px 32px var(--fitlys-shadow) !important;
  transition: box-shadow 0.35s ease;
}

.page-fitlys .fitlys-proof.voices-editorial .testimonial .info-part:hover {
  transform: none !important;
  box-shadow: 0 12px 32px var(--fitlys-shadow) !important;
  border-color: rgba(200, 230, 201, 0.55) !important;
}

.page-fitlys .fitlys-proof.voices-editorial .testimonial .info-part,
.page-fitlys .fitlys-proof.voices-editorial .testimonial .info-part .info-text {
  color: #4a5c48 !important;
}

.page-fitlys .fitlys-proof.voices-editorial .testimonial .info-part .name h3 {
  color: var(--fitlys-green) !important;
}

.page-fitlys .fitlys-proof.voices-editorial .testimonial .info-part .name p {
  color: var(--fitlys-green-soft) !important;
}

.page-fitlys .fitlys-proof.voices-editorial .voices-editorial__quote {
  color: rgba(57, 109, 27, 0.12);
}

.page-fitlys .fitlys-proof.voices-editorial .voices-editorial__author {
  border-top: 1px solid rgba(57, 109, 27, 0.08);
}

.page-fitlys .fitlys-proof.voices-editorial .voices-editorial__avatar {
  background: linear-gradient(135deg, var(--fitlys-green) 0%, var(--fitlys-green-mid) 100%);
  box-shadow: 0 4px 12px rgba(57, 109, 27, 0.25);
  border: 2px solid rgba(200, 230, 201, 0.5);
}

/* Gifting */
.page-gifting .gift-proof.voices-editorial .voices-editorial__head .heading {
  color: var(--gift-brown) !important;
}

.page-gifting .gift-proof.voices-editorial .voices-editorial__head > p {
  color: var(--gift-brown-mid);
}

.page-gifting .gift-proof.voices-editorial .testimonial .info-part {
  --voices-accent-a: var(--gift-brown);
  --voices-accent-b: var(--gift-warm-deep);
  background: linear-gradient(180deg, #fffdfb 0%, #faf6f1 100%) !important;
  border: 1px solid rgba(230, 197, 170, 0.35) !important;
  border-left: none !important;
  box-shadow: 0 12px 32px var(--gift-shadow) !important;
  transition: box-shadow 0.35s ease;
}

.page-gifting .gift-proof.voices-editorial .testimonial .info-part:hover {
  transform: none !important;
  box-shadow: 0 12px 32px var(--gift-shadow) !important;
  border-color: rgba(230, 197, 170, 0.35) !important;
}

.page-gifting .gift-proof.voices-editorial .testimonial .info-part,
.page-gifting .gift-proof.voices-editorial .testimonial .info-part .info-text {
  color: var(--gift-brown-mid) !important;
}

.page-gifting .gift-proof.voices-editorial .testimonial .info-part .name h3,
.page-gifting .gift-proof.voices-editorial .voices-editorial__author .name h3 {
  color: var(--gift-brown) !important;
}

.page-gifting .gift-proof.voices-editorial .testimonial .info-part .name p,
.page-gifting .gift-proof.voices-editorial .voices-editorial__author .name p {
  color: var(--gift-brown-mid) !important;
}

.page-gifting .gift-proof.voices-editorial .voices-editorial__quote {
  color: rgba(92, 52, 40, 0.12);
}

.page-gifting .gift-proof.voices-editorial .voices-editorial__author {
  border-top: 1px solid rgba(92, 52, 40, 0.08);
}

.page-gifting .gift-proof.voices-editorial .voices-editorial__avatar {
  background: linear-gradient(135deg, var(--gift-brown) 0%, var(--gift-brown-mid) 100%);
  box-shadow: 0 4px 12px rgba(92, 52, 40, 0.25);
  border: 2px solid rgba(230, 197, 170, 0.5);
}

/* Chocolates */
.chocolates-voices.voices-editorial {
  padding: 40px 0 96px !important;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(230, 197, 170, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 88% 82%, rgba(157, 120, 104, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, #faf4ee 0%, #f5ebe3 45%, #e6c5aa 100%) !important;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.chocolates-voices.voices-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%235c3428' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.chocolates-voices.voices-editorial::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(92, 52, 40, 0.12), rgba(230, 197, 170, 0.45), rgba(92, 52, 40, 0.12), transparent);
  pointer-events: none;
}

.page-chocolates .chocolates-voices.voices-editorial .voices-editorial__head .heading {
  color: #5c3428 !important;
}

.page-chocolates .chocolates-voices.voices-editorial .voices-editorial__head > p {
  color: #9d7868;
}

.page-chocolates .chocolates-voices.voices-editorial .testimonial .info-part {
  --voices-accent-a: #5c3428;
  --voices-accent-b: #9d7868;
  background: linear-gradient(180deg, #fffdfb 0%, #faf6f1 100%) !important;
  border: 1px solid rgba(230, 197, 170, 0.35) !important;
  border-left: none !important;
  box-shadow: 0 12px 32px rgba(92, 52, 40, 0.12) !important;
}

.page-chocolates .chocolates-voices.voices-editorial .testimonial .info-part:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(92, 52, 40, 0.18) !important;
  border-color: rgba(230, 197, 170, 0.55) !important;
}

.page-chocolates .chocolates-voices.voices-editorial .testimonial .info-part,
.page-chocolates .chocolates-voices.voices-editorial .testimonial .info-part .info-text {
  color: #5c4a44 !important;
}

.page-chocolates .chocolates-voices.voices-editorial .testimonial .info-part .name h3 {
  color: #5c3428 !important;
}

.page-chocolates .chocolates-voices.voices-editorial .testimonial .info-part .name p {
  color: #9d7868 !important;
}

.page-chocolates .chocolates-voices.voices-editorial .voices-editorial__quote {
  color: rgba(92, 52, 40, 0.12);
}

.page-chocolates .chocolates-voices.voices-editorial .voices-editorial__author {
  border-top: 1px solid rgba(92, 52, 40, 0.08);
}

.page-chocolates .chocolates-voices.voices-editorial .voices-editorial__avatar {
  background: linear-gradient(135deg, #5c3428 0%, #7a4a3a 100%);
  box-shadow: 0 4px 12px rgba(92, 52, 40, 0.25);
  border: 2px solid rgba(230, 197, 170, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .voices-editorial .testimonial .info-part:hover {
    transform: none !important;
  }
}
