.customer-reviews {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.75rem, 4vw, 3.75rem);
  color: #f8fbff;
  background:
    radial-gradient(circle at 9% 24%, rgba(237, 126, 28, .24), transparent 24rem),
    radial-gradient(circle at 88% 80%, rgba(240, 189, 87, .18), transparent 25rem),
    linear-gradient(135deg, #071b2e 0%, #0b2941 52%, #102f48 100%);
}
.customer-reviews::before,
.customer-reviews::after {
  content: "";
  position: absolute;
  width: 19rem;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 189, 87, .2);
  border-radius: 50%;
  pointer-events: none;
}
.customer-reviews::before { inset: -8rem auto auto -6rem; }
.customer-reviews::after { inset: auto -8rem -9rem auto; }
.customer-reviews .container { position: relative; z-index: 1; }
.customer-reviews-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.customer-reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #f5bd56;
  font-size: .86rem;
  font-weight: 900;
}
.customer-reviews-kicker::before {
  content: "";
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #ed7e1c;
  box-shadow: 0 0 0 .35rem rgba(237, 126, 28, .14), 0 0 1.2rem rgba(237, 126, 28, .65);
}
.customer-reviews h2 {
  margin: .55rem 0 .45rem;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}
.customer-reviews-head p {
  margin: 0;
  max-width: 62ch;
  color: #c6d3df;
  font-size: 1rem;
  line-height: 1.9;
}
.customer-reviews-score {
  min-width: 10.5rem;
  padding: 1rem 1.15rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 1rem 2.5rem rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}
