/* Compact Trustpilot TrustBox hosts — presentation only; scores come from Trustpilot. */

.rt-tp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  min-height: 24px;
  line-height: 0;
}

.rt-tp--btn {
  max-width: 160px;
  min-height: 20px;
}

.rt-tp .trustpilot-widget,
.rt-tp iframe {
  max-width: 100%;
}

.rt-tp-fallback,
.rt-tp-link,
.rt-tp-text {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 650;
  color: #0b1220;
  text-decoration: none;
  line-height: 1.35;
}

.rt-tp-link:hover,
.rt-tp-text:hover {
  text-decoration: underline;
}

/* Homepage — quiet strip above footer only (does not interrupt product rails) */
.rt-tp-home {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem 1.1rem;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.rt-tp-home-inner {
  display: flex;
  justify-content: center;
  width: 100%;
}

.rt-tp-home .rt-tp {
  margin: 0;
}

/* PDP reviews card — Trustpilot as one composed row with the form axis (not a sparse stack). */
.rt-tp-pdp-panel {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 18px;
}

.rt-tp-pdp-panel .rt-tp {
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  margin-inline: 0;
  width: auto;
  max-width: 100%;
  min-height: 24px;
  flex: 0 0 auto;
}

.rt-tp-pdp-panel .rt-tp-fallback,
.rt-tp-pdp-panel .rt-tp-link {
  margin: 0;
  text-align: start;
  display: inline-flex;
  align-items: center;
}

.rt-tp-pdp-panel .trustpilot-widget,
.rt-tp-pdp-panel iframe {
  display: block;
  margin: 0 !important;
  margin-inline: 0 !important;
  max-width: 100%;
}

.rt-tp-pdp-panel .rt-tp-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0;
  text-align: start;
  flex: 1 1 auto;
  min-width: 0;
}

.rt-tp-pdp-panel a.rt-tp-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.rt-tp-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
}

.rt-tp-footer .rt-tp {
  margin: 0;
  justify-content: flex-start;
  max-width: 120px;
  min-height: 20px;
  overflow: hidden;
}

/* Order confirmation — text invite only */
.rt-tp-confirm {
  margin: 20px auto 0;
  max-width: 36ch;
  text-align: center;
}

.rt-tp-confirm p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.rt-tp-confirm .rt-tp-text {
  color: #0b1220;
  font-weight: 700;
}

/* Mobile: center Trustpilot as one balanced cluster (left stack looks sparse on narrow cards). */
@media (max-width: 720px) {
  .rt-tp-pdp-panel {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .rt-tp-pdp-panel .rt-tp {
    justify-content: center;
    margin-inline: auto;
  }
  .rt-tp-pdp-panel .rt-tp-fallback,
  .rt-tp-pdp-panel .rt-tp-link {
    justify-content: center;
    text-align: center;
  }
  .rt-tp-pdp-panel .rt-tp-actions {
    justify-content: center;
    text-align: center;
    flex: 0 1 auto;
    gap: 10px 16px;
  }
  .rt-tp-pdp-panel a.rt-tp-text {
    white-space: normal;
  }
  .rt-tp-home {
    padding: 0.65rem 0.75rem 0.9rem;
  }
}

html[dir="rtl"] .rt-tp-pdp-panel {
  justify-content: flex-end;
  text-align: end;
}
html[dir="rtl"] .rt-tp-pdp-panel .rt-tp,
html[dir="rtl"] .rt-tp-footer .rt-tp {
  justify-content: flex-end;
}
html[dir="rtl"] .rt-tp-pdp-panel .rt-tp-actions {
  justify-content: flex-end;
  text-align: end;
}
@media (max-width: 720px) {
  html[dir="rtl"] .rt-tp-pdp-panel {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  html[dir="rtl"] .rt-tp-pdp-panel .rt-tp {
    justify-content: center;
  }
  html[dir="rtl"] .rt-tp-pdp-panel .rt-tp-actions {
    justify-content: center;
    text-align: center;
  }
}
