.dps-review-drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(2px);
}

.dps-review-trigger--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 6px 0 10px;
  padding: 7px 13px;
  border: 1px solid rgba(220, 0, 24, 0.28);
  border-radius: 4px;
  color: #7f1d1d;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.dps-review-trigger--empty:hover,
.dps-review-trigger--empty:focus-visible {
  border-color: #dc0018;
  color: #dc0018;
  outline: none;
}

.dps-review-drawer {
  --dps-review-red: var(--kf-brand-red, #dc0018);
  --dps-review-text: var(--dps-text, #1f2937);
  --dps-review-muted: var(--dps-muted, #64748b);
  --dps-review-border: rgba(15, 23, 42, 0.14);
  --dps-review-soft: #f8fafc;
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 2210;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(520px, calc(100vw - 32px));
  max-width: 100%;
  color: var(--dps-review-text);
  background: #fff;
  box-shadow: -24px 0 50px rgba(15, 23, 42, 0.22);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.dps-review-drawer.is-open {
  transform: translateX(0);
}

.dps-review-drawer__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--dps-review-border);
}

.dps-review-drawer__title {
  margin: 0;
  color: #7f1d1d;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.dps-review-drawer__summary {
  margin: 6px 0 0;
  color: var(--dps-review-muted);
}

.dps-review-drawer__close {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--dps-review-border);
  border-radius: 4px;
  background: #fff;
  color: var(--dps-review-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dps-review-drawer__close:hover,
.dps-review-drawer__close:focus-visible {
  border-color: var(--dps-review-red);
  color: var(--dps-review-red);
  outline: none;
}

.dps-review-drawer__body {
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 24px;
}

.dps-review-drawer__overview {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--dps-review-border);
  border-radius: 4px;
  background: linear-gradient(135deg, #fff, #fff8f8);
}

.dps-review-drawer__score {
  display: grid;
  gap: 4px;
}

.dps-review-drawer__score strong {
  font-size: 2rem;
  line-height: 1;
}

.dps-review-drawer__score span {
  color: #f59e0b;
  letter-spacing: 1px;
}

.dps-review-drawer__score small,
.dps-review-drawer__group-desc,
.dps-review-card__meta,
.dps-review-card__badges {
  color: var(--dps-review-muted);
}

.dps-review-drawer__bars {
  display: grid;
  gap: 7px;
}

.dps-review-drawer__bar {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}

.dps-review-drawer__bar i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.dps-review-drawer__bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dps-review-red);
}

.dps-review-drawer__group {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.dps-review-drawer__group h3 {
  margin: 0;
  color: #7f1d1d;
  font-size: 1.12rem;
}

.dps-review-drawer__group-score {
  margin: -6px 0 0;
  color: #425466;
  font-size: 0.9rem;
  font-weight: 700;
}

.dps-review-drawer__group-desc {
  margin: -6px 0 2px;
  font-size: 0.92rem;
}

.dps-review-card {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--dps-review-border);
  border-radius: 4px;
  background: #fff;
}

.dps-review-card--overall {
  background: var(--dps-review-soft);
}

.dps-review-card__meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.88rem;
}

.dps-review-card__meta strong {
  color: var(--dps-review-text);
}

.dps-review-card__rating {
  color: #f59e0b;
  letter-spacing: 1px;
}

.dps-review-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
}

.dps-review-card__badges span {
  padding: 2px 7px;
  border: 1px solid rgba(0, 186, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 186, 255, 0.08);
}

.dps-review-card__badges .dps-review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  padding: 0;
  color: #2e7d32;
  background: transparent;
  font-weight: 700;
}

.dps-review-card__badges .dps-review-card__verified::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #2e7d32;
  box-shadow: inset 0 0 0 3px #2e7d32;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M17%208.5l-6.5%207-3-3'%20fill='none'%20stroke='%23fff'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.dps-review-card__product {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #425466;
  font-size: 0.88rem;
}

.dps-review-card__product strong {
  color: var(--dps-review-text);
}

.dps-review-card__content {
  margin: 0;
  line-height: 1.55;
}

.dps-review-card__helpful {
  position: absolute;
  right: 12px;
  bottom: -12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 24px);
  padding: 0 6px;
  background: #fff;
  color: var(--dps-review-muted);
  font-size: 11px;
  line-height: 1;
}

.dps-review-card--overall .dps-review-card__helpful {
  background: var(--dps-review-soft);
}

