.kolk-consent {
  --kolk-consent-primary: var(--wp--preset--color--primary, #d1bfa5);
  --kolk-consent-secondary: var(--wp--preset--color--secondary, #e6d8c5);
  --kolk-consent-dark: var(--wp--preset--color--dark, #1e2227);
  --kolk-consent-dark-light: var(--wp--preset--color--dark-light, #2a3037);
  --kolk-consent-light: var(--wp--preset--color--light, #ffffff);
  --kolk-consent-gray: var(--wp--preset--color--gray, #b0b0b0);
  --kolk-consent-border: rgba(230, 216, 197, 0.18);
  --kolk-consent-shadow: 0 16px 40px rgba(8, 10, 12, 0.28);
  color: var(--kolk-foreground, #fafafa);
}

.kolk-consent__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 12, 14, 0.44);
}

.kolk-consent__banner,
.kolk-consent__panel,
.kolk-consent__manage {
  font-family: inherit;
}

.kolk-consent__banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--kolk-consent-border);
  background: rgba(30, 34, 39, 0.98);
  box-shadow: var(--kolk-consent-shadow);
}

.kolk-consent__body {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.kolk-consent__copy {
  display: grid;
  gap: 10px;
}

.kolk-consent__title {
  margin: 0;
  color: var(--kolk-foreground, #fafafa);
  font-family: "Geared Slab", "Rockwell", "Courier New", serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.1;
}

.kolk-consent__description,
.kolk-consent__category-description,
.kolk-consent-map__description {
  margin: 0;
  color: var(--kolk-muted-foreground, #c2c7d0);
  font-size: 0.95rem;
  line-height: 1.55;
}

.kolk-consent__meta,
.kolk-consent__status {
  margin: 0;
  color: rgba(199, 178, 153, 0.78);
  font-size: 0.84rem;
  line-height: 1.45;
}

.kolk-consent__actions,
.kolk-consent-map__actions,
.kolk-consent__panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.kolk-consent__button,
.kolk-consent__link,
.kolk-consent__manage {
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.kolk-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  cursor: pointer;
}

.kolk-consent__button--primary {
  background: var(--kolk-consent-primary);
  border-color: var(--kolk-consent-primary);
  color: var(--kolk-consent-dark);
}

.kolk-consent__button--primary:hover,
.kolk-consent__button--primary:focus-visible {
  background: #dccdb7;
  border-color: #dccdb7;
}

.kolk-consent__button--secondary {
  background: transparent;
  border-color: var(--kolk-consent-border);
  color: var(--kolk-foreground, #fafafa);
}

.kolk-consent__button--secondary:hover,
.kolk-consent__button--secondary:focus-visible,
.kolk-consent__link:hover,
.kolk-consent__link:focus-visible,
.kolk-consent__manage:hover,
.kolk-consent__manage:focus-visible,
.kolk-consent__button--text:hover,
.kolk-consent__button--text:focus-visible {
  background: rgba(230, 216, 197, 0.08);
  border-color: rgba(230, 216, 197, 0.28);
}

.kolk-consent__button--text {
  padding: 0;
  min-height: auto;
  background: transparent;
  border: 0;
  color: var(--kolk-primary, #c7b299);
}

.kolk-consent__button:focus-visible,
.kolk-consent__link:focus-visible,
.kolk-consent__manage:focus-visible,
.kolk-consent__close:focus-visible,
.kolk-consent__toggle input:focus-visible + .kolk-consent__switch {
  outline: 2px solid var(--kolk-consent-primary);
  outline-offset: 2px;
}

.kolk-consent__panel {
  position: fixed;
  inset: auto 20px 20px auto;
  z-index: 10000;
  width: min(680px, calc(100vw - 32px));
  border: 1px solid var(--kolk-consent-border);
  background: var(--kolk-consent-dark);
  box-shadow: var(--kolk-consent-shadow);
}

.kolk-consent__panel-header,
.kolk-consent__panel-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px;
}

.kolk-consent__panel-header {
  border-bottom: 1px solid var(--kolk-consent-border);
}

.kolk-consent__panel-footer {
  border-top: 1px solid var(--kolk-consent-border);
}

.kolk-consent__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--kolk-consent-border);
  background: transparent;
  color: var(--kolk-foreground, #fafafa);
  cursor: pointer;
}

.kolk-consent__close span {
  font-size: 1.4rem;
  line-height: 1;
}

.kolk-consent__category-list {
  display: grid;
}

.kolk-consent__category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(230, 216, 197, 0.12);
}

.kolk-consent__category:last-child {
  border-bottom: 0;
}

.kolk-consent__category-copy {
  display: grid;
  gap: 6px;
}

.kolk-consent__category-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.kolk-consent__category-title,
.kolk-consent-map__title {
  display: block;
  margin: 0;
  color: var(--kolk-foreground, #fafafa);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.kolk-consent__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(230, 216, 197, 0.18);
  color: var(--kolk-primary, #c7b299);
  font-size: 0.76rem;
  line-height: 1;
}

.kolk-consent__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kolk-consent__toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kolk-consent__switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  border: 1px solid rgba(230, 216, 197, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.kolk-consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--kolk-consent-light);
  transition: transform 140ms ease;
}

.kolk-consent__toggle input:checked + .kolk-consent__switch {
  background: var(--kolk-consent-primary);
  border-color: var(--kolk-consent-primary);
}

.kolk-consent__toggle input:checked + .kolk-consent__switch::after {
  transform: translateX(20px);
  background: var(--kolk-consent-dark);
}

.kolk-consent__toggle input:disabled + .kolk-consent__switch {
  opacity: 0.85;
}

.kolk-consent__links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.kolk-consent__link {
  color: var(--kolk-primary, #c7b299);
}

.kolk-consent__manage {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9997;
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(230, 216, 197, 0.18);
  background: rgba(30, 34, 39, 0.94);
  color: var(--kolk-foreground, #fafafa);
  text-align: left;
  cursor: pointer;
}

.kolk-consent__manage-label {
  display: block;
  color: rgba(199, 178, 153, 0.78);
  font-size: 0.72rem;
  line-height: 1.1;
}

.kolk-consent__manage-summary {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

html.kolk-consent-panel-open,
body.kolk-consent-panel-open {
  overflow: hidden;
}

.kolk-consent-map {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(199, 178, 153, 0.2);
  background: rgba(42, 47, 56, 0.85);
  color: var(--kolk-foreground, #fafafa);
}

.kolk-consent-map__body {
  display: grid;
  gap: 12px;
  max-width: 520px;
  text-align: left;
}

.kolk-consent-map .kolk-consent__button--primary {
  background: var(--kolk-primary, #c7b299);
  border-color: var(--kolk-primary, #c7b299);
  color: var(--kolk-consent-dark);
}

.kolk-consent-map .kolk-consent__button--secondary {
  border-color: rgba(199, 178, 153, 0.28);
  color: var(--kolk-foreground, #fafafa);
}

.kolk-consent-map .kolk-consent__link {
  color: var(--kolk-primary, #c7b299);
}

@media (max-width: 782px) {
  .kolk-consent__banner,
  .kolk-consent__panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .kolk-consent__body,
  .kolk-consent__panel-header,
  .kolk-consent__panel-footer,
  .kolk-consent__category {
    padding: 18px;
  }

  .kolk-consent__panel-header,
  .kolk-consent__panel-footer,
  .kolk-consent__category {
    grid-template-columns: 1fr;
  }

  .kolk-consent__manage {
    display: none !important;
  }

  .kolk-consent__actions,
  .kolk-consent-map__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kolk-consent__button,
  .kolk-consent__link {
    width: 100%;
    justify-content: center;
  }
}
