/* Anseio Íntimo — auditoria de contraste do tema público v39. */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-theme="dark"] .section,
html[data-theme="dark"] .account-page,
html[data-theme="dark"] .checkout-page {
  background-color: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #111 !important;
  color: #fff !important;
  border-color: rgba(255, 219, 227, .34) !important;
  caret-color: #fff;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, .68) !important;
  opacity: 1;
}

html[data-theme="dark"] input[readonly],
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] button:disabled {
  color: rgba(255, 255, 255, .76) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .76);
}

html[data-theme="dark"] .profile-window,
html[data-theme="dark"] .account-profile-panel,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .shipping-card,
html[data-theme="dark"] [data-superfrete-widget="true"] {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-footer-slogan {
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] .product-meta,
html[data-theme="dark"] .form-status,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .profile-window p,
html[data-theme="dark"] .account-content p {
  color: var(--text-muted) !important;
}

[data-cloud-profile-status] {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 1.4rem;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
}

[data-cloud-profile-status][data-state="saving"] { color: var(--primary); }
[data-cloud-profile-status][data-state="saved"] { color: #19704a; }
[data-cloud-profile-status][data-state="error"] { color: #a71931; }
html[data-theme="dark"] [data-cloud-profile-status][data-state="saved"] { color: #8be0b7; }
html[data-theme="dark"] [data-cloud-profile-status][data-state="error"] { color: #ff9aae; }
