/* ============================================================================
   Phase 5 + 6 + 7 (2026-05-08) — store enhancements

   Phase 5: 商品比較 (compare bar + 3-up modal)
   Phase 6: 搜尋自動補全 dropdown
   Phase 7: 評價系統 (review button + modal + star rating widget)
   ============================================================================ */

/* ============================================================================
   Phase 5 — 商品比較
   ============================================================================ */

.dp-compare-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  background: linear-gradient(135deg, rgba(10, 26, 62, 0.96) 0%, rgba(7, 16, 38, 0.96) 100%);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 16px;
  box-shadow: 0 12px 40px -12px rgba(34, 211, 238, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 16px;
  animation: dpCompareBarIn 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dpCompareBarIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.dp-compare-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}

.dp-compare-bar__label {
  font-size: 14px;
  font-weight: 700;
  color: #facc15;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dp-compare-bar__count {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.dp-compare-bar__thumbs {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.dp-compare-bar__thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(34, 211, 238, 0.32);
  flex-shrink: 0;
}

.dp-compare-bar__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-compare-bar__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.5);
}

.dp-compare-bar__thumb--empty {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.3);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: rgba(148, 163, 184, 0.4);
  font-weight: 300;
}

.dp-compare-bar__thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dp-compare-bar__thumb-remove:hover {
  transform: scale(1.1);
  background: #ef4444;
}

.dp-compare-bar__clear {
  flex-shrink: 0;
}

.dp-compare-bar__cta {
  flex-shrink: 0;
  font-weight: 700;
}

.dp-compare-bar__cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Compare button injected on product cards */
.store-quick-btn[data-compare-toggle].is-active {
  background: linear-gradient(135deg, #facc15 0%, #ea9d22 100%);
  color: #0a1a3e;
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

@media (max-width: 640px) {
  .dp-compare-bar {
    left: 8px;
    right: 8px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .dp-compare-bar__inner {
    gap: 8px;
  }
  .dp-compare-bar__label {
    display: none;
  }
  .dp-compare-bar__thumb {
    width: 36px;
    height: 36px;
  }
  .dp-compare-bar__clear {
    display: none;
  }
}

/* Compare bar makes room when active */
body.dp-compare-bar-active .footer {
  padding-bottom: 80px;
}

@media (max-width: 640px) {
  body.dp-compare-bar-active .footer {
    padding-bottom: 70px;
  }
}

/* Compare modal */
.dp-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 24px;
}

.dp-compare-modal.is-open {
  display: grid;
}

.dp-compare-modal__card {
  width: min(960px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 26, 62, 0.98) 0%, rgba(5, 13, 35, 0.99) 100%);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 18px;
  overflow: hidden;
  animation: dpCompareModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
}

@keyframes dpCompareModalIn {
  from { transform: scale(0.96) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.dp-compare-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

.dp-compare-modal__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.02em;
}

.dp-compare-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: rgba(203, 213, 225, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dp-compare-modal__close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.dp-compare-modal__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 20px;
}

.dp-compare-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

.dp-compare-grid__cell {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  font-size: 13px;
  color: #f1f5f9;
  word-break: break-word;
}

.dp-compare-grid__cell--label {
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding-left: 4px;
}

.dp-compare-grid__cell--header {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
  border-color: rgba(34, 211, 238, 0.24);
  text-align: center;
  padding: 12px;
}

.dp-compare-grid__cell--price {
  font-size: 15px;
  font-weight: 800;
  color: #facc15;
  font-variant-numeric: tabular-nums;
}

.dp-compare-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 140px;
  margin: 0 auto 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.24);
}

.dp-compare-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-compare-thumb__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(148, 163, 184, 0.5);
  font-size: 28px;
}

.dp-compare-grid__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  line-height: 1.4;
  text-align: center;
}

.dp-compare-grid__title:hover {
  color: #22d3ee;
  text-decoration: underline;
}

