/**
 * @file        sg-push.css
 * @description Styles of the push settings W-08 and the invitation page W-06 (mobile first, light and dark through the sg.css tokens)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         5f2c9e3a-1b7d-4e86-a0c4-6d9b3f1e2a75
 * @version     0.0.0.2
 * @created     2026-12-01
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* ── W-08 push settings ── */
.sg-push-section { margin-bottom: 16px; }
.sg-push-device { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sg-push-device__guard { display: none; }
.sg-push-device__status { flex-basis: 100%; margin: 0; min-height: 1.6em; }
.sg-push-switch[aria-checked="false"] { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.sg-push-blocked { margin-bottom: 16px; }
.sg-push-blocked .sg-code { margin: 0; }
.sg-push-travelers { list-style: none; padding: 0; margin: 0 0 16px; }
.sg-push-traveler { border-top: 1px solid var(--border); padding: 12px 0; }
.sg-push-traveler:first-child { border-top: 0; }
.sg-push-traveler fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sg-push-traveler__name { font-weight: 600; padding: 0; margin-bottom: 8px; overflow-wrap: anywhere; }
.sg-push-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sg-push-bar h2 { margin: 0; }
.sg-push-channels { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 4px; }

/* ── W-06 invitation link and QR ── */
.sg-invite { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.sg-invite-copy { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-invite-copy .sg-copy { flex: 1 1 200px; min-width: 0; }
.sg-invite-copy__status { min-height: 1.6em; margin: 4px 0 0; }
.sg-invite-trip select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
.sg-invite-qr__figure { margin: 0 0 12px; padding: 16px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; justify-content: center; }
.sg-invite-qr__figure img { width: min(240px, 100%); height: auto; image-rendering: pixelated; }
.sg-invite-qr__label { font-size: 0.8rem; overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .sg-invite { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}
