/* cookie-banner.css — Klats-Klats cookie consent
   Sharp corners, hairline border, single offset-block CTA,
   sentence-case body. Bottom-left card, full-width on small screens. */

.cb-root {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 48px);
  font-family: var(--font-display);
  color: #000;
  animation: cb-rise 280ms cubic-bezier(.2, 0, 0, 1) both;
}

@keyframes cb-rise {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cb-card {
  background: #fff;
  border: 1.5px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
}

/* Top stamp row — replaces the boring "title bar" pattern with the brand wave */
.cb-stamp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 14px;
}
.cb-stamp {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  background: var(--kk-primary);
  color: #fff;
  padding: 6px 10px;
}
.cb-wave {
  display: block;
  flex: 1;
  width: 100%;
  height: 18px;
  object-fit: fill;
  opacity: 0.85;
  user-select: none;
}

.cb-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: #000;
  text-wrap: pretty;
}
.cb-title--sm {
  font-size: 19px;
}

.cb-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 18px;
}
.cb-body--sm {
  font-size: 13.5px;
  margin-bottom: 14px;
}

.cb-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.cb-btn {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 13px 18px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  transform: translate(0, 0);
  transition:
    transform 120ms cubic-bezier(.2, 0, 0, 1),
    box-shadow 120ms cubic-bezier(.2, 0, 0, 1),
    background 140ms cubic-bezier(.2, 0, 0, 1),
    color 140ms cubic-bezier(.2, 0, 0, 1);
}

.cb-btn--primary {
  background: var(--kk-primary);
  color: #fff;
  border-color: #000;
  box-shadow: 3px 3px 0 #000;
}
.cb-btn--primary:hover {
  background: #000;
  color: var(--kk-accent);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}
.cb-btn--primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.cb-btn--ghost {
  background: #fff;
  color: #000;
}
.cb-btn--ghost:hover {
  background: var(--kk-accent);
  color: #000;
}

.cb-arrow {
  font-family: var(--font-display);
  font-weight: 900;
  transition: transform 140ms cubic-bezier(.2, 0, 0, 1);
}
.cb-btn:hover .cb-arrow { transform: translateX(3px); }

/* Manage preferences — text link, underlined, low chrome */
.cb-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: #000;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  align-self: flex-start;
  transition: color 140ms;
}
.cb-link:hover {
  color: var(--kk-primary);
  text-decoration-thickness: 2.5px;
}

/* Footer */
.cb-foot {
  border-top: 1px solid #000;
  margin: 4px -24px -20px;
  padding: 12px 24px;
  background: var(--kk-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cb-foot-link {
  color: #000;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 140ms, color 140ms;
}
.cb-foot-link:hover {
  color: var(--kk-primary);
  border-bottom-color: var(--kk-primary);
}
.cb-foot-dot {
  color: #888;
}

/* Preferences view — category list */
.cb-cats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}
.cb-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.cb-cat:last-child { border-bottom: none; }
.cb-cat-text { min-width: 0; }
.cb-cat-t {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #000;
}
.cb-cat-d {
  font-size: 12.5px;
  line-height: 1.4;
  color: #555;
  margin-top: 2px;
}

/* Sharp little switch — squared, hard transition */
.cb-toggle {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border: 1.5px solid #000;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 140ms cubic-bezier(.2, 0, 0, 1);
}
.cb-toggle-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background: #000;
  transition: transform 160ms cubic-bezier(.2, 0, 0, 1), background 140ms;
}
.cb-toggle.on {
  background: var(--kk-primary);
}
.cb-toggle.on .cb-toggle-knob {
  background: #fff;
  transform: translateX(16px);
}
.cb-toggle.locked {
  cursor: not-allowed;
  background: var(--kk-primary);
  opacity: 0.55;
}
.cb-toggle.locked .cb-toggle-knob {
  background: #fff;
  transform: translateX(16px);
}

@media (max-width: 560px) {
  .cb-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
  .cb-card {
    padding: 20px 18px 16px;
  }
  .cb-foot {
    margin: 4px -18px -16px;
    padding: 10px 18px;
  }
  .cb-title { font-size: 19px; }
  .cb-body { font-size: 14px; }
}
