/* Customer pages use spacing and surface colors instead of decorative rules.
   A scoped important layer also covers runtime-injected and theme styles. */
@layer customer-borderless {
  html body.customer-borderless,
  html body.customer-borderless * {
    --line: transparent !important;
    --shadow: none !important;
    border-color: transparent !important;
    border-image: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  html body.customer-borderless :is(hr, [role="separator"]) {
    display: none !important;
  }

  html body.customer-borderless.emergency-active::after {
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body.customer-borderless .pair-heading p,
  html body.customer-borderless .pair-settings > small,
  html body.customer-borderless .pair-basis,
  html body.customer-borderless .pair-scan-status,
  html body.customer-borderless.pair-comparison-active #readerStatus {
    display: none !important;
  }

  /* Keep live prices readable behind every customer dialog, including themes
     and dialogs added at runtime. The native modal focus behavior is retained. */
  html body.customer-borderless dialog::backdrop {
    background: rgba(0, 0, 0, .08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Keep the transient keyboard focus cue, including editable controls. */
  html body.customer-borderless :is(button, input, select, textarea, a, summary, [tabindex]):focus-visible {
    outline: 2px solid #8e8265 !important;
    outline-offset: 2px !important;
  }
}
