:root {
  --page: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #eef5f2;
  --text: #102a2b;
  --text-muted: #526766;
  --border: #d6e1de;
  --border-strong: #9eb5b0;
  --primary: #087f68;
  --primary-hover: #066b58;
  --primary-soft: #e5f7f1;
  --success: #16794f;
  --success-soft: #e9f8f0;
  --warning: #9a5b08;
  --warning-soft: #fff7df;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --live: #a32a20;
  --focus: #0b6fdd;
  --shadow: 0 18px 55px rgba(25, 51, 47, 0.08);
  --radius-large: 20px;
  --radius-medium: 12px;
  color: var(--text);
  background: var(--page);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(
      circle at 90% -10%,
      rgba(8, 127, 104, 0.09),
      transparent 26rem
    ),
    var(--page);
}

button,
input,
textarea {
  font: inherit;
}

button,
summary,
a {
  touch-action: manipulation;
}

button,
summary {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: #fff;
  background: var(--text);
  border-radius: 8px;
}

.checkout-header {
  min-height: 72px;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 7px 6px;
  display: grid;
  align-items: center;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(8, 127, 104, 0.2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: '';
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.brand-mark::before {
  width: 15px;
}

.brand-mark span {
  width: 22px;
}

.brand-mark::after {
  width: 11px;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.secure-label svg,
.tokenization-note svg,
.buyer-protection svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: var(--primary);
}

.environment-alert {
  width: min(1120px, calc(100% - 48px));
  min-height: 58px;
  margin: 24px auto 0;
  padding: 11px 14px 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #efc46f;
  border-radius: var(--radius-medium);
  color: #6b4308;
  background: var(--warning-soft);
}

.environment-alert.live {
  border-color: #e8a49e;
  color: #7b1c14;
  background: var(--danger-soft);
}

.environment-alert > div {
  display: grid;
  gap: 2px;
}

.environment-alert strong {
  font-size: 14px;
}

.environment-alert span:not(.environment-badge) {
  font-size: 13px;
}

.environment-badge {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.checkout-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.payment-card,
.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.payment-card {
  padding: 36px;
}

.order-card {
  position: sticky;
  top: 24px;
  padding: 28px;
}

.page-heading {
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 28px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

legend {
  margin-bottom: 18px;
  padding: 0;
  font-size: 16px;
  font-weight: 750;
}

.form-grid {
  display: grid;
  gap: 18px 16px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.pix-result label {
  display: block;
  margin-bottom: 7px;
  color: #263f3e;
  font-size: 14px;
  font-weight: 650;
}

.optional {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #82928f;
}

input:hover,
textarea:hover {
  border-color: #718d87;
}

input:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(11, 111, 221, 0.14);
}

.was-validated input:invalid {
  border-color: var(--danger);
}

button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 111, 221, 0.35);
  outline-offset: 3px;
}

.address-grid {
  grid-template-columns: 0.75fr 1.25fr 0.65fr;
}

.address-line-field {
  grid-column: span 2;
}

.complement-field {
  grid-column: 1 / -1;
}

.city-field {
  grid-column: span 2;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-method {
  min-height: 68px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium);
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.payment-method:hover {
  border-color: var(--primary);
}

.payment-method.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.payment-method svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: var(--primary);
}

.payment-method span {
  display: grid;
  gap: 2px;
}

.payment-method strong {
  font-size: 15px;
}

.payment-method small {
  color: var(--text-muted);
  font-size: 12px;
}

.method-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: #fbfdfc;
}

.pix-explanation {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pix-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}

.pix-symbol svg {
  width: 26px;
  fill: currentColor;
}

.pix-explanation strong {
  font-size: 15px;
}

.pix-explanation p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

#card-fields {
  display: grid;
  gap: 16px;
}

.card-entry {
  display: grid;
  gap: 16px;
}