.dp-compare-modal__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

body.dp-compare-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .dp-compare-modal {
    padding: 12px;
  }
  .dp-compare-modal__card {
    max-height: 92dvh;
  }
  .dp-compare-grid__cell {
    padding: 8px;
    font-size: 12px;
  }
  .dp-compare-thumb {
    max-width: 80px;
  }
  .dp-compare-grid__title {
    font-size: 12px;
  }
}

/* ============================================================================
   Toast (shared by Phase 5)
   ============================================================================ */

.dp-store-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  z-index: 2400;
  background: rgba(10, 26, 62, 0.96);
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #f1f5f9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
  text-align: center;
}

.dp-store-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   Phase 6 — 搜尋自動補全 dropdown
   ============================================================================ */

.dp-autocomplete-host {
  position: relative;
}

.dp-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 26, 62, 0.98) 0%, rgba(5, 13, 35, 0.98) 100%);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 12px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
  animation: dpAutocompleteIn 0.18s ease-out;
}

@keyframes dpAutocompleteIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dp-autocomplete__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dp-autocomplete__row:hover,
.dp-autocomplete__row.is-active {
  background: rgba(34, 211, 238, 0.14);
}

.dp-autocomplete__thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  place-items: center;
}

.dp-autocomplete__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-autocomplete__thumb-placeholder {
  font-size: 14px;
  color: rgba(148, 163, 184, 0.5);
  font-weight: 700;
}

.dp-autocomplete__body {
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dp-autocomplete__title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-autocomplete__price {
  font-size: 12px;
  color: #facc15;
  font-variant-numeric: tabular-nums;
}

.dp-autocomplete__empty {
  padding: 16px 12px;
  text-align: center;
  color: rgba(148, 163, 184, 0.85);
  font-size: 13px;
}

.dp-autocomplete__section {
  padding: 6px 4px;
}
.dp-autocomplete__section + .dp-autocomplete__section {
  border-top: 1px dashed rgba(148, 163, 184, 0.16);
  margin-top: 4px;
}

.dp-autocomplete__section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px 8px;
}

/* Phase 12 (2026-05-08): 搜尋歷史 styles */
.dp-autocomplete__section-clear {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(148, 163, 184, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.dp-autocomplete__section-clear:hover,
.dp-autocomplete__section-clear:focus-visible {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  outline: none;
}

.dp-autocomplete__history {
  display: grid;
  gap: 2px;
  padding: 0 2px 4px;
}

.dp-autocomplete__history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.dp-autocomplete__history-row:hover {
  background: rgba(34, 211, 238, 0.08);
}

.dp-autocomplete__history-label {
  appearance: none;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.92);
  cursor: pointer;
  text-align: left;
  width: 100%;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.dp-autocomplete__history-label svg {
  flex-shrink: 0;
  color: rgba(148, 163, 184, 0.7);
}

.dp-autocomplete__history-label:hover,
.dp-autocomplete__history-label:focus-visible {
  color: #22d3ee;
  outline: none;
}

.dp-autocomplete__history-label:hover svg,
.dp-autocomplete__history-label:focus-visible svg {
  color: #22d3ee;
}

.dp-autocomplete__history-label span {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-autocomplete__history-remove {
  appearance: none;
  background: transparent;
  border: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: rgba(148, 163, 184, 0.6);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  margin-right: 4px;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.dp-autocomplete__history-remove:hover,
.dp-autocomplete__history-remove:focus-visible {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  outline: none;
}

.dp-autocomplete__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px 4px;
}

.dp-autocomplete__chip {
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
  color: #22d3ee;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dp-autocomplete__chip:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.55);
}

/* ============================================================================
   Phase 7 — 評價系統 (review button + modal + star widget)
   ============================================================================ */

.dp-review-btn {
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.08);
  color: #facc15;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  align-self: flex-start;
}

.dp-review-btn:hover,
.dp-review-btn:focus-visible {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.7);
  transform: translateY(-1px);
  outline: none;
}

.dp-review-btn.is-reviewed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.dp-review-btn.is-reviewed:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.6);
}

