/* V3: ev-review-to-review spacing only. No website-component/mouse avoidance. */
.ev-review-stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none !important;
  user-select: none;
  overflow: hidden;
  contain: layout style;
  mask-image: linear-gradient(to bottom, transparent 0, transparent var(--ev-review-mask-top, 78px), #000 calc(var(--ev-review-mask-top, 78px) + 32px), #000 calc(100% - 22px), transparent 100%);
}
.ev-review-stage *, .ev-review-stage *::before, .ev-review-stage *::after { pointer-events: none !important; }
.ev-review-stage.is-hidden { visibility: hidden; }
.ev-review-card {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: var(--ev-review-width, 280px);
  max-width: calc(100vw - 36px);
  will-change: transform;
  transform-origin: center;
  opacity: 0;
}
.ev-review-shell { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.ev-review-avatar {
  display: block;
  width: 30px;
  height: 30px;
  margin-top: 16px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(231, 207, 165, .3);
  filter: saturate(.72) brightness(.95);
  box-shadow: 0 3px 12px #0003;
}
.ev-review-bubble {
  position: relative;
  padding: 11px 15px 13px;
  border: 1px solid rgba(222, 185, 128, .24);
  border-radius: 13px 13px 13px 3px;
  background: linear-gradient(130deg, rgba(217, 168, 93, .055), rgba(130, 216, 166, .025)), rgba(11, 19, 15, var(--ev-review-glass, .46));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 9px 32px #0002, inset 0 1px 0 rgba(255, 241, 214, .03);
}
.ev-review-bubble::before {
  content: "";
  position: absolute;
  top: 23px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-left: 1px solid rgba(222, 185, 128, .24);
  border-bottom: 1px solid rgba(222, 185, 128, .24);
  background: rgba(23, 29, 21, .8);
  transform: rotate(45deg);
}
.ev-review-meta { margin: 0 0 5px; color: #c3b397; font-size: 10px; line-height: 1.5; font-weight: 400; letter-spacing: .7px; }
.ev-review-bubble p { margin: 0; color: #f5eee1; font-size: var(--ev-review-font, 15px); line-height: 1.65; font-weight: 500; text-shadow: 0 1px 8px #0009; white-space: pre-line; overflow-wrap: anywhere; }
.ev-review-card[data-length="long"] .ev-review-bubble p { font-size: 14px; line-height: 1.75; font-weight: 400; }
@media (max-width: 640px) {
  .ev-review-shell { grid-template-columns: 27px minmax(0, 1fr); gap: 8px; }
  .ev-review-avatar { width: 27px; height: 27px; margin-top: 14px; }
  .ev-review-bubble { padding: 10px 13px 12px; }
  .ev-review-bubble p { font-size: 14px; }
  /* Extra separation for a long quote on a narrow, text-heavy screen. */
  .ev-review-card[data-length="long"] .ev-review-bubble {
    background: linear-gradient(130deg, #d9a85d09, #82d8a606), rgba(11, 19, 15, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ev-review-card { will-change: auto; }
}

.ev-review-toggle {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 6;
  padding: 7px 11px;
  border: 1px solid #d9a85d38;
  border-radius: 7px;
  color: #c3b397;
  background: rgba(11, 19, 15, .85);
  font: 11px/1.4 "Microsoft YaHei UI", sans-serif;
  cursor: pointer;
}
.ev-review-toggle:hover { color: #f5eee1; border-color: #d9a85d80; }
.ev-review-toggle:focus-visible { outline: 2px solid #d9a85d; outline-offset: 3px; }
