/*
 * Options > Selling setup > Online payments panel (includes/scripts/ux/42-online-pay.js + 43-online-pay-panel.js).
 * Builds on the .fi-* panel classes of 70-integrations.css (wrap, field, note, pill, table, actions); only the extras live here. Tokens: fm-ui.css (--fm-*).
 */
.fop-sec { border: 1px solid var(--fm-line, #e4e8f0); border-radius: 16px; padding: 14px 16px 12px; margin: 0 0 14px; background: #fff; }
.fop-sec > h4 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.fop-sec > h4 i { color: var(--fm-primary, #0369a1); width: 18px; text-align: center; }
.fop-sub { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--fm-line, #e4e8f0); }
.fop-switch { display: flex !important; gap: 12px; align-items: flex-start; margin: 0 !important; cursor: pointer; font-weight: 500 !important; }
.fop-sw { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; margin-top: 1px; }
.fop-sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fop-sw span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.fop-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.fop-sw input:checked + span { background: var(--fm-primary, #0369a1); }
.fop-sw input:checked + span::after { transform: translateX(18px); }
.fop-sw input:focus-visible + span { outline: 2px solid var(--fm-accent, #0ea5e9); outline-offset: 2px; }
.fop-swtext b { display: block; font-weight: 650; color: var(--fm-ink, #101828); }
.fop-swtext small { display: block; font-weight: 400; color: var(--fm-muted, #6b7689); line-height: 1.4; margin-top: 1px; }
.fop-rules { display: grid; gap: 12px; margin: 0 0 16px; }
.fop-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 6px; }
.fop-help { margin: 6px 0 0; line-height: 1.5; }
.fop-inline { display: inline-flex !important; gap: 6px; align-items: center; font-weight: 500 !important; margin: 0 0 0 6px !important; }
.fop-ok { color: var(--fm-success, #15803d); font-weight: 600; }
.fop-bad { color: var(--fm-danger, #b91c1c); font-weight: 600; }
.fop code { font-size: 12.5px; background: var(--fm-bg, #f2f7fb); padding: 1px 5px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { .fop-sw span, .fop-sw span::after { transition: none; } }
@media (max-width: 560px) { .fop-sec { padding: 12px; } }

/* "Paid online" badge in the payments list of an order (includes/scripts/orders/docs-form.js) */
.fo-online { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; background: var(--fm-primary-50, #e9f6fd); color: var(--fm-primary-600, #075985); font-size: 11px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.fo-online i { font-size: 10px; }
