/**
 * @file        sg-notify.css
 * @description Notification settings T-20: email switches per kind, follow rows with email switch and frequency segments, quiet hours
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         9474fefa-0322-44d6-87c0-e73c42ac8353
 * @version     0.0.0.1
 * @created     2026-12-02
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

.sg-notify__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sg-notify__head h2 { margin: 0; }
.sg-notify__list, .sg-notify__follows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.sg-notify__list li + li { border-top: 1px solid var(--border); }

/* Switch rows: label left, switch right; the checkbox is drawn as a track with a knob (keyboard and screen readers keep the checkbox). */
.sg-notify__switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; }
.sg-notify__switch input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 44px; height: 24px; margin: 0; border-radius: 12px; background: var(--border-strong); position: relative; cursor: pointer; transition: background 0.15s; }
.sg-notify__switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform 0.15s; }
.sg-notify__switch input:checked { background: var(--ink); }
.sg-notify__switch input:checked::after { transform: translateX(20px); }
.sg-notify__switch input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-notify__switch--inline { justify-content: flex-start; }

/* Follow rows: who on top, then email switch, frequency segments and save; one line from 900 px. */
.sg-notify__follow { padding: 12px 0; border-top: 1px solid var(--border); }
.sg-notify__follow:first-child { border-top: 0; }
.sg-notify__follow form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sg-notify__who { flex: 1 1 100%; margin: 0; font-weight: 600; }
.sg-notify__who .sg-muted { display: block; font-weight: 400; font-size: 0.875rem; }
.sg-notify__segs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0; margin: 0; overflow: hidden; }
.sg-notify__seg { position: relative; }
.sg-notify__seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sg-notify__seg span { display: block; padding: 8px 12px; min-height: 40px; font-size: 0.875rem; color: var(--ink-muted); }
.sg-notify__seg + .sg-notify__seg span { border-left: 1px solid var(--border-strong); }
.sg-notify__seg input:checked + span { background: var(--ink); color: var(--surface); }
.sg-notify__seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (min-width: 900px) {
  .sg-notify__who { flex: 1 1 auto; }
}
