/* Oponaro 1.2: factual trust components. No external assets or checkout overrides. */

body.oponaro-ux .opux-trust-scope {
  min-width: 0;
  max-width: 100%;
  color: var(--ink, #203345);
  overflow-wrap: anywhere;
}

body.oponaro-ux .opux-trust-section {
  width: 100%;
  margin: 0;
}

body.oponaro-ux .opux-trust-scope *,
body.oponaro-ux .opux-trust-scope *::before,
body.oponaro-ux .opux-trust-scope *::after { box-sizing: border-box; }

body.oponaro-ux .opux-trust-heading {
  margin: 0;
  color: var(--navy, #193348);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body.oponaro-ux .opux-trust-intro {
  max-width: 68ch;
  margin: 10px 0 22px;
  color: var(--muted, #586773);
  font-size: .9375rem;
  line-height: 1.65;
}

body.oponaro-ux .opux-trust-icon {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent, #b9431d);
}

body.oponaro-ux .opux-trust-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  max-width: 100%;
}

/* A compact strip under the finder, without certificate-like seals. */
body.oponaro-ux .opux-trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0;
  margin: 22px 0 0;
  padding: 8px 0;
  border-block: 1px solid var(--line, #dbe2e8);
  list-style: none;
}

body.oponaro-ux .opux-trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  margin: 0;
  padding: 12px 18px;
}

body.oponaro-ux .opux-trust-badge + .opux-trust-badge {
  border-inline-start: 1px solid var(--line, #dbe2e8);
}

body.oponaro-ux .opux-trust-badge > div { min-width: 0; }
body.oponaro-ux .opux-trust-badge strong {
  display: block;
  color: var(--navy, #193348);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.45;
}

body.oponaro-ux .opux-trust-badge > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted, #586773);
  font-size: .8125rem;
  line-height: 1.5;
}

/* Brand names are text, not logos or implied dealer endorsements. */
body.oponaro-ux .opux-trust-brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

body.oponaro-ux .opux-trust-brands > li { min-width: 0; margin: 0; padding: 0; }
body.oponaro-ux .opux-trust-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 78px;
  padding: 14px 10px;
  border: 1px solid var(--line, #dbe2e8);
  border-radius: 9px;
  background: #fff;
  color: var(--navy, #193348);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

body.oponaro-ux .opux-trust-brand:hover {
  border-color: #c89d89;
  background: #fff8f4;
  color: var(--accent, #b9431d);
}

body.oponaro-ux .opux-trust-brand-name {
  max-width: 100%;
  font-size: .9375rem;
  font-weight: 720;
  line-height: 1.35;
}

body.oponaro-ux .opux-trust-brand-count {
  max-width: 100%;
  color: var(--muted, #586773);
  font-size: .75rem;
  line-height: 1.4;
}

body.oponaro-ux .opux-trust-more { min-width: 0; margin-top: 12px; }
body.oponaro-ux .opux-trust-more > summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--navy, #193348);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.6;
  cursor: pointer;
}

body.oponaro-ux .opux-trust-more > summary::marker { color: var(--accent, #b9431d); }
body.oponaro-ux .opux-trust-more > summary:hover { background: var(--light, #f4f7f9); }
body.oponaro-ux .opux-trust-more[open] > summary { margin-bottom: 8px; }
body.oponaro-ux .opux-trust-more .opux-trust-brands { margin-top: 0; }
body.oponaro-ux .opux-trust-more:not([open]) > :not(summary) { display: none; }

/* Benefits and real review cards share scale, without carousel controls. */
body.oponaro-ux .opux-trust-benefits,
body.oponaro-ux .opux-trust-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

body.oponaro-ux .opux-trust-card,
body.oponaro-ux .opux-trust-review {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line, #dbe2e8);
  border-radius: 12px;
  background: #f8fafb;
}

body.oponaro-ux .opux-trust-card > .opux-trust-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--line, #dbe2e8);
  border-radius: 9px;
  background: #fff;
  color: var(--navy, #193348);
}

body.oponaro-ux .opux-trust-card h3 {
  margin: 0 0 9px;
  color: var(--navy, #193348);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.015em;
}

body.oponaro-ux .opux-trust-card p {
  margin: 0;
  color: var(--muted, #586773);
  font-size: .875rem;
  line-height: 1.7;
}

body.oponaro-ux .opux-trust-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 16px 0 0;
  color: var(--muted, #586773);
  font-size: .875rem;
  line-height: 1.5;
}

body.oponaro-ux .opux-trust-summary strong {
  color: var(--navy, #193348);
  font-size: 1.5rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

body.oponaro-ux .opux-trust-review {
  display: flex;
  flex-direction: column;
  background: #fff;
}

body.oponaro-ux .opux-trust-rating {
  margin: 0;
  color: var(--navy, #193348);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
}

body.oponaro-ux .opux-trust-review blockquote {
  margin: 12px 0 20px;
  padding: 0;
  border: 0;
  color: var(--ink, #203345);
  font-size: .9375rem;
  font-style: normal;
  line-height: 1.7;
}

body.oponaro-ux .opux-trust-review blockquote p { margin: 0 0 10px; }
body.oponaro-ux .opux-trust-review blockquote p:last-child { margin-bottom: 0; }
body.oponaro-ux .opux-trust-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line, #dbe2e8);
  color: var(--muted, #586773);
  font-size: .75rem;
  line-height: 1.5;
}

body.oponaro-ux .opux-trust-review-meta > * { min-width: 0; max-width: 100%; }
body.oponaro-ux .opux-trust-empty {
  margin: 12px 0 0;
  color: var(--muted, #586773);
  font-size: .875rem;
  line-height: 1.6;
}

/* Quiet supporting information outside WooCommerce's payment controls. */
body.oponaro-ux .opux-trust-note {
  clear: both;
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line, #dbe2e8);
  border-inline-start: 3px solid var(--navy, #193348);
  border-radius: 8px;
  background: var(--light, #f4f7f9);
  color: var(--muted, #586773);
  font-size: .8125rem;
  line-height: 1.65;
}

body.oponaro-ux .opux-trust-note p { margin: 0; }
body.oponaro-ux .opux-trust-note p + p { margin-top: 8px; }
body.oponaro-ux .opux-trust-note strong { color: var(--navy, #193348); }
body.oponaro-ux .opux-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body.oponaro-ux .opux-trust-links > li { min-width: 0; margin: 0; padding: 0; }
body.oponaro-ux .opux-trust-scope a { color: var(--navy, #193348); }
body.oponaro-ux .opux-trust-scope a:hover { color: var(--accent, #b9431d); }
body.oponaro-ux .opux-trust-links a,
body.oponaro-ux .opux-trust-review-meta a,
body.oponaro-ux .opux-trust-badge a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding-block: 6px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

body.oponaro-ux .opux-trust-scope :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--opux-focus, #a83d18);
  outline-offset: 3px;
}

/* Preserve content visibility; decorative aria-hidden SVGs remain visible. */
body.oponaro-ux .opux-trust-scope[hidden]:not([hidden="until-found"]),
body.oponaro-ux .opux-trust-scope [hidden]:not([hidden="until-found"]) {
  display: none !important;
}

/* Review navigation keeps native links and wraps within the component. */
body.oponaro-ux .opux-trust-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin-top: 24px;
}

body.oponaro-ux .opux-trust-pagination > :is(a, span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line, #dbe2e8);
  border-radius: 7px;
  color: var(--navy, #193348);
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
}

body.oponaro-ux .opux-trust-pagination > a {
  background: #fff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

body.oponaro-ux .opux-trust-pagination > a:hover {
  border-color: #c89d89;
  background: #fff8f4;
  color: var(--accent, #b9431d);
}

body.oponaro-ux .opux-trust-pagination > [aria-current="page"] {
  background: var(--light, #f4f7f9);
  color: var(--muted, #586773);
  font-size: .8125rem;
}

/* The trust navigation inherits the footer's dark background. */
body.oponaro-ux .site-footer nav.opux-trust-scope { color: #dce6ed; }
body.oponaro-ux .site-footer nav.opux-trust-scope .opux-trust-links {
  display: block;
  margin: 0;
}

body.oponaro-ux .site-footer nav.opux-trust-scope a { color: #dce6ed; }
body.oponaro-ux .site-footer nav.opux-trust-scope a:hover { color: #ffca9f; }
body.oponaro-ux .site-footer nav.opux-trust-scope :is(a, button, summary, [tabindex]):focus-visible {
  outline-color: #ffc18e;
}

/* Viewport fallback also works in browsers without container queries. */
@media (max-width: 960px) {
  body.oponaro-ux .opux-trust-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.oponaro-ux .opux-trust-badges,
  body.oponaro-ux .opux-trust-benefits,
  body.oponaro-ux .opux-trust-reviews { grid-template-columns: minmax(0, 1fr); }
  body.oponaro-ux .opux-trust-badge { padding: 12px 4px; }
  body.oponaro-ux .opux-trust-badge + .opux-trust-badge {
    border-inline-start: 0;
    border-top: 1px solid var(--line, #dbe2e8);
  }
  body.oponaro-ux .opux-trust-benefits,
  body.oponaro-ux .opux-trust-reviews { gap: 12px; }
  body.oponaro-ux .opux-trust-card,
  body.oponaro-ux .opux-trust-review { padding: 20px; }
}

@media (max-width: 480px) {
  body.oponaro-ux .opux-trust-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.oponaro-ux .opux-trust-brand { min-height: 66px; padding: 11px 8px; }
  body.oponaro-ux .opux-trust-brand-name { font-size: .875rem; }
}

/* Components adapt inside a real narrow preview wrapper, not only the viewport. */
@supports (container-type: inline-size) {
  body.oponaro-ux .opux-trust-scope {
    container-name: opux-trust;
    container-type: inline-size;
  }
}

@container opux-trust (max-width: 900px) {
  body.oponaro-ux .opux-trust-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container opux-trust (max-width: 700px) {
  body.oponaro-ux .opux-trust-badges,
  body.oponaro-ux .opux-trust-benefits,
  body.oponaro-ux .opux-trust-reviews { grid-template-columns: minmax(0, 1fr); }
  body.oponaro-ux .opux-trust-badge { padding: 12px 4px; }
  body.oponaro-ux .opux-trust-badge + .opux-trust-badge {
    border-inline-start: 0;
    border-top: 1px solid var(--line, #dbe2e8);
  }
  body.oponaro-ux .opux-trust-benefits,
  body.oponaro-ux .opux-trust-reviews { gap: 12px; }
  body.oponaro-ux .opux-trust-card,
  body.oponaro-ux .opux-trust-review { padding: 20px; }
}

@container opux-trust (max-width: 440px) {
  body.oponaro-ux .opux-trust-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.oponaro-ux .opux-trust-brand { min-height: 66px; padding: 11px 8px; }
  body.oponaro-ux .opux-trust-brand-name { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.oponaro-ux .opux-trust-scope,
  body.oponaro-ux .opux-trust-scope *,
  body.oponaro-ux .opux-trust-scope *::before,
  body.oponaro-ux .opux-trust-scope *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
