
/* =========================================
   FAQ SECTION - ORIGINAL STYLES
========================================= */

.faq-section {
  background-color: rgba(var(--color-background));
}

.faq-image {
  width: 100%;
  aspect-ratio: var(--aspect-ratio);
  overflow: hidden;
  border-radius: var(--border-radius, 12px);
}

.faq-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 300ms cubic-bezier(0.25, 0.4, 0.4, 0.95);
}

.faq-image.low {
  height: 250px;
}

.faq-image.high {
  height: 450px;
}

@media (max-width: 959px) {
  .faq-image.low {
    height: 320px;
  }

  .faq-image.high {
    height: 690px;
  }
}

.faq-collapse-panel {
  display: block;
  width: 100%;
  border-block-start: 1px solid rgba(var(--color-text), 0.08);
}

.faq-collapse-panel summary + * {
  overflow: hidden;
}

.faq-collapse-panel summary {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
}

@media (max-width: 959px) {
  .faq-collapse-panel summary {
    padding: 12px 0;
  }
}

.faq-collapse-panel__title {
  display: flex;
  flex: 1;
  align-items: center;
}

.faq-collapse-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.faq-collapse-panel__icon svg {
  color: rgb(var(--color-text));
}

.faq-collapse-panel__fold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(var(--color-text), 0.1);
  border-radius: 50%;
}

.faq-collapse-panel details {
  flex: 1;
}

details .faq-collapse-panel__fold.open {
  display: flex;
}

details[open] .faq-collapse-panel__fold.open {
  display: none;
}

details .faq-collapse-panel__fold.close {
  display: none;
}

details[open] .faq-collapse-panel__fold.close {
  display: flex;
}

.faq-collapse-panel__collapse {
  --animation-expand-duration: 360ms;
  --animation-collapse-duration: 160ms;

  max-height: 0;
  overflow: hidden;
  animation: animation-faq-content-collapse var(--animation-collapse-duration)
    ease-in-out forwards;
}

details[open] .faq-collapse-panel__collapse {
  max-height: none;
  animation: animation-faq-content-expand var(--animation-expand-duration)
    ease-in none;
}

.faq-collapse-panel__content {
  padding: 0 6px;
  padding-block-end: 1px;
  margin-block-end: 20px;
  overflow-x: auto;
  word-break: break-word;
  opacity: 0;
  transition:
    transform var(--animation-collapse-duration) ease-in
      var(--animation-expand-duration),
    opacity var(--animation-expand-duration) ease-in;
  transform: translateY(10px);
}

details[open] .faq-collapse-panel__collapse > .faq-collapse-panel__content {
  opacity: 1;
  transition:
    transform var(--animation-expand-duration) ease-out,
    opacity var(--animation-expand-duration) ease-out 20ms;
  transform: translateY(0);
}

.faq-section[layout] .faq-collapse-panel {
  padding-inline: 20px;
}

.faq-section[layout="column"] .faq-collapse-panel {
  background-color: rgba(var(--container-background-color));
  border-block-start: 0;
  border-radius: 12px;
}

.faq-section[layout="column"] .faq-collapsible-group {
  gap: 20px;
}

@media (max-width: 959px) {
  .faq-section[layout="column"] .faq-collapsible-group {
    gap: 12px;
  }
}

.faq-section[layout="block"] .faq-collapsible-group {
  background-color: rgba(var(--container-background-color));
  border-radius: 12px;
}

.faq-section .block-heading {
  flex-shrink: 0;
}

@keyframes animation-faq-content-expand {
  from {
    max-height: 0;
  }

  to {
    max-height: 100vh;
  }
}

@keyframes animation-faq-content-collapse {
  0% {
    max-height: 100vh;
  }

  100% {
    max-height: 0;
  }
}


/* =========================================
   SPOTLANTERN - CUSTOMER EXPERIENCES
========================================= */

/* Overall testimonial section */

.sl-testimonials-v2 {
  width: 100%;
  padding: 55px 0 65px;
  box-sizing: border-box;
  background-color: #f7f4ed;
}

/* Main content width */

.sl-testimonials-inner {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Heading */

.sl-testimonials-heading {
  text-align: center;
  margin-bottom: 40px;
}

.sl-testimonials-heading h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  color: #123b32;
}

.sl-testimonials-heading span {
  color: #b88b43;
  letter-spacing: 3px;
  font-size: 11px;
}

.sl-testimonials-heading p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #888888;
}

/* Three-column testimonial grid */

.sl-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

/* Individual testimonial cards */

.sl-testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 340px;
  height: 100%;
  padding: 26px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e8e1d6;
  border-radius: 9px;
  color: #24332d;
}

/* Featured dark green cards */

.sl-testimonial-card.sl-featured {
  background: #124d40;
  color: #ffffff;
  border-color: #124d40;
}

/* Customer portrait */

.sl-testimonial-avatar {
  display: block;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

/* Customer name */

.sl-testimonial-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #183c33;
}

.sl-testimonial-card.sl-featured h3 {
  color: #ffffff;
}

/* Business type */

.sl-testimonial-business {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #999999;
}

.sl-featured .sl-testimonial-business {
  color: #d5e2dc;
}

/* Five-star rating */

.sl-testimonial-stars {
  margin: 0 0 16px;
  color: #c69a51;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 2px;
}

/* Testimonial text */

.sl-testimonial-text {
  margin: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  color: #858585;
  overflow-wrap: break-word;
}

.sl-testimonial-card.sl-featured .sl-testimonial-text {
  color: #ffffff;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 959px) {

  .sl-testimonials-v2 {
    padding: 42px 0 48px;
  }

  .sl-testimonials-inner {
    width: calc(100% - 36px);
  }

  .sl-testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .sl-testimonial-card {
    min-height: 330px;
    padding: 24px 18px;
  }

  .sl-testimonial-avatar {
    width: 76px;
    height: 76px;
  }

  .sl-testimonials-heading h2 {
    font-size: 26px;
  }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 640px) {

  .sl-testimonials-v2 {
    padding: 35px 0 40px;
  }

  .sl-testimonials-inner {
    width: calc(100% - 32px);
  }

  .sl-testimonials-heading {
    margin-bottom: 28px;
  }

  .sl-testimonials-heading h2 {
    font-size: 23px;
  }

  .sl-testimonials-heading p {
    font-size: 13px;
  }

  .sl-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sl-testimonial-card {
    min-height: 0;
    height: auto;
    padding: 26px 22px;
  }

  .sl-testimonial-avatar {
    width: 76px;
    height: 76px;
    margin-bottom: 13px;
  }

  .sl-testimonial-card h3 {
    font-size: 16px;
  }

  .sl-testimonial-business {
    font-size: 13px;
  }

  .sl-testimonial-stars {
    font-size: 18px;
  }

  .sl-testimonial-text {
    font-size: 14px;
    line-height: 1.75;
  }
}

/* =========================================
   SPOTLANTERN TESTIMONIAL WIDTH FIX
========================================= */

/* Break out of SHOPLINE's narrow content container */
.sl-testimonials-v2 {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  box-sizing: border-box;
}

/* Expand testimonial content */
.sl-testimonials-inner {
  width: calc(100% - 100px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* Keep three balanced columns */
.sl-testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Tablet */
@media (max-width: 959px) {
  .sl-testimonials-inner {
    width: calc(100% - 48px);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .sl-testimonials-inner {
    width: calc(100% - 32px);
  }

  .sl-testimonials-grid {
    grid-template-columns: 1fr;
  }
}
