.cookie_banner,
.cookie_drawer {
  --ck-black: #000;
  --ck-white: #fff;
  --ck-red: var(--colors-lit-red, #e10600);
  --ck-line: #d9d9d9;
  --ck-ease: cubic-bezier(.65, 0, .35, 1);
  --ck-font: bebas-neue-pro, sans-serif;
}

.cookie_drawer {
  --ck-line: rgba(255, 255, 255, .25);
  --ck-dark: var(--colors-lit-dk-bg, #0d0d0d);
}

.cookie_banner button,
.cookie_drawer button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cookie_label,
.cookie_small {
  margin: 0 -.1em 0 0;
  font-family: var(--ck-font);
  line-height: 1.2;
  letter-spacing: .1em;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.cookie_label {
  font-size: 1rem;
  font-weight: 400;
}

.cookie_small {
  font-size: .875rem;
  font-weight: 400;
  text-transform: uppercase;
}

.cookie_banner {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 25rem;
  padding: 1.5rem;
  background-color: var(--ck-red);
  color: var(--ck-white);
}

.cookie_banner[hidden],
.cookie_overlay[hidden],
.cookie_drawer[hidden] {
  display: none;
}

.cookie_title {
  margin: 0;
  font-family: var(--ck-font);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .1em;
  text-box: trim-both cap alphabetic;
}

.cookie_text,
.cookie_intro,
.cookie_row_text {
  margin-right: 0;
  line-height: 1.4;
  white-space: normal;
}

.cookie_text {
  color: rgba(255, 255, 255, .9);
}

.cookie_actions,
.cookie_footer_row {
  display: flex;
  gap: .5rem;
}

.cookie_btn {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  height: 3rem;
  transition: background-color .2s ease-out, color .2s ease-out;
}

.cookie_banner .cookie_btn.is-white {
  background-color: var(--ck-white);
  color: var(--ck-black);
}

.cookie_drawer .cookie_btn.is-black {
  height: 3.5rem;
  background-color: var(--ck-white);
  color: var(--ck-black);
}

.cookie_drawer .cookie_btn.is-outline {
  flex: none;
  height: 3.5rem;
  border: 1px solid var(--ck-white);
  color: var(--ck-white);
}

.cookie_links {
  display: flex;
  justify-content: space-between;
}

.cookie_link {
  color: var(--ck-white);
  transition: opacity .2s ease-out;
}

.cookie_link.is-underline {
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
}

.cookie_overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background-color: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .35s cubic-bezier(.65, 0, .35, 1);
}

.cookie_drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  width: 30rem;
  max-width: 100%;
  overflow-y: auto;
  border-left: 1px solid var(--ck-line);
  background-color: var(--ck-dark);
  color: var(--ck-white);
  transform: translateX(100%);
  transition: transform .35s var(--ck-ease);
}

.cookie_overlay.is-open {
  opacity: 1;
}

.cookie_drawer.is-open {
  transform: none;
}

.cookie_top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--ck-line);
}

.cookie_drawer p.cookie_label {
  color: var(--ck-white);
}

.cookie_banner .cookie_label,
.cookie_banner .cookie_title {
  color: inherit;
}


.cookie_close {
  transition: opacity .2s ease-out;
}

.cookie_intro {
  padding: 1.5rem 2rem calc(1.5rem - 1px);
  border-bottom: 1px solid var(--ck-line);
  color: rgba(255, 255, 255, .7);
}

.cookie_row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem 2rem calc(1.5rem - 1px);
  border-bottom: 1px solid var(--ck-line);
}

.cookie_row_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie_always {
  color: rgba(255, 255, 255, .55);
}

.cookie_row_text {
  color: rgba(255, 255, 255, .7);
}

.cookie_drawer .cookie_toggle {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 1.5rem;
  border: 1px solid var(--ck-white);
  background-color: var(--ck-dark);
  transition: background-color .2s ease-out;
}

.cookie_knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1rem;
  height: 1rem;
  background-color: var(--ck-white);
  transition: transform .2s var(--ck-ease), background-color .2s ease-out;
}

.cookie_drawer .cookie_toggle[aria-checked="true"] {
  background-color: var(--ck-white);
}

.cookie_toggle[aria-checked="true"] .cookie_knob {
  background-color: var(--ck-black);
  transform: translateX(1.25rem);
}

.cookie_footer {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem 2rem;
}

@media (hover: hover) {
  .cookie_link:hover,
  .cookie_close:hover {
    opacity: .6;
  }

  .cookie_banner .cookie_btn.is-white:hover {
    background-color: var(--ck-black);
    color: var(--ck-white);
  }

  .cookie_drawer .cookie_btn.is-black:hover {
    background-color: var(--ck-red);
    color: var(--ck-white);
  }

  .cookie_drawer .cookie_btn.is-outline:hover {
    background-color: var(--ck-white);
    color: var(--ck-black);
  }
}

@media screen and (max-width: 767px) {
  .cookie_banner {
    left: 0;
    right: 0;
    bottom: 0;
    gap: .875rem;
    width: auto;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .cookie_title {
    font-size: 1.25rem;
  }

  .cookie_drawer {
    top: auto;
    left: 0;
    width: auto;
    max-height: calc(100% - 3rem);
    border-top: 1px solid var(--ck-line);
    border-left: 0;
    transform: translateY(100%);
  }

  .cookie_top {
    height: 3rem;
    padding: 0 1.25rem;
  }

  .cookie_intro,
  .cookie_row {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .cookie_footer {
    padding: 1.5rem 1.25rem;
  }

  .cookie_drawer .cookie_btn.is-black,
  .cookie_drawer .cookie_btn.is-outline {
    height: 3.25rem;
  }
}
