:root {
  --ck-cookie-ink: #292421;
  --ck-cookie-muted: #655b55;
  --ck-cookie-paper: #fffdf8;
  --ck-cookie-cocoa: #2b1a14;
  --ck-cookie-red: #7a263a;
  --ck-cookie-line: rgba(43, 26, 20, 0.18);
  --ck-cookie-shadow: 0 22px 70px rgba(30, 16, 11, 0.24);
}

.ck-cookie-banner,
.ck-cookie-dialog {
  font-family: Inter, Manrope, "Source Sans 3", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ck-cookie-banner[hidden],
.ck-cookie-settings[hidden] {
  display: none !important;
}

.ck-cookie-banner {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.78fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: linear-gradient(135deg, #2b1a14, #4a2c20);
  color: #fffaf3;
  box-shadow: var(--ck-cookie-shadow);
}

.ck-cookie-eyebrow {
  margin: 0 0 8px;
  color: #e0b374;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ck-cookie-banner h2,
.ck-cookie-dialog h2 {
  margin: 0;
  font-family: Lora, "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ck-cookie-banner p:not(.ck-cookie-eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: #eadfd3;
  font-size: 0.9rem;
  line-height: 1.62;
}

.ck-cookie-banner a,
.ck-cookie-dialog a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ck-cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ck-cookie-actions button,
.ck-cookie-dialog-actions button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ck-cookie-actions button:hover,
.ck-cookie-actions button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--ck-cookie-cocoa);
}

.ck-cookie-actions button:focus-visible,
.ck-cookie-settings:focus-visible,
.ck-cookie-dialog button:focus-visible,
.ck-cookie-dialog a:focus-visible,
.ck-cookie-switch input:focus-visible + span {
  outline: 3px solid #e0b374;
  outline-offset: 3px;
}

.ck-cookie-settings {
  position: fixed;
  z-index: 2147482998;
  bottom: 14px;
  left: 14px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(43, 26, 20, 0.94);
  color: #fffaf3;
  box-shadow: 0 8px 24px rgba(30, 16, 11, 0.18);
  cursor: pointer;
  font: 750 0.68rem/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.ck-cookie-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 6px;
  background: var(--ck-cookie-paper);
  color: var(--ck-cookie-ink);
  box-shadow: var(--ck-cookie-shadow);
}

.ck-cookie-dialog::backdrop {
  background: rgba(26, 14, 10, 0.68);
  backdrop-filter: blur(3px);
}

.ck-cookie-dialog-card {
  margin: 0;
  padding: clamp(24px, 5vw, 40px);
}

.ck-cookie-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.ck-cookie-dialog .ck-cookie-eyebrow {
  color: var(--ck-cookie-red);
}

.ck-cookie-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ck-cookie-line);
  border-radius: 50%;
  background: transparent;
  color: var(--ck-cookie-ink);
  cursor: pointer;
  font: 400 1.6rem/1 ui-sans-serif, system-ui, sans-serif;
}

.ck-cookie-intro {
  margin: 18px 0 24px;
  color: var(--ck-cookie-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ck-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--ck-cookie-line);
}

.ck-cookie-category h3 {
  margin: 0;
  font-size: 0.92rem;
}

.ck-cookie-category p {
  margin: 7px 0 0;
  color: var(--ck-cookie-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.ck-cookie-always {
  color: #48683c;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.ck-cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.ck-cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ck-cookie-switch span {
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #c9c2b9;
  cursor: pointer;
  transition: background 160ms ease;
}

.ck-cookie-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease;
}

.ck-cookie-switch input:checked + span {
  background: var(--ck-cookie-red);
}

.ck-cookie-switch input:checked + span::after {
  transform: translateX(22px);
}

.ck-cookie-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--ck-cookie-line);
}

.ck-cookie-dialog-actions a {
  color: var(--ck-cookie-red);
  font-size: 0.78rem;
}

.ck-cookie-dialog-actions button {
  min-width: 170px;
  border-color: var(--ck-cookie-cocoa);
  background: var(--ck-cookie-cocoa);
}

@media (max-width: 820px) {
  .ck-cookie-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .ck-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
    padding: 20px;
  }

  .ck-cookie-actions {
    grid-template-columns: 1fr;
  }

  .ck-cookie-category {
    gap: 16px;
  }

  .ck-cookie-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ck-cookie-dialog-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-cookie-actions button,
  .ck-cookie-switch span,
  .ck-cookie-switch span::after {
    transition: none;
  }
}
