.trustpilot-review-dialog {
  box-sizing: border-box;
  width: min(90vw, 380px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  color: #1a1e36;
  box-shadow: 0 24px 70px rgba(18, 22, 50, .26);
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.trustpilot-review-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  animation: trustpilot-review-enter 200ms cubic-bezier(.2, .8, .2, 1) both;
}

.trustpilot-review-dialog::backdrop {
  background: rgba(20, 24, 45, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trustpilot-review-content {
  padding: 24px 24px 26px;
}

.trustpilot-review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: #4e556e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.trustpilot-review-separator {
  padding-inline: 4px;
  color: #9da3ba;
}

.trustpilot-review-close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eef0f6;
  color: #1a1e36;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.trustpilot-review-close:hover {
  background: #e2e5ef;
}

.trustpilot-review-close:active {
  transform: scale(0.92);
}

.trustpilot-review-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.trustpilot-review-stars-wrap {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.trustpilot-review-stars {
  display: block;
  width: 140px;
  height: 28px;
}

.trustpilot-review-dialog h2 {
  margin: 0 0 14px;
  color: #121626;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.trustpilot-review-dialog #trustpilot-review-description {
  margin: 0 0 24px;
  color: #586078;
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.5;
}

.trustpilot-review-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.trustpilot-review-actions button,
.trustpilot-review-cta {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  font: 700 15px/1.2 var(--font-family, inherit);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.trustpilot-review-cta {
  background: #5b3bf5;
  color: #ffffff;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(91, 59, 245, 0.28);
}

.trustpilot-review-cta:hover {
  background: #4e2de8;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(91, 59, 245, 0.35);
}

.trustpilot-review-cta:active {
  transform: translateY(0);
}

.trustpilot-cta-arrow {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.trustpilot-review-cta:hover .trustpilot-cta-arrow {
  transform: translateX(2px);
}

.trustpilot-review-dismiss {
  background: #eef0f6;
  color: #20263f;
}

.trustpilot-review-dismiss:hover {
  background: #e2e5ef;
}

.trustpilot-review-dismiss:active {
  transform: scale(0.99);
}

.trustpilot-review-dialog button:focus-visible,
.trustpilot-review-cta:focus-visible {
  outline: 3px solid rgba(91, 59, 245, .35);
  outline-offset: 2px;
}

.trustpilot-review-note {
  margin: 14px 0 0;
  color: #858ca3;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@keyframes trustpilot-review-enter {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 360px) {
  .trustpilot-review-content { padding: 20px 18px 22px; }
  .trustpilot-review-dialog h2 { font-size: 23px; }
  .trustpilot-review-dialog #trustpilot-review-description { font-size: 13.5px; }
  .trustpilot-review-actions button,
  .trustpilot-review-cta { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .trustpilot-review-dialog[open] { animation: none; }
  .trustpilot-review-cta { transition: none; }
}