.card-fields-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.card-switch-hint {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.card-details {
  grid-template-columns: 1fr 1fr;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .card-input {
  padding-right: 48px;
}

.input-with-icon svg {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 21px;
  fill: var(--text-muted);
  pointer-events: none;
}

/* Mesma caixa para o input comum (Pagar.me, Cielo) e para o container do
   iframe do Stripe: altura fixa, mesmo padding, borda, raio, fonte e estados.
   Trocar de provider só alterna qual dos dois aparece, sem salto de layout.
   A tipografia dentro do iframe vem do `style` que o SDK deriva do mesmo
   appearance (STRIPE_FIELDS_APPEARANCE em app.js). */
.card-input {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.card-input[hidden] {
  display: none;
}

.hosted-field > * {
  width: 100%;
}

.hosted-field:hover {
  border-color: #718d87;
}

.hosted-field.StripeElement--focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(11, 111, 221, 0.14);
}

.hosted-field.StripeElement--invalid {
  border-color: var(--danger);
}

.card-provider {
  white-space: nowrap;
}

.card-provider strong {
  color: var(--text);
  font-weight: 600;
}

.tokenization-note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.test-card-data {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.test-card-data summary {
  min-height: 44px;
  padding-top: 14px;
  color: var(--primary);
  font-weight: 700;
}

.test-card-data p {
  margin: 8px 0;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #21433e;
  background: var(--surface-soft);
  font-size: 12px;
}

.pay-button,
.secondary-button,
.copy-field button {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 750;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.pay-button {
  width: 100%;
  padding: 13px 20px;
  border: 0;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(8, 127, 104, 0.2);
}

.pay-button:hover {
  background: var(--primary-hover);
}

.pay-button:active,
.secondary-button:active,
.copy-field button:active {
  box-shadow: none;
}

.pay-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 9px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.pay-button.loading .button-spinner {
  display: inline-block;
}

.terms {
  margin: -16px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.error-summary {
  padding: 13px 15px;
  border: 1px solid #f0ada7;
  border-radius: 10px;
  color: #7b1c14;
  background: var(--danger-soft);
  font-size: 14px;
  line-height: 1.5;
}

.order-card h2 {
  margin: 0 0 24px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.product {
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.product-image {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.65), transparent), #dff4ec;
}

.product-image svg {
  width: 35px;
  fill: currentColor;
}

.product-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-copy strong {
  font-size: 14px;
}

.product-copy span,
.product-copy small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-price {
  align-self: start;
  font-size: 14px;
  white-space: nowrap;
}

.summary-lines {
  padding: 20px 0;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-lines div,
.summary-total,
.summary-total div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-lines span,
.summary-lines strong {
  font-size: 14px;
}

.summary-lines span {
  color: var(--text-muted);
}

.summary-lines strong {
  font-weight: 650;
}

.summary-total {
  padding: 22px 0;
  font-size: 16px;
  font-weight: 750;
}

.summary-total div {
  align-items: baseline;
  gap: 7px;
}

.summary-total small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.summary-total strong {
  font-size: 21px;
  letter-spacing: -0.03em;
}

.buyer-protection {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.buyer-protection div {
  display: grid;
  gap: 2px;
}

.buyer-protection strong {
  font-size: 13px;
}

.buyer-protection span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.checkout-result {
  min-height: 580px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.result-icon {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
}

.result-icon::before {
  content: '';
  width: 19px;
  height: 10px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(-45deg) translate(2px, -1px);
}

.checkout-result.pending .result-icon {
  color: var(--warning);
  background: var(--warning-soft);
}

.checkout-result.pending .result-icon::before {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: none;
}

.checkout-result.pending .result-icon::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 33px;
  width: 2px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
  transform-origin: bottom;
}

.checkout-result.failed .result-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.checkout-result.failed .result-icon::before {
  content: '!';
  width: auto;
  height: auto;
  border: 0;
  font-size: 28px;
  font-weight: 800;
  transform: none;
}

.checkout-result.failed .result-icon::after {
  display: none;
}

.checkout-result h2 {
  margin: 2px 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.result-description {
  max-width: 50ch;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.result-status {
  margin-top: 16px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.checkout-result.pending .result-status {
  color: var(--warning);
}

.checkout-result.failed .result-status {
  color: var(--danger);
}

.pix-result {
  width: min(100%, 470px);
  margin: 26px 0 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfdfc;
}

.pix-result img {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  border: 10px solid #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(16, 42, 43, 0.1);
}

.pix-result label {
  text-align: left;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.copy-field textarea {
  min-height: 72px;
  resize: none;
  font:
    12px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.copy-field button {
  padding: 0 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: var(--surface);
}

.copy-field button:hover {
  color: #fff;
  background: var(--primary);
}

.pix-expiration-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.order-identifiers {
  width: min(100%, 470px);
  margin: 22px 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.order-identifiers div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.order-identifiers dt {
  color: var(--text-muted);
  font-size: 12px;
}

.order-identifiers dd {
  min-width: 0;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font:
    12px ui-monospace,
    SFMono-Regular,
    monospace;
}

.secondary-button {
  padding: 11px 18px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

footer {
  min-height: 72px;
  padding: 20px 24px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

footer strong {
  color: var(--text);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .checkout-layout {
    width: min(700px, calc(100% - 32px));
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .order-card {
    position: static;
    order: -1;
  }

  .environment-alert {
    width: min(700px, calc(100% - 32px));
  }
}

@media (max-width: 600px) {
  .checkout-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .secure-label span {
    display: none;
  }

  .environment-alert {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .checkout-layout {
    width: calc(100% - 24px);
    margin: 16px auto 32px;
    gap: 16px;
  }

  .payment-card,
  .order-card {
    border-radius: 15px;
  }

  .payment-card {
    padding: 24px 18px;
  }

  .order-card {
    padding: 20px;
  }

  .order-card h2 {
    margin-bottom: 18px;
  }

  .two-columns,
  .address-grid,
  .card-details {
    grid-template-columns: 1fr;
  }

  .address-line-field,
  .complement-field,
  .city-field {
    grid-column: auto;
  }

  .payment-method {
    min-height: 72px;
    padding: 10px;
  }

  .payment-method svg {
    width: 21px;
  }

  .method-panel {
    padding: 16px;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .copy-field button {
    width: 100%;
  }

  .product {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .product-image {
    width: 56px;
    height: 56px;
  }

  .checkout-result {
    min-height: 500px;
    padding: 24px 0;
  }
}

@media (max-width: 390px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .product {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .product-price {
    grid-column: 2;
  }
}

/* Teste de fallback: só aparece quando a Payment API sobe com a injeção de
   falha ligada. */
.fault-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px dashed #c98a1c;
  border-radius: var(--radius-medium);
  background: var(--warning-soft);
}

.fault-panel[hidden] {
  display: none;
}

.fault-panel legend {
  padding: 0 6px;
  color: #6b4308;
}

.fault-intro,
.fault-hint,
.fault-no-fallback,
.fault-live-warning {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.fault-intro,
.fault-hint {
  color: #6b4308;
}

.fault-live-warning,
.fault-no-fallback {
  padding: 10px 12px;
  border-radius: 10px;
}

.fault-live-warning {
  border: 1px solid #e8a49e;
  color: #7b1c14;
  background: var(--danger-soft);
}

.fault-no-fallback {
  border: 1px solid #efc46f;
  color: #6b4308;
  background: var(--surface);
}

.fault-modes {
  display: grid;
  gap: 8px;
}

.fault-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fault-mode input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.fault-panel select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

.fault-panel select:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 111, 221, 0.14);
}

.retry-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 14px;
}

.retry-banner[hidden] {
  display: none;
}

.retry-banner.live {
  border-color: #e8a49e;
  color: #7b1c14;
  background: var(--danger-soft);
}

.card-retry-reason,
.fallback-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.fallback-notice {
  border: 1px solid #efc46f;
  color: #6b4308;
  background: var(--warning-soft);
}

.failure-details {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.failure-details h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.failure-technical,
.failure-provider-title {
  margin: 0 0 6px;
}

.failure-details code {
  overflow-wrap: anywhere;
}

.failure-provider-reasons {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  overflow-wrap: anywhere;
}

.attempt-provider-reasons {
  display: block;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.attempts-panel {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  text-align: left;
}

.attempts-panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.attempts-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.45;
}

.attempts-list strong {
  font-weight: 700;
}

.attempts-list .attempt-injected {
  color: #6b4308;
}

.attempts-list .attempt-served {
  color: var(--success);
}