/* Review modal */
.dp-review-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 24px;
}

.dp-review-modal.is-open {
  display: grid;
}

.dp-review-modal__card {
  width: min(520px, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 26, 62, 0.98) 0%, rgba(5, 13, 35, 0.99) 100%);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
  animation: dpReviewModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dpReviewModalIn {
  from { transform: scale(0.96) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.dp-review-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.dp-review-modal__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #facc15;
}

.dp-review-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: rgba(203, 213, 225, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dp-review-modal__close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.dp-review-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.dp-review-modal__item {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.dp-review-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.dp-review-star {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(148, 163, 184, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.dp-review-star:hover {
  color: #facc15;
  transform: scale(1.1);
}

.dp-review-star.is-active {
  color: #facc15;
}

.dp-review-stars__hint {
  text-align: center;
  margin: 0;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.85);
  min-height: 1.4em;
}

.dp-review-comment-field {
  display: grid;
  gap: 6px;
}

.dp-review-comment-field__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.92);
}

.dp-review-comment-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 14, 27, 0.55);
  color: #f1f5f9;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dp-review-comment-field textarea:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
  background: rgba(8, 14, 27, 0.75);
}

.dp-review-modal__msg {
  margin: 0;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.85);
  text-align: center;
  min-height: 1.4em;
}

.dp-review-modal__msg.is-error {
  color: #ef4444;
}

.dp-review-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

body.dp-review-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .dp-review-modal {
    padding: 12px;
  }
  .dp-review-star svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================================================
   Phase 11 (2026-05-08, Round 10): 商品評價顯示 widget on /store/item/:id
   後端 GET endpoint 之前就有, 此次補前端 fetch + render.
   ============================================================================ */

.dp-item-reviews {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(34, 211, 238, 0.18);
}

.dp-item-reviews__loading {
  text-align: center;
  padding: 16px;
  color: rgba(148, 163, 184, 0.7);
  font-size: 13px;
}

.dp-item-reviews__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.dp-item-reviews__title::before {
  content: "★ ";
  color: #facc15;
}

.dp-item-reviews__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08) 0%, rgba(234, 157, 34, 0.04) 100%);
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 12px;
  margin-bottom: 14px;
}

.dp-item-reviews__avg {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.dp-item-reviews__avg-num {
  font-size: 28px;
  font-weight: 800;
  color: #facc15;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.dp-item-reviews__avg-out {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 600;
}

.dp-item-reviews__stars {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}

.dp-item-reviews__star {
  color: rgba(148, 163, 184, 0.4);
  font-size: 14px;
  line-height: 1;
}

.dp-item-reviews__star.is-filled {
  color: #facc15;
}

.dp-item-reviews__count {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.dp-item-reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dp-item-reviews__item {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
}

.dp-item-reviews__item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.dp-item-reviews__item-author {
  font-size: 13px;
  font-weight: 700;
  color: #22d3ee;
}

.dp-item-reviews__item-stars {
  display: inline-flex;
  gap: 1px;
  flex-shrink: 0;
}

.dp-item-reviews__item-stars .dp-item-reviews__star {
  font-size: 12px;
}

.dp-item-reviews__item-date {
  margin-left: auto;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
  font-variant-numeric: tabular-nums;
}

.dp-item-reviews__item-comment {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.92);
  word-break: break-word;
}

.dp-item-reviews__more {
  text-align: center;
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  font-style: italic;
}

.dp-item-reviews__empty {
  padding: 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

.dp-item-reviews__empty-text {
  margin: 0;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.85);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .dp-item-reviews__summary {
    padding: 12px;
  }
  .dp-item-reviews__avg-num {
    font-size: 24px;
  }
  .dp-item-reviews__count {
    margin-left: 0;
  }
}
