/* ranking-comment-card:start */
.comment-context-box {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 9px;
}

.comment-context-box img,
.comment-context-fallback {
  width: 48px;
  height: 48px;
  border: 1px solid #dbe4f0;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}

.comment-context-fallback {
  display: block;
  background:
    radial-gradient(circle at 32% 24%, rgba(219, 234, 254, .9), transparent 54%),
    linear-gradient(180deg, #fff, #f1f5f9);
}

.comment-context-box [data-comment-product-clear] {
  width: 34px;
  min-height: 34px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #64748b;
  font-size: 17px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 6px 14px rgba(15, 23, 42, .06);
}

.comment-context-box [data-comment-product-clear]:hover,
.comment-context-box [data-comment-product-clear]:focus-visible {
  border-color: rgba(148, 163, 184, .86);
  background: rgba(248, 250, 252, .92);
  color: #334155;
}

.comment-reply-box {
  border-color: rgba(147, 197, 253, .74);
  background:
    radial-gradient(circle at 12% 0%, rgba(219, 234, 254, .62), transparent 64%),
    rgba(255, 255, 255, .68);
}

.comment-reply-label {
  color: #2563eb !important;
}

.guide-comment-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-color: rgba(203, 213, 225, .78);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 250, 252, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.guide-comment-head {
  display: grid;
  gap: 5px;
}

.guide-comment-head > b {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.guide-comment-product-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
}

.guide-comment-product-card img,
.guide-comment-product-fallback {
  width: 52px;
  height: 52px;
  border: 1px solid #dbe4f0;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}

.guide-comment-product-fallback {
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  background:
    radial-gradient(circle at 32% 24%, rgba(219, 234, 254, .9), transparent 54%),
    linear-gradient(180deg, #fff, #f1f5f9);
}

.guide-comment-product-copy {
  min-width: 0;
  display: block;
}

.guide-comment-product-copy small {
  display: block;
  color: #2563eb;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .04em;
}

.guide-comment-product-copy b {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.guide-comment-product-copy em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.35;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-comment-body {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-comment-item.is-product-review {
  border-color: rgba(147, 197, 253, .68);
  background:
    radial-gradient(circle at 12% 0%, rgba(219, 234, 254, .56), transparent 66%),
    rgba(248, 251, 255, .88);
}

.guide-comment-item.is-reply {
  position: relative;
  margin-left: 18px;
  border-left: 3px solid #93c5fd;
}

.guide-comment-item.is-reply::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -20px;
  width: 14px;
  height: 1px;
  background: #bfdbfe;
}

.guide-comment-reply-meta {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.guide-comment-actions {
  margin-top: 0;
}

.guide-comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 12px;
  border-color: #bfdbfe;
  background: #fff;
  color: #1d4ed8;
  font-size: 11px;
}

.guide-comment-actions .comment-mini {
  width: 14px;
  height: 14px;
}

/* compact-comment-feed:start */
.guide-comments {
  gap: 6px;
}

.guide-comment-item {
  gap: 7px;
  padding: 10px 11px;
  border-radius: 13px;
}

.guide-comment-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.guide-comment-head > b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-comment-meta {
  justify-content: flex-end;
  margin-top: 0;
}

.guide-comment-body {
  display: -webkit-box;
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-comment-product-details {
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
}

.guide-comment-product-details summary {
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #475569;
  cursor: pointer;
  list-style: none;
}

.guide-comment-product-details summary::-webkit-details-marker {
  display: none;
}

.guide-comment-product-details summary::after {
  content: "";
  width: 7px;
  height: 7px;
  justify-self: end;
  border-right: 1.6px solid #64748b;
  border-bottom: 1.6px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
}

.guide-comment-product-details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.guide-comment-product-details summary span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.guide-comment-product-details summary b {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-comment-product-details .guide-comment-product-card {
  margin: 0 8px 8px;
}

.guide-comment-actions {
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.guide-comment-actions button {
  min-height: 44px;
  padding: 0 9px;
  border-color: rgba(203, 213, 225, .84);
  color: #475569;
  font-size: 10.5px;
}

.guide-comment-actions button b {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.guide-comment-like[aria-pressed="true"],
.guide-comment-like:disabled {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  opacity: 1;
}

.guide-comment-product-filter {
  color: #1d4ed8 !important;
}

.guide-comment-product-filter .grid-mini {
  width: 13px;
  height: 13px;
}
/* compact-comment-feed:end */

/* balanced-comment-actions:start */
.guide-comment-product-details {
  width: 100%;
  display: grid;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.guide-comment-product-details summary {
  width: min(100%, 360px);
  min-height: 32px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.guide-comment-product-details summary::after {
  justify-self: center;
  width: 6px;
  height: 6px;
}

.guide-comment-product-details summary span {
  color: #2563eb;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.guide-comment-product-details summary b {
  min-width: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.guide-comment-product-details .guide-comment-product-card {
  width: 100%;
  margin: 0;
}

.guide-comment-actions {
  width: 100%;
  display: flex;
  gap: 6px;
}

.guide-comment-actions button {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-color: rgba(203, 213, 225, .9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .78));
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.guide-comment-actions button span:not(.comment-mini):not(.grid-mini) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-comment-actions button b {
  flex: 0 0 auto;
  min-width: 14px;
}

.guide-comment-like[aria-pressed="true"],
.guide-comment-like:disabled,
.guide-comment-reply-button.is-active {
  border-color: rgba(147, 197, 253, .92);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, .96), rgba(219, 234, 254, .72));
  color: #1d4ed8;
}

.guide-comment-reply-stack {
  display: grid;
  gap: 6px;
  margin: -2px 0 6px 16px;
  padding-left: 12px;
  border-left: 1px solid rgba(147, 197, 253, .74);
}

.guide-comment-reply-stack .guide-comment-item {
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(239, 246, 255, .64));
  box-shadow: none;
}

.guide-comment-item.is-reply {
  margin-left: 0;
  border-left: 1px solid rgba(191, 219, 254, .86);
}

.guide-comment-item.is-reply::before {
  display: none;
}

.guide-comment-reply-line {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(147, 197, 253, .78);
  border-radius: 999px;
  background: rgba(239, 246, 255, .86);
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 700;
}

.guide-comment-reply-line span {
  flex: 0 0 auto;
  color: #64748b;
  font-weight: 700;
}

.guide-comment-reply-line b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* balanced-comment-actions:end */

@media (max-width: 640px) {
  .comment-context-box {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .comment-context-box img,
  .comment-context-fallback,
  .guide-comment-product-card img,
  .guide-comment-product-fallback {
    width: 54px;
    height: 54px;
  }

  .guide-comment-product-card {
    grid-template-columns: 54px minmax(0, 1fr);
    border-radius: 14px;
  }

  .guide-comment-product-copy b {
    font-size: 13px;
  }

  .guide-comment-body {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .guide-comment-product-details summary {
    width: 100%;
    min-height: 44px;
  }

  .guide-comment-actions {
    display: flex;
  }

  .guide-comment-actions button {
    min-height: 44px;
    padding: 0 8px;
    font-size: 12px;
  }

  .guide-comment-reply-stack {
    margin-left: 10px;
    padding-left: 9px;
  }
}
/* ranking-comment-card:end */
