/* KrpaHaus Cookie Consent */
:root {
  --kh-cookie-bg: #f4f0ea;
  --kh-cookie-ink: #1e211e;
  --kh-cookie-muted: #686962;
  --kh-cookie-line: rgba(30,33,30,.18);
  --kh-cookie-accent: #a87950;
  --kh-cookie-dark: #20231f;
}

.kh-cookie[hidden],
.kh-cookie-modal[hidden],
.kh-cookie-backdrop[hidden] { display: none !important; }

.kh-cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px;
  background: rgba(244,240,234,.98);
  color: var(--kh-cookie-ink);
  border: 1px solid rgba(30,33,30,.16);
  border-radius: 0;
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
  font-family: inherit;
}

.kh-cookie__eyebrow {
  margin-bottom: 8px;
  color: var(--kh-cookie-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
}

.kh-cookie h2,
.kh-cookie-modal h2 {
  margin: 0 0 10px;
  color: var(--kh-cookie-ink);
  font-family: inherit;
  font-size: clamp(22px, 2.1vw, 31px);
  font-weight: 500;
  line-height: 1.08;
}

.kh-cookie p,
.kh-cookie-modal p {
  max-width: 780px;
  margin: 0;
  color: var(--kh-cookie-muted);
  font-size: 14px;
  line-height: 1.65;
}

.kh-cookie__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.kh-cookie__links a {
  color: var(--kh-cookie-ink);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kh-cookie__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kh-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  border: 1px solid var(--kh-cookie-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.kh-btn:hover { opacity: .82; }

.kh-btn--primary {
  background: var(--kh-cookie-dark);
  color: #fff;
}

.kh-btn--ghost {
  background: transparent;
  color: var(--kh-cookie-dark);
}

.kh-cookie__close,
.kh-cookie-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--kh-cookie-ink);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.kh-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(9,11,9,.52);
  backdrop-filter: blur(3px);
}

.kh-cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000001;
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 30px;
  background: var(--kh-cookie-bg);
  color: var(--kh-cookie-ink);
  border: 1px solid rgba(30,33,30,.2);
  border-radius: 0;
  box-shadow: 0 22px 90px rgba(0,0,0,.30);
  font-family: inherit;
}

.kh-cookie-modal__lead { margin-bottom: 20px !important; }

.kh-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--kh-cookie-line);
}

.kh-cookie-category strong,
.kh-cookie-category span {
  display: block;
}

.kh-cookie-category strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.kh-cookie-category div > span {
  color: var(--kh-cookie-muted);
  font-size: 13px;
  line-height: 1.5;
}

.kh-cookie-status {
  flex: 0 0 auto;
  color: var(--kh-cookie-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kh-cookie-category--switch { cursor: pointer; }

.kh-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 26px;
}

.kh-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kh-switch__ui {
  position: absolute;
  inset: 0;
  background: #cbc8c2;
  border-radius: 0;
  transition: .2s ease;
}

.kh-switch__ui::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  transition: .2s ease;
}

.kh-switch input:checked + .kh-switch__ui {
  background: var(--kh-cookie-dark);
}

.kh-switch input:checked + .kh-switch__ui::after {
  transform: translateX(22px);
}

.kh-switch input:focus-visible + .kh-switch__ui {
  outline: 2px solid var(--kh-cookie-accent);
  outline-offset: 2px;
}

.kh-cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--kh-cookie-line);
}

.kh-cookie-reopen {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 999990;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 0;
  background: rgba(32,35,31,.88);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .68;
  transition: opacity .2s ease;
}

.kh-cookie-reopen:hover { opacity: 1; }

@media (max-width: 820px) {
  .kh-cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 23px 20px 20px;
  }

  .kh-cookie__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kh-cookie__actions .kh-btn--primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .kh-btn { width: 100%; }

  .kh-cookie-modal { padding: 26px 20px 20px; }

  .kh-cookie-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .kh-cookie {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .kh-cookie p { font-size: 13px; }

  .kh-cookie-category {
    align-items: flex-start;
  }
}