.customer-reviews-score strong { display: block; color: #fff; font-size: 2.2rem; line-height: 1; }
.customer-reviews-score span { display: block; margin: .4rem 0 .15rem; color: #f5bd56; letter-spacing: .08em; }
.customer-reviews-score small { color: #b9c8d5; }
.customer-review-invite {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(240, 189, 87, .3);
  border-radius: 1.55rem;
  background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 1.5rem 3rem rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}
.customer-review-invite[hidden] { display: none; }
.customer-review-invite-icon,
.customer-review-avatar,
.customer-review-dialog-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #112a40;
  background: linear-gradient(145deg, #fff5dd, #f5b849 55%, #e87516);
  box-shadow: inset .16rem .16rem .45rem rgba(255,255,255,.75), inset -.2rem -.25rem .5rem rgba(155,73,10,.2), 0 .8rem 1.8rem rgba(237,126,28,.25);
}
.customer-review-invite-icon { width: 3.4rem; height: 3.4rem; border-radius: 1.05rem; font-size: 1.55rem; }
.customer-review-invite strong { display: block; color: #fff; font-size: 1.05rem; }
.customer-review-invite p { margin: .28rem 0 0; color: #c8d5df; line-height: 1.6; }
.customer-review-invite button,
.customer-review-invite a,
.customer-review-submit {
  appearance: none;
  border: 0;
  border-radius: .95rem;
  padding: .85rem 1.1rem;
  color: #10283d;
  background: linear-gradient(135deg, #f8c862, #ed7e1c);
  box-shadow: 0 .7rem 1.5rem rgba(237,126,28,.22);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}
.customer-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.customer-review-card {
  position: relative;
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 88% 5%, rgba(240,189,87,.16), transparent 9rem),
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: inset 0 1px rgba(255,255,255,.11), 0 1.2rem 2.8rem rgba(0,0,0,.17);
  backdrop-filter: blur(14px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.customer-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,189,87,.4);
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 1.5rem 3.2rem rgba(0,0,0,.22);
}
.customer-review-card-head { display: flex; align-items: center; gap: .75rem; }
.customer-review-avatar { width: 2.85rem; height: 2.85rem; border-radius: .9rem; font-weight: 950; }
.customer-review-card-head div { min-width: 0; }
.customer-review-card-head strong { display: block; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.customer-review-card-head small { color: #9fb2c2; }
.customer-review-stars { margin: .9rem 0 .65rem; color: #f8c45b; font-size: 1.08rem; letter-spacing: .08em; }
.customer-review-card p { margin: 0; min-height: 3.2em; color: #d6e0e8; line-height: 1.75; }
.customer-review-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #b9c9d6;
  font-size: .8rem;
}
.customer-review-product b { color: #bdf0d4; font-weight: 900; }
.customer-reviews-empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: #b9c9d6; }
.customer-review-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(240,189,87,.4);
  border-radius: 1.7rem;
  color: #10263a;
  background: #fbfaf7;
  box-shadow: 0 2rem 6rem rgba(0,0,0,.4);
}
.customer-review-dialog::backdrop { background: rgba(2,13,23,.76); backdrop-filter: blur(7px); }
.customer-review-dialog form { padding: 1.35rem; }
.customer-review-dialog-head { display: flex; align-items: center; gap: .9rem; }
.customer-review-dialog-icon { width: 3.6rem; height: 3.6rem; border-radius: 1.05rem; font-size: 1.5rem; }
.customer-review-dialog-head h3 { margin: 0; font-size: 1.45rem; }
.customer-review-dialog-head p { margin: .25rem 0 0; color: #627485; }
.customer-review-close { margin-inline-start: auto; width: 2.4rem; height: 2.4rem; border: 0; border-radius: .8rem; color: #10263a; background: #edf1f4; font-size: 1.2rem; cursor: pointer; }
.customer-review-order { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid #e6d9c5; border-radius: 1rem; background: #fff7ea; }
.customer-review-order strong { display: block; }
.customer-review-order small { color: #6d7a87; }
.customer-review-rating { margin: 1.2rem 0; }
.customer-review-rating-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.customer-review-rating-head span { font-weight: 950; }
.customer-review-rating-head b { color: #c66b08; font-size: .88rem; }
.customer-review-star-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; direction: ltr; }
.customer-review-star-row button { min-height: 3.6rem; border: 1px solid #e2e7eb; border-radius: 1rem; color: #a9b2b9; background: #fff; font-size: 1.8rem; cursor: pointer; transition: .18s ease; }
.customer-review-star-row button.is-active { color: #f39a20; border-color: #f2bd65; background: #fff7e8; transform: translateY(-2px); }
.customer-review-phrases { margin: 0 0 1.1rem; padding: 0; border: 0; }
.customer-review-phrases legend { margin-bottom: .6rem; font-weight: 950; }
.customer-review-phrases > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.customer-review-phrases button { border: 1px solid #d9e2e8; border-radius: 999px; padding: .55rem .8rem; color: #294256; background: #fff; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; transition: .18s ease; }
.customer-review-phrases button:hover,
.customer-review-phrases button.is-selected { border-color: #efb64d; color: #8c4c08; background: #fff4df; }
.customer-review-dialog label { display: block; font-weight: 900; }
.customer-review-dialog textarea { width: 100%; min-height: 7rem; margin-top: .5rem; resize: vertical; border: 1px solid #d9e0e5; border-radius: 1rem; padding: .85rem; font: inherit; line-height: 1.7; }
.customer-review-dialog label small { display: block; margin-top: .4rem; color: #748392; font-weight: 600; }
.customer-review-dialog-actions { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.customer-review-submit:disabled { opacity: .55; cursor: wait; }
.customer-review-status { color: #647483; font-size: .85rem; }
.customer-review-status.is-error { color: #b3362d; }
.customer-review-status.is-success { color: #087c52; font-weight: 800; }
@media (max-width: 900px) {
  .customer-reviews-head { grid-template-columns: 1fr; align-items: stretch; }
  .customer-reviews-score { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; min-width: 0; text-align: start; }
  .customer-reviews-score span { margin: 0; }
  .customer-review-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .customer-reviews { padding: 3.3rem 0 2.6rem; }
  .customer-reviews-head p { font-size: .94rem; }
  .customer-review-invite { grid-template-columns: auto 1fr; }
  .customer-review-invite button,
  .customer-review-invite a { grid-column: 1 / -1; width: 100%; text-align: center; }
  .customer-review-grid { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .15rem 0 .7rem; scrollbar-width: thin; }
  .customer-review-card { flex: 0 0 84%; scroll-snap-align: start; }
  .customer-review-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); border-radius: 1.25rem; }
  .customer-review-dialog form { padding: 1rem; }
  .customer-review-rating-head { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .customer-review-star-row button { min-height: 3.35rem; padding: 0; font-size: 1.65rem; }
  .customer-review-phrases > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .customer-review-phrases button { padding-inline: .55rem; }
  .customer-review-dialog-actions { align-items: stretch; flex-direction: column; }
  .customer-review-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-review-card,
  .customer-review-star-row button { transition: none; }
  .customer-review-card:hover,
  .customer-review-star-row button.is-active { transform: none; }
}
