/* "How to use this page" guide video (partials/page-guide.blade.php).
   A small button sits in the bottom-right corner; the video opens in the CENTRE of the
   screen over a dimmed page, in three sizes (remembered) or full screen. */
.wz-guide { position: fixed; right: 18px; bottom: 18px; z-index: 1040; font-family: inherit; }
.wz-guide__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px;
    background: #1d4ed8; color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; box-shadow: 0 12px 28px rgba(29, 78, 216, .38); }
.wz-guide__pill i { font-size: 1.35rem; }
.wz-guide__pill:hover, .wz-guide__pill:focus-visible { background: #1e40af; }
.wz-guide__pill:focus-visible, .wz-guide__btn:focus-visible, .wz-guide__text summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.wz-guide.is-small .wz-guide__pill { width: 44px; padding: 0; justify-content: center; }
.wz-guide.is-small .wz-guide__pilltext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The player: centred dialog over a dimmed page. */
.wz-guide__backdrop { position: fixed; inset: 0; z-index: 1060; background: rgba(8, 18, 40, .62); }
.wz-guide__backdrop[hidden], .wz-guide__panel[hidden] { display: none; }
.wz-guide__panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1061;
    width: min(var(--wzg-w, 760px), 94vw); max-height: 92vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #dfe5ef; box-shadow: 0 30px 70px rgba(8, 18, 40, .45); }
.wz-guide[data-size="s"] .wz-guide__panel { --wzg-w: 480px; }
.wz-guide[data-size="m"] .wz-guide__panel { --wzg-w: 760px; }
.wz-guide[data-size="l"] .wz-guide__panel { --wzg-w: 1100px; }
.wz-guide__head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; background: #0b1f44; color: #fff; flex: 0 0 auto; }
.wz-guide__title { flex: 1; min-width: 0; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; font-weight: 700; }
.wz-guide__sizes { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.wz-guide__btn { min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .12); color: #fff;
    cursor: pointer; font-size: .8rem; font-weight: 700; }
.wz-guide__sizes .wz-guide__btn { background: transparent; }
.wz-guide__btn:hover, .wz-guide__sizes .wz-guide__btn[aria-pressed="true"] { background: rgba(255, 255, 255, .26); }
.wz-guide__video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(92vh - 110px); background: #0b1f44; flex: 0 1 auto; }
.wz-guide__text { padding: 8px 14px 10px; font-size: .88rem; color: #3c4a63; overflow: auto; flex: 0 1 auto; }
.wz-guide__text summary { cursor: pointer; font-weight: 700; color: #1d4ed8; }
.wz-guide__text ol { margin: 8px 0 0; padding-left: 18px; }
.wz-guide__text li { margin-bottom: 4px; }
/* Link from the video to the written Help Center guide (2026-12-04). */
.wz-guide__doc { margin: 0; padding: 8px 14px 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; border-top: 1px solid #e5e9f2; }
.wz-guide__doc a { color: #1d4ed8; font-weight: 700; text-decoration: none; }
.wz-guide__doc a:hover, .wz-guide__doc a:focus-visible { text-decoration: underline; }
.wz-guide__doc a + a { font-weight: 600; color: #5f6b86; }
body.wz-guide-open { overflow: hidden; }
@media (max-width: 575px) {
    .wz-guide { right: 12px; bottom: 12px; }
    .wz-guide__pilltext { font-size: .85rem; }
    .wz-guide__sizes { display: none; }
}
@media print { .wz-guide { display: none; } }

/* One-time tip above the button (shown once per page; can be switched off for all pages). */
.wz-guide__tip { position: absolute; right: 0; bottom: 58px; width: min(320px, calc(100vw - 24px)); padding: 16px 16px 12px; border-radius: 14px;
    background: #fff; border: 1px solid #dfe5ef; box-shadow: 0 20px 44px rgba(11, 31, 68, .25); color: #0f1b34; animation: wzgTip .25s ease-out; }
.wz-guide__tip[hidden] { display: none; }
.wz-guide__tip::after { content: ""; position: absolute; right: 22px; bottom: -8px; width: 14px; height: 14px; background: #fff;
    border-right: 1px solid #dfe5ef; border-bottom: 1px solid #dfe5ef; transform: rotate(45deg); }
.wz-guide__tipx { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #5f6b86; cursor: pointer; }
.wz-guide__tipx:hover { background: #eef2f7; }
.wz-guide__tiptitle { margin: 0 28px 4px 0; font-weight: 800; font-size: .95rem; color: #0b1f44; }
.wz-guide__tiptitle i { color: #1d4ed8; margin-right: 4px; }
.wz-guide__tiptext { margin: 0 0 12px; font-size: .88rem; color: #3c4a63; line-height: 1.45; }
.wz-guide__tipbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.wz-guide__tipgo, .wz-guide__tiplater { min-height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.wz-guide__tipgo { border: 0; background: #1d4ed8; color: #fff; }
.wz-guide__tipgo:hover { background: #1e40af; }
.wz-guide__tiplater { border: 1px solid #dfe5ef; background: #fff; color: #334d77; }
.wz-guide__tiplater:hover { border-color: #1d4ed8; color: #1d4ed8; }
.wz-guide__tipoff { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .82rem; color: #5f6b86; cursor: pointer; }
.wz-guide__tipoff input { width: 16px; height: 16px; margin: 0; }
.wz-guide__tipgo:focus-visible, .wz-guide__tiplater:focus-visible, .wz-guide__tipx:focus-visible, .wz-guide__tipoff input:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
/* The small round button explains itself on hover / keyboard focus. */
.wz-guide.is-small .wz-guide__pill:hover::after, .wz-guide.is-small .wz-guide__pill:focus-visible::after {
    content: "How to use this page (video)"; position: absolute; right: 52px; white-space: nowrap; padding: 6px 10px; border-radius: 8px;
    background: #0b1f44; color: #fff; font-size: .8rem; font-weight: 600; }
.wz-guide.is-small .wz-guide__pill { position: relative; }
@keyframes wzgTip { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wz-guide__tip { animation: none; } }