.dps-review-card__helpful-label {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dps-review-card__helpful-sentence {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  padding: 0 5px;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.dps-review-card--overall .dps-review-card__helpful-sentence {
  background: var(--dps-review-soft);
}

.dps-review-card__helpful-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.dps-review-card__helpful-button {
  display: inline-grid;
  grid-template-columns: 14px auto;
  align-items: center;
  gap: 2px;
  min-width: 26px;
  min-height: 22px;
  padding: 0 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.dps-review-card__helpful-button:hover,
.dps-review-card__helpful-button:focus-visible {
  color: var(--dps-review-red);
  outline: 2px solid rgba(220, 0, 24, 0.22);
  outline-offset: 1px;
}

.dps-review-card__helpful-button.is-active[data-dps-review-helpful-vote="up"] {
  color: #15803d;
}

.dps-review-card__helpful-button.is-active[data-dps-review-helpful-vote="down"] {
  color: #b91c1c;
}

.dps-review-card__helpful-button.is-active .dps-review-card__helpful-icon {
  fill: currentColor;
  stroke: currentColor;
}

.dps-review-card__helpful-button[disabled] {
  cursor: wait;
  opacity: 0.58;
}

.dps-review-card__helpful-icon {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.dps-review-card__helpful-count {
  min-width: 0.75em;
  font-size: 10px;
}

.dps-review-card__helpful--counts-hidden .dps-review-card__helpful-count {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dps-review-card__media {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dps-review-card__media-link {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--dps-review-border);
  border-radius: 4px;
  background: #f1f5f9;
}

.dps-review-card__media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dps-review-card__media-link span {
  position: absolute;
  inset: auto 6px 6px auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
}

.dps-review-card__media-link .dps-review-card__media-placeholder {
  position: static;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.dps-lightbox__box {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  max-height: 92vh;
  color: #fff;
}

.dps-lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  background: #000;
}

.dps-lightbox__stage img,
.dps-lightbox__stage video {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: min(calc(90vh - 112px), 760px);
}

.dps-lightbox__caption {
  display: grid;
  gap: 1px;
  max-width: min(96vw, 1200px);
  max-height: calc(4.05em + 18px);
  overflow: hidden;
  padding: 9px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.dps-lightbox__caption p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dps-lightbox__caption-main {
  color: #fff;
  font-weight: 700;
}

.dps-lightbox__meta {
  color: #facc15;
  letter-spacing: 0.05em;
}

.dps-lightbox__visual {
  color: rgba(255, 255, 255, 0.72);
}

.dps-lightbox__close,
.dps-lightbox__nav {
  position: fixed;
  z-index: 4610;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(220, 0, 24, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #7f1d1d;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  line-height: 1;
  cursor: pointer;
}

.dps-lightbox__close {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  padding: 0 0 2px;
  font-size: 26px;
  font-weight: 700;
}

.dps-lightbox__nav {
  top: 50%;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  transform: translateY(-50%);
}

.dps-lightbox__close:hover,
.dps-lightbox__close:focus-visible,
.dps-lightbox__nav:hover,
.dps-lightbox__nav:focus-visible {
  border-color: rgba(220, 0, 24, 0.72);
  background: linear-gradient(135deg, #dc0018, #a70013);
  color: #fff;
  outline: none;
}

.dps-lightbox__nav--prev {
  left: max(18px, env(safe-area-inset-left));
}

.dps-lightbox__nav--next {
  right: max(18px, env(safe-area-inset-right));
}

.dps-lightbox__dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  padding: 0 14px 12px;
  background: rgba(15, 23, 42, 0.92);
}

.dps-lightbox__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.dps-lightbox__dot.is-active,
.dps-lightbox__dot:hover,
.dps-lightbox__dot:focus-visible {
  background: #fff;
  outline: none;
}

@media (max-width: 640px) {
  .dps-lightbox__box {
    width: calc(100vw - 20px);
  }

  .dps-lightbox__stage img,
  .dps-lightbox__stage video {
    max-width: calc(100vw - 20px);
    max-height: calc(88vh - 132px);
  }

  .dps-lightbox__caption {
    max-width: calc(100vw - 20px);
    max-height: 32vh;
    overflow: auto;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .dps-lightbox__caption p {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .dps-lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 27px;
  }

  .dps-lightbox__close {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

.dps-review-card__replies {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-left: 14px;
  border-left: 3px solid #9ad9ff;
}

.dps-review-card__reply {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #cbeaff;
  border-radius: 4px;
  background: #f5fbff;
}

.dps-review-card__reply-meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  color: #075985;
  font-size: 0.84rem;
}

.dps-review-card__reply p {
  margin: 0;
  color: #263238;
}

.dps-review-drawer__state {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--dps-review-border);
  border-radius: 4px;
  background: var(--dps-review-soft);
}

.dps-review-drawer__state.is-error {
  border-color: rgba(220, 0, 24, 0.3);
  color: #991b1b;
  background: #fff1f2;
}

.dps-review-drawer-is-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .dps-review-drawer {
    inset: auto 0 0;
    width: 100%;
    height: min(92vh, 760px);
    border-radius: 12px 12px 0 0;
    transform: translateY(104%);
  }

  .dps-review-drawer.is-open {
    transform: translateY(0);
  }

  .dps-review-drawer__header {
    padding: 16px;
  }

  .dps-review-drawer__body {
    padding: 14px 16px 20px;
  }

  .dps-review-drawer__overview {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dps-review-drawer {
    transition: none;
  }
}

@media (forced-colors: active) {
  .dps-review-drawer,
  .dps-review-drawer__close,
  .dps-review-card,
  .dps-review-drawer__overview,
  .dps-review-drawer__state {
    border: 1px solid CanvasText;
  }
}
