/* Native menus must use opaque theme surfaces, including transparent selects. */
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
:root[data-theme] :is(select,input,textarea){color-scheme:inherit}
:root[data-theme] select :is(option,optgroup){background:var(--input,var(--cp-paper,#fff));color:var(--text,var(--cp-ink,#202027))}
:root[data-theme] select :is(option,optgroup):disabled{color:var(--muted,var(--cp-muted,#73737d))}

/* Commerce badges also appear in admin tables and dialogs outside .cp-admin. */
:root[data-theme=dark] body[data-view=admin] .cp-badge{background:#b88f2820;color:#eccb83}
:root[data-theme=dark] body[data-view=admin] .cp-badge:is(.paid,.approved,.active,.delivered){background:#23bc7e19;color:#75dfb0}
:root[data-theme=dark] body[data-view=admin] .cp-badge:is(.expired,.rejected,.cancelled,.suspended){background:#ff586a1c;color:#ff9da6}
:root[data-theme=dark] body[data-view=admin] .cp-badge.refunded{background:#a986e71c;color:#ccb5f5}
:root[data-theme=dark] :is(body[data-view=admin],.cp-body) .cp-badge.partial{background:#4685d91c;color:#9bc3fa}
:root[data-theme=dark] :is(body[data-view=admin],.cp-body) .cp-badge.disabled{background:#ffffff12;color:#b8b8c4}
:root[data-theme=dark] body[data-view=admin] .aod-summary .aod-total>strong{color:var(--accent,#ff777f)}
:root[data-theme=dark] body[data-view=admin] :is(.cp-form-error,.cp-money-negative){color:#ff9da6}
:root[data-theme=dark] body[data-view=admin] .cp-money-positive{color:#75dfb0}
