/* KANZ Hosting - support bubble + privacy banner (js/kanz-support.js). Shared by kanzhosting.com and the panel.
   Pixel style: square corners cut by one step, 2 px edges, stepped motion. Colours are the KANZ package palette. */
.kz-help, .kz-consent {
  --kz-ink: #021A2E; --kz-navy9: #022A47; --kz-navy: #03395F; --kz-navy5: #0B4A76;
  --kz-mint: #5AEACF; --kz-mint8: #1E9684; --kz-blue: #289DF3; --kz-frost: #DCEFFB; --kz-text: #B4CBDD; --kz-gold: #F3C776;
  --kz-cut: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  font-family: inherit; line-height: 1.5; box-sizing: border-box;
}
.kz-help *, .kz-consent * { box-sizing: border-box; }
.kz-px { width: 100%; height: 100%; display: block; fill: currentColor; }
.kz-help [hidden], .kz-consent[hidden] { display: none !important; }

/* ------------------------------------------------------------------ launcher */
.kz-help { position: fixed; inset-inline-end: clamp(14px, 2vw, 26px); bottom: calc(clamp(14px, 2vw, 24px) + var(--kz-lift, 0px)); z-index: 9000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; visibility: hidden; transition: bottom .2s ease; }
.kz-help.is-in { visibility: visible; pointer-events: auto; }
.kz-launch { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.kz-launch__ask { padding: 5px 11px 6px; background: var(--kz-navy9); color: var(--kz-frost); font-size: 13px; font-weight: 700; white-space: nowrap;
  clip-path: var(--kz-cut); box-shadow: inset 0 0 0 2px var(--kz-navy5); transition: background .2s, color .2s;
  max-width: 200px; overflow: hidden; }
.kz-launch__slot { position: relative; display: block; flex: none; }
.kz-launch__dot { position: relative; display: block; width: 46px; height: 46px; padding: 11px; color: var(--kz-ink); background: var(--kz-mint);
  clip-path: var(--kz-cut); box-shadow: inset 0 -4px 0 var(--kz-mint8), inset 0 3px 0 rgba(255, 255, 255, .35); }
.kz-launch:hover .kz-launch__ask, .kz-launch:focus-visible .kz-launch__ask { background: var(--kz-navy); color: #fff; }
.kz-launch:focus-visible { outline: 2px solid var(--kz-mint); outline-offset: 4px; }
.kz-help.is-open .kz-launch__dot { background: var(--kz-frost); box-shadow: inset 0 -4px 0 var(--kz-text); }

/* entrance, Minecraft style: the button drops in like a placed block (stepped fall, squash on landing),
   pixel bits burst off it, then the label unrolls out of it */
.kz-help.is-in .kz-launch__slot { animation: kz-place .62s steps(1) both; }
@keyframes kz-place {
  0% { translate: 0 -96px; scale: .7; opacity: 0; }
  12% { translate: 0 -72px; scale: .8; opacity: 1; }
  24% { translate: 0 -46px; scale: .9; }
  36% { translate: 0 -20px; scale: 1; }
  48% { translate: 0 0; scale: 1.18 .82; }
  62% { translate: 0 -6px; scale: .94 1.06; }
  76% { translate: 0 0; scale: 1.04 .96; }
  100% { translate: 0 0; scale: 1; }
}
.kz-bits { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.kz-bit { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; opacity: 0; }
.kz-help.is-in .kz-bit { animation: kz-bit .7s steps(7) .3s both; }
@keyframes kz-bit {
  0% { opacity: 1; translate: 0 0; }
  60% { opacity: 1; translate: var(--dx) var(--dy); }
  100% { opacity: 0; translate: var(--dx) calc(var(--dy) + 22px); }
}
.kz-help.is-in .kz-launch__ask { animation: kz-unroll .36s steps(4) .62s both; }
@keyframes kz-unroll { from { clip-path: inset(0 0 0 100%); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.kz-help[dir="rtl"].is-in .kz-launch__ask { animation-name: kz-unroll-rtl; }
@keyframes kz-unroll-rtl { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
/* now and then it hops, like a dropped item */
.kz-help.is-in:not(.is-open) .kz-launch__slot { animation: kz-place .62s steps(1) both, kz-hop 4s steps(2) 3s infinite; }
@keyframes kz-hop { 0%, 84%, 100% { translate: 0 0; } 88% { translate: 0 -5px; } 92% { translate: 0 -2px; } }

/* the label folds away after a few seconds; hover, focus, news or an open panel bring it back */
.kz-launch__ask { transition: max-width .3s steps(4), padding .3s steps(4), opacity .2s steps(2); }
.kz-help.is-folded:not(.is-open):not(:hover):not(:focus-within) .kz-launch__ask { max-width: 0; padding-inline: 0; opacity: 0; box-shadow: none; }
.kz-help.is-folded .kz-launch { gap: 0; }
.kz-help.is-folded:hover .kz-launch, .kz-help.is-folded:focus-within .kz-launch { gap: 8px; }
/* on a server's pages (panel) only the button shows */
.kz-help.is-compact:not(.is-open) .kz-launch__ask { display: none; }
.kz-help.is-compact .kz-launch__dot { width: 40px; height: 40px; padding: 9px; }

/* news badge (panel): new staff replies for a customer, waiting tickets for an admin */
.kz-badge { position: absolute; top: -2px; inset-inline-start: -2px; min-width: 18px; height: 18px; padding: 0 4px;
  font: 800 11px/18px system-ui, sans-serif; text-align: center; color: var(--kz-ink); background: var(--kz-gold);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35); animation: kz-badge 1.6s steps(2) infinite; }
@keyframes kz-badge { 50% { translate: 0 -2px; } }

/* ------------------------------------------------------------------ options panel */
.kz-panel { width: min(320px, calc(100vw - 28px)); background: var(--kz-ink); color: var(--kz-text);
  clip-path: var(--kz-cut); box-shadow: inset 0 0 0 2px var(--kz-navy5); padding: 13px; transform-origin: 100% 100%;
  animation: kz-open .24s steps(4); }
.kz-help[dir="rtl"] .kz-panel { transform-origin: 0 100%; }
@keyframes kz-open { from { opacity: 0; scale: 1 .4; } 50% { opacity: 1; scale: 1 .8; } }
.kz-panel__top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.kz-gem { width: 24px; height: 18px; flex: none; margin-top: 4px; image-rendering: pixelated; }
.kz-panel__top > div { flex: 1; min-width: 0; }
.kz-eyebrow { display: block; color: var(--kz-mint); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.kz-panel h2 { margin: 1px 0 0; color: #fff; font-size: 16px; font-weight: 900; line-height: 1.35; }
.kz-x { flex: none; width: 28px; height: 28px; padding: 8px; border: 0; background: var(--kz-navy9); color: var(--kz-frost); cursor: pointer; clip-path: var(--kz-cut); }
.kz-x:hover { background: var(--kz-navy); color: #fff; }
.kz-opts { display: grid; gap: 6px; }
.kz-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-decoration: none; color: inherit; background: var(--kz-navy9);
  clip-path: var(--kz-cut); box-shadow: inset 0 0 0 2px transparent; transition: background .15s, box-shadow .15s; animation: kz-slot .3s steps(3) both; }
.kz-opt:nth-child(2) { animation-delay: .05s; } .kz-opt:nth-child(3) { animation-delay: .1s; } .kz-opt:nth-child(4) { animation-delay: .15s; }
@keyframes kz-slot { from { opacity: 0; translate: 0 8px; } }
.kz-opt:hover, .kz-opt:focus-visible { background: var(--kz-navy); box-shadow: inset 0 0 0 2px var(--kz-mint); outline: none; }
.kz-opt:hover .kz-opt__ic { animation: kz-wiggle .4s steps(2); }
@keyframes kz-wiggle { 33% { rotate: -8deg; } 66% { rotate: 8deg; } }
.kz-opt__ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.kz-art { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.kz-mail { width: 30px; height: 20px; color: var(--kz-mint); }
.kz-opt__tx { display: grid; min-width: 0; }
.kz-opt__tx b { color: #fff; font-size: 14px; font-weight: 700; }
.kz-opt__tx small { color: var(--kz-text); font-size: 12px; overflow-wrap: anywhere; }
.kz-help.has-news .kz-opt[data-o="tickets"] { box-shadow: inset 0 0 0 2px var(--kz-gold); }
.kz-help.has-news .kz-opt[data-o="tickets"] small { color: var(--kz-gold); }
.kz-opt[data-o="email"] small { direction: ltr; text-align: start; unicode-bidi: plaintext; }

/* ------------------------------------------------------------------ live chat frame (kanzhosting.com/live/) */
.kz-chat { position: relative; width: min(380px, calc(100vw - 28px)); height: min(600px, calc(100dvh - 110px - var(--kz-lift, 0px)));
  padding: 2px; background: var(--kz-navy5); clip-path: var(--kz-cut); transform-origin: 100% 100%; animation: kz-open .24s steps(4); }
.kz-help[dir="rtl"] .kz-chat { transform-origin: 0 100%; }
.kz-chat__frame { display: block; width: 100%; height: 100%; border: 0; background: var(--kz-ink); clip-path: var(--kz-cut); }
.kz-help.has-live-news .kz-opt[data-o="live"] { box-shadow: inset 0 0 0 2px var(--kz-gold); }
.kz-help.has-live-news .kz-opt[data-o="live"] small { color: var(--kz-gold); }
/* while the chat is open the label stays folded so it covers less */
.kz-help.is-chat .kz-launch__ask { display: none; }

/* ------------------------------------------------------------------ privacy banner */
.kz-consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 9001; max-width: 720px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px;
  background: rgba(2, 26, 46, .96); color: var(--kz-text); clip-path: var(--kz-cut); box-shadow: inset 0 0 0 2px var(--kz-navy5);
  backdrop-filter: blur(8px); opacity: 0; translate: 0 16px; transition: opacity .25s steps(4), translate .25s steps(4); }
.kz-consent.is-in { opacity: 1; translate: 0 0; }
.kz-consent__text { flex: 1 1 300px; margin: 0; font-size: 13.5px; }
.kz-consent__act { display: flex; gap: 8px; flex-wrap: wrap; }
.kz-btn { padding: 7px 14px 8px; border: 0; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; clip-path: var(--kz-cut); }
.kz-btn--mint { background: var(--kz-mint); color: var(--kz-ink); box-shadow: inset 0 -4px 0 var(--kz-mint8); }
.kz-btn--mint:hover { background: #B8F8EC; }
.kz-btn--ghost { background: transparent; color: var(--kz-mint); box-shadow: inset 0 0 0 2px var(--kz-mint); }
.kz-btn--ghost:hover { background: rgba(90, 234, 207, .12); }
.kz-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------------------------ phones */
@media (max-width: 640px) {
  .kz-help { inset-inline-end: 12px; }
  .kz-launch__dot { width: 44px; height: 44px; padding: 11px; }
  .kz-chat { width: calc(100vw - 20px); height: calc(100dvh - 86px - var(--kz-lift, 0px)); }
  .kz-consent { inset-inline: 10px; bottom: 10px; }
  .kz-consent__act { width: 100%; } .kz-consent__act .kz-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-help *, .kz-consent, .kz-panel { transition: none !important; animation: none !important; }
  .kz-bits { display: none; }
}
