/* Customer function-page details that still carry legacy literal colors.
   Palette and aliases are owned by site-theme.css. This file changes colors
   only; order states, layout, typography and interaction remain unchanged. */

/* Order lookup: the text input has its own color and cannot inherit from
   the themed captcha wrapper. Keep the refresh control on that same scale. */
html[data-theme] body.visual-sync-page .oc-captcha-input {
  color:var(--site-text)!important;
  background:transparent!important;
}
html[data-theme] body.visual-sync-page .oc-captcha-input::placeholder,
html[data-theme] body.visual-sync-page .oc-input-icon,
html[data-theme] body.visual-sync-page .oc-search > label,
html[data-theme] body.visual-sync-page .oc-captcha-refresh {
  color:var(--site-muted)!important;
}
html[data-theme] body.visual-sync-page .oc-captcha-refresh:hover {
  background:var(--site-soft)!important;
  color:var(--site-text)!important;
}
html[data-theme] body.visual-sync-page .oc-input-wrap:focus-within input,
html[data-theme] body.visual-sync-page .oc-captcha-wrap:focus-within {
  border-color:var(--site-focus)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--site-focus) 28%,transparent)!important;
}

/* QR preview follows the page's surfaces. The scan image itself keeps a
   white backing so dark mode cannot reduce the code's scanning contrast. */
html[data-theme] body.visual-sync-page .oc-qr-morph {
  background:var(--site-surface)!important;
  color:var(--site-text)!important;
  border-color:var(--site-line)!important;
}
html[data-theme] body.visual-sync-page .oc-qr-close {
  background:transparent!important;
  color:var(--site-text)!important;
  border-color:var(--site-line)!important;
}
html[data-theme] body.visual-sync-page .oc-qr-close:hover {
  background:var(--site-soft)!important;
}
html[data-theme] body.visual-sync-page .oc-qr-caption {
  color:var(--site-muted)!important;
}
html[data-theme] body.visual-sync-page .oc-qr-large,
html[data-theme] body.visual-sync-page .oc-kefu-qr-link {
  background:#FFFFFF!important;
  border-color:var(--site-line)!important;
}
html[data-theme] body.visual-sync-page .oc-kefu-download {
  background:var(--site-soft)!important;
  color:var(--site-text)!important;
  border-color:var(--site-line)!important;
}
html[data-theme] body.visual-sync-page .oc-kefu-download:hover {
  background:var(--site-accent-soft)!important;
  color:var(--site-text)!important;
  border-color:var(--site-focus)!important;
}
html[data-theme] body.visual-sync-page .oc-qr-download {
  background:var(--site-accent)!important;
  color:var(--site-on-accent)!important;
  border-color:var(--site-accent)!important;
}

/* Delivery content: code and copy controls were hard-coded independently
   of their themed cards. Numbered steps are content structure, not statuses. */
html[data-theme] body.visual-sync-page .sc-card-code,
html[data-theme] body.visual-sync-page .oc-card-code {
  color:var(--site-text)!important;
}
html[data-theme] body.visual-sync-page .sc-copy-inline,
html[data-theme] body.visual-sync-page .oc-copy {
  background:var(--site-surface)!important;
  color:var(--site-text)!important;
  border-color:var(--site-line)!important;
}
html[data-theme] body.visual-sync-page .sc-copy-inline:hover,
html[data-theme] body.visual-sync-page .oc-copy:hover {
  background:var(--site-soft)!important;
}
html[data-theme] body.visual-sync-page .sc-step-number,
html[data-theme] body.visual-sync-page .oc-step-number {
  background:var(--site-accent)!important;
  color:var(--site-on-accent)!important;
  border-color:var(--site-accent)!important;
}
html[data-theme] body.visual-sync-page .sc-step-connector,
html[data-theme] body.visual-sync-page .oc-step-connector {
  background:var(--site-line)!important;
}
html[data-theme] body.visual-sync-page .sc-row span,
html[data-theme] body.visual-sync-page .sc-delivery-kicker,
html[data-theme] body.visual-sync-page .sc-card-domain,
html[data-theme] body.visual-sync-page .oc-delivery-kicker,
html[data-theme] body.visual-sync-page .oc-step-sub,
html[data-theme] body.visual-sync-page .oc-redeem-domain {
  color:var(--site-muted)!important;
}
html[data-theme] body.visual-sync-page .sc-card-domain::before,
html[data-theme] body.visual-sync-page .oc-redeem-domain::before {
  background:var(--site-focus)!important;
  box-shadow:0 0 0 3px var(--site-accent-soft)!important;
}

/* Help and tutorial views share the same page field as the catalogue. */
html[data-theme] body.storefront[data-page-view="faq"] .faq-section,
html[data-theme] body.storefront[data-page-view="workflow"] .workflow {
  background-color:transparent!important;
  background-image:none!important;
  border-color:var(--site-line)!important;
  color:var(--site-text)!important;
}
html[data-theme] body.storefront details.faq-item,
html[data-theme] body.storefront .step-card {
  background:var(--site-surface)!important;
  color:var(--site-text)!important;
  border-color:var(--site-line)!important;
}
html[data-theme] body.storefront details.faq-item:hover,
html[data-theme] body.storefront details.faq-item[open] {
  border-color:var(--site-focus)!important;
}
html[data-theme] body.storefront details.faq-item summary,
html[data-theme] body.storefront .faq-left h2,
html[data-theme] body.storefront .workflow .sec-head h2,
html[data-theme] body.storefront .step-title {
  color:var(--site-text)!important;
}
html[data-theme] body.storefront .faq-ans,
html[data-theme] body.storefront .faq-left p,
html[data-theme] body.storefront details.faq-item summary .chev,
html[data-theme] body.storefront .workflow .sec-head p,
html[data-theme] body.storefront .step-desc,
html[data-theme] body.storefront .step-num,
html[data-theme] body.storefront .step-result {
  color:var(--site-muted)!important;
}
html[data-theme] body.storefront .step-icon {
  background:var(--site-soft)!important;
  color:var(--site-text)!important;
  border-color:var(--site-line)!important;
}

html[data-theme] body.visual-sync-page :is(.oc-captcha-refresh,.oc-kefu-download,.oc-qr-close,.oc-qr-download,.sc-copy-inline,.oc-copy):focus-visible {
  outline-color:var(--site-focus)!important;
}
