/* Kroniki Arivalda — Wsparcie Autora v1.0.2. Isolated from theme CSS. */
.kaw-root, .kaw-root * { box-sizing: border-box; }
.kaw-root {
  --kaw-gold: var(--color-gold, #b18a55);
  --kaw-gold-light: var(--color-gold-bright, #c3a06c);
  --kaw-ivory: var(--color-ivory, #e4dac7);
  --kaw-muted: var(--color-ivory-dim, #9c9282);
  --kaw-serif: var(--font-display, 'Cinzel', Georgia, serif);
  --kaw-body: var(--font-body, 'Inter', Arial, sans-serif);
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  top: auto;
  right: auto;
  width: 54px;
  height: 54px;
  z-index: 9800;
  overflow: visible;
  font-family: var(--kaw-body);
  line-height: 1.5;
}
.kaw-root > .kaw-trigger {
  list-style: none;
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; min-width: 54px; min-height: 54px;
  margin: 0; padding: 0;
  border: 1px solid rgba(195, 160, 108, .58);
  border-radius: 14px;
  color: var(--kaw-gold-light);
  background: linear-gradient(145deg, #272016, #11100d 72%);
  box-shadow: 0 12px 32px rgba(0,0,0,.64), inset 0 1px rgba(230,187,124,.13);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kaw-root > .kaw-trigger::-webkit-details-marker { display: none; }
.kaw-root > .kaw-trigger::marker { content: ''; }
.kaw-root > .kaw-trigger svg { width: 27px; height: 27px; flex-shrink: 0; }
.kaw-root > .kaw-trigger:hover, .kaw-root[open] > .kaw-trigger {
  border-color: #d5af78;
  box-shadow: 0 14px 34px rgba(0,0,0,.72), 0 0 18px rgba(177,138,85,.14);
}
.kaw-root > .kaw-trigger:active { transform: scale(.97); }
.kaw-root .kaw-panel {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 12px);
  top: auto;
  display: none;
  width: min(365px, calc(100vw - 36px));
  max-height: min(480px, calc(100dvh - 115px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 26px 23px 20px;
  border: 1px solid rgba(181,144,88,.42);
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(177,138,85,.1), transparent 68%), linear-gradient(160deg, #1b1812, #0c0b09 88%);
  color: var(--kaw-ivory);
  text-align: center;
  box-shadow: 0 22px 58px rgba(0,0,0,.8), inset 0 0 0 1px rgba(228,218,199,.035);
  transform-origin: bottom left;
  font-family: var(--kaw-body);
}
.kaw-root[open] .kaw-panel {
  display: block;
  animation: kaw-reveal .22s ease-out both;
}
@keyframes kaw-reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.kaw-root .kaw-close {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #c7af90;
  background: transparent;
  cursor: pointer;
}
.kaw-root .kaw-close svg { width: 20px; height: 20px; }
.kaw-root .kaw-close:hover { color: #fff3df; background: rgba(181,144,88,.12); }
.kaw-root .kaw-panel__symbol {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  color: var(--kaw-gold-light);
  border: 1px solid rgba(181,144,88,.27);
  border-radius: 50%;
  background: rgba(181,144,88,.08);
}
.kaw-root .kaw-panel__symbol svg { width: 25px; height: 25px; }
.kaw-root .kaw-panel__eyebrow {
  margin: 0 0 8px;
  color: var(--kaw-gold-light);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
}
.kaw-root .kaw-panel__heading {
  margin: 0 0 12px;
  padding: 0;
  color: var(--kaw-ivory);
  font-family: var(--kaw-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .012em;
  text-transform: uppercase;
}
.kaw-root .kaw-panel__description {
  margin: 0 0 20px;
  color: #c7bdae;
  font-size: 13.5px;
  line-height: 1.7;
  font-weight: 400;
}
.kaw-root .kaw-panel__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 47px;
  padding: 11px 10px;
  border: 1px solid rgba(204,169,115,.8);
  border-radius: 6px;
  color: #f4e4cb;
  background: linear-gradient(180deg, #46341e, #23190f);
  font-family: var(--kaw-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
  transition: filter .2s ease, border-color .2s ease;
}
.kaw-root .kaw-panel__cta:hover {
  color: #fff1da;
  border-color: #e0b77c;
  filter: brightness(1.14);
}
.kaw-root .kaw-panel__cta-icon { width: 18px; height: 18px; flex: none; }
.kaw-root .kaw-panel__footnote {
  margin: 12px 0 0;
  color: var(--kaw-muted);
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 14px;
}
.kaw-root :is(summary, button, a):focus-visible { outline: 2px solid #dfbd8c; outline-offset: 3px; }
.kaw-root .kaw-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 480px) {
  .kaw-root { left: max(12px, env(safe-area-inset-left, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); width: 49px; height: 49px; }
  .kaw-root > .kaw-trigger { width: 49px; height: 49px; min-width: 49px; min-height: 49px; border-radius: 13px; }
  .kaw-root > .kaw-trigger svg { width: 25px; height: 25px; }
  .kaw-root .kaw-panel { width: min(345px, calc(100vw - 24px)); max-height: min(460px, calc(100dvh - 95px)); padding: 22px 17px 18px; }
  .kaw-root .kaw-panel__heading { font-size: 16px; }
  .kaw-root .kaw-panel__description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .kaw-root *, .kaw-root *::before, .kaw-root *::after { animation: none !important; transition: none !important; }
}
