/* 🔕 DND — the panel drawn by dnd-ui.js on the portal card and the Full record.
   Made to look like GetBookedUp's own DND tab (help screenshots, Jan 2026):
   plain rows, a grey outline icon, the label, a square tick box on the right,
   the "OR" rule under "DND All Channels". No colour of its own beyond the
   accent blue GetBookedUp uses for a ticked box and the Subscription Status link. */

.cfdnd { padding: 2px 0 4px; font-size: 15px; line-height: 1.4; color: var(--ink, #11141a); }
.cfdnd-loading, .cfdnd-err { margin: 6px 4px; font-size: 15px; }
.cfdnd-err { color: var(--warn, #b54708); font-weight: 600; }

/* ⓘ How it works — top right, seen as soon as the section opens. */
.cfdnd-top { display: flex; justify-content: flex-end; margin: 0 6px; }
.cfdnd-guide { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 14px; font-weight: 600;
               color: var(--accent, #006aac); text-decoration: none; }
.cfdnd-guide:hover { text-decoration: underline; }

/* A row: the label is the big tap target (it ticks the box), the box sits right. */
.cfdnd-row { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 6px; border-radius: 8px; }
.cfdnd-row:hover { background: var(--pill, #eef2f6); }
.cfdnd-lab { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; color: #344054; }
.cfdnd-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
            stroke-linecap: round; stroke-linejoin: round; }
.cfdnd-cb { width: 19px; height: 19px; flex: none; margin: 0; cursor: pointer; accent-color: #006aac; }
.cfdnd-cb:disabled { cursor: not-allowed; }
.cfdnd-row.is-dim .cfdnd-lab { color: #98a2b3; }
.cfdnd-row.is-locked .cfdnd-lab { color: #667085; cursor: not-allowed; }

.cfdnd-info { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
              border: 0; border-radius: 50%; background: none; color: #475467; cursor: pointer; flex: none; }
.cfdnd-info:hover, .cfdnd-info[aria-expanded="true"] { background: var(--pill, #eef2f6); }
.cfdnd-info .cfdnd-ic { width: 18px; height: 18px; }

/* "DND All Channels" sits alone, then a rule with OR in the middle. */
.cfdnd-or { display: flex; align-items: center; gap: 10px; margin: 6px 6px 4px; color: #475467; font-size: 13px; }
.cfdnd-or::before, .cfdnd-or::after { content: ""; flex: 1; height: 1px; background: var(--line, #d8dde3); }
.cfdnd-rule { height: 1px; background: var(--line, #d8dde3); margin: 6px 6px; }

/* Lines under a row: who ticked it and when (date first, bold), or the lock. */
.cfdnd-sub { margin: -6px 6px 6px 33px; font-size: 13px; color: var(--ink-soft, #555c66); }
.cfdnd-sub--lock { color: #475467; }
.cfdnd-note { margin: 2px 6px 4px; font-size: 13.5px; color: var(--ink-soft, #555c66); }
.cfdnd-help { margin: -2px 6px 8px 33px; font-size: 13.5px; color: var(--ink-soft, #555c66); }
.cfdnd-sublink { display: inline-flex; align-items: center; gap: 6px; margin: -6px 6px 6px 33px; min-height: 30px;
                 color: #0b6bcb; font-weight: 600; font-size: 14px; text-decoration: none; }
.cfdnd-sublink:hover { text-decoration: underline; }
.cfdnd-sublink .cfdnd-ic { width: 15px; height: 15px; }

/* Saving… / ✓ Saved / why it failed — right under the box that was ticked. */
.cfdnd-msg { margin: 0 6px 0 33px; font-size: 14px; }
.cfdnd-msg:empty { display: none; }
.cfdnd-msg.is-busy { color: var(--ink-soft, #555c66); }
.cfdnd-msg.is-ok { color: var(--good, #117a3a); font-weight: 600; }
.cfdnd-msg.is-err { color: var(--warn, #b54708); font-weight: 600; margin-bottom: 6px; }

/* 📵 Replied OUT — our own flag, not a DND box, so it sits apart in amber. */
.cfdnd-out { margin: 8px 6px 2px; padding: 8px 10px; border-radius: 8px; background: #fff4e5;
             border: 1px solid #f3c98b; font-size: 14px; color: #5c3a00; }

/* 🔕 On — the badge on the closed section header (card and record). */
.cfdnd-head-pill { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px;
                   font-weight: 700; background: #fdecea; color: #8a1c12; border: 1px solid #f1b8b0; vertical-align: 1px; }
.cfdnd-head-pill[hidden] { display: none; }
