/* Customer Reviews — dark section, one white card (homepage only). */

html body .customer-reviews#customerReviews {
  --cr-yellow: #ffc800;
  --cr-ink: #141414;
  --cr-muted: #667085;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 32px 0 36px;
  background: #08090a;
  color: #fff;
  overflow: hidden;
}

.customer-reviews__bg {
  display: none;
}

.customer-reviews__inner {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
}

.customer-reviews__head {
  text-align: center;
  margin: 0 0 18px;
}

.customer-reviews__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

html[dir="rtl"] .customer-reviews__title-row {
  flex-direction: row-reverse;
}

.customer-reviews__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
}

.customer-reviews__icon svg {
  width: 54px;
  height: 54px;
  display: block;
}

.customer-reviews__title {
  margin: 0;
  font-size: clamp(1.28rem, 4.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  color: #fff;
}

.customer-reviews__title em,
.customer-reviews__title span {
  font-style: normal;
  color: #fff;
}

.customer-reviews__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 0;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.customer-reviews__sub::before,
.customer-reviews__sub::after {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--cr-yellow);
}

.customer-reviews__empty-card,
.customer-review-card {
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 18px;
  border: 2px solid var(--cr-yellow);
  border-radius: 22px;
  background: #fff;
  color: var(--cr-ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.customer-reviews__empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.customer-reviews__coming-soon {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--cr-ink);
}

.customer-reviews__empty-msg {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cr-muted);
}

.customer-reviews__carousel {
  display: grid;
  gap: 14px;
  margin: 0;
}

.customer-reviews__list {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 2px 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.customer-reviews__list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.customer-reviews__list::-webkit-scrollbar { display: none; }

.customer-reviews__slide {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
}

.customer-review-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.customer-review-card__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--cr-yellow);
  color: var(--cr-ink);
  background: #fff;
}

.customer-review-card__avatar svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 9.5rem;
  min-width: 9.5rem;
}

.customer-review-card__meta strong {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cr-ink);
}

.customer-review-card__meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--cr-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.customer-review-card__meta time svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1.5px solid var(--cr-yellow);
  border-radius: 999px;
  background: #fff;
  color: var(--cr-ink);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.customer-review-card__verified svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-review-card__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6e8ec;
}

.customer-review-card__rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cr-stars {
  display: inline-flex;
  gap: 3px;
  color: #e4e6ea;
  font-size: 1.15rem;
  line-height: 1;
}

.cr-star.is-on { color: var(--cr-yellow); }

.customer-review-card__quote {
  color: #d5d8de;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.7;
}

.customer-review-card__text {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--cr-ink);
  word-break: break-word;
}

.customer-reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.customer-reviews__nav[hidden] { display: none !important; }

.customer-reviews__arrow {
  appearance: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #16181b;
  color: #fff;
  cursor: pointer;
}

html[dir="rtl"] .customer-reviews__arrow svg { transform: scaleX(-1); }

.customer-reviews__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-reviews__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.customer-reviews__dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5c6168;
  cursor: pointer;
}

.customer-reviews__dot.is-active { background: var(--cr-yellow); }

.customer-reviews__actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.customer-reviews__share {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cr-yellow);
  color: var(--cr-ink);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 200, 0, 0.22);
}

.customer-reviews__share svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-reviews__share:disabled,
.customer-reviews__share[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.customer-reviews__share.is-active:active { filter: brightness(0.96); }

body.cr-modal-open { overflow: hidden; }

.cr-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 16px;
}

.cr-modal[hidden] { display: none !important; }

.cr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.cr-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121416;
  color: #f4f6f7;
}

.cr-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cr-modal__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.cr-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cr-modal__hint {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: rgba(234, 242, 243, 0.68);
  line-height: 1.4;
}

.cr-form { display: grid; gap: 10px; }
.cr-form__field { display: grid; gap: 6px; }

.cr-form__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(234, 242, 243, 0.85);
}

.cr-form input,
.cr-form select,
.cr-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0b0c;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

.cr-form__error {
  margin: 0;
  color: #ff8a8a;
  font-size: 0.82rem;
}

.cr-form__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.cr-form__cancel,
.cr-form__submit {
  appearance: none;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cr-form__cancel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
}

.cr-form__submit {
  border: 0;
  background: #ffc800;
  color: #111;
}

.cr-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  html body .customer-reviews#customerReviews { padding: 26px 0 30px; }
  .customer-reviews__icon,
  .customer-reviews__icon svg { width: 42px; height: 42px; }
  .customer-reviews__title { font-size: 1.2rem; }
  .customer-reviews__sub { font-size: 0.82rem; }
  .customer-reviews__sub::before,
  .customer-reviews__sub::after { flex-basis: 18px; }
  .customer-review-card { padding: 14px 12px 16px; }
  .customer-review-card__avatar { width: 40px; height: 40px; }
  .customer-review-card__verified { font-size: 0.66rem; padding: 4px 7px; }
}
