.hd-cookie[hidden],
.hd-cookie [hidden] {
  display: none !important;
}

.hd-cookie {
  position: fixed;
  inset: auto 0 0;
  z-index: 100000;
  padding: 16px;
  color: #131514;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  pointer-events: none;
}

.hd-cookie__backdrop {
  display: none;
}

.hd-cookie__panel {
  position: relative;
  width: min(700px, 100%);
  margin-left: auto;
  padding: 20px 22px;
  color: #131514;
  background: #f1eee6;
  border: 1px solid #c9c5ba;
  border-top: 4px solid #e63b24;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .22);
  pointer-events: auto;
}

.hd-cookie h2 {
  margin: 0 42px 7px 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.hd-cookie p {
  max-width: 660px;
  margin: 0;
  color: #555952;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.hd-cookie__close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #131514;
  background: transparent;
  border: 0;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.hd-cookie__categories {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.hd-cookie__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, .12);
}

.hd-cookie__category > div,
.hd-cookie__category > span:first-child {
  display: grid;
  gap: 3px;
}

.hd-cookie__category small {
  color: #616466;
  line-height: 1.35;
}

.hd-cookie__always {
  color: #55705e;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hd-cookie__category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hd-cookie__category i {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  background: #c9ccce;
  border-radius: 99px;
  transition: .2s;
}

.hd-cookie__category i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  content: "";
  transition: .2s;
}

.hd-cookie__category input:checked + i {
  background: #f05a28;
}

.hd-cookie__category input:checked + i::after {
  transform: translateX(20px);
}

.hd-cookie__category input:focus-visible + i {
  outline: 3px solid #151515;
  outline-offset: 3px;
}

.hd-cookie__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hd-cookie__button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  color: #131514;
  background: transparent;
  border: 1px solid #131514;
  font: 600 13px Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.hd-cookie__button--primary {
  color: #fff;
  background: #131514;
  border-color: #131514;
}

.hd-cookie__button:hover,
.hd-cookie__button:focus-visible {
  color: #fff;
  background: #e63b24;
  border-color: #e63b24;
}

.hd-cookie__button:focus-visible,
.hd-cookie__link:focus-visible,
.hd-cookie__close:focus-visible {
  outline: 3px solid rgba(230, 59, 36, .3);
  outline-offset: 3px;
}

.hd-cookie__link {
  padding: 8px;
  color: #131514;
  background: transparent;
  border: 0;
  font: 600 12px Inter, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.hd-cookie__privacy {
  display: inline-block;
  margin-top: 12px;
  color: #555952;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  text-underline-offset: 3px;
}

.hd-cookie--settings .hd-cookie__panel {
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
}

@media (max-width: 600px) {
  .hd-cookie {
    padding: 8px;
  }

  .hd-cookie__panel {
    width: 100%;
    padding: 16px;
  }

  .hd-cookie h2 {
    font-size: 25px;
  }

  .hd-cookie p {
    font-size: 14px;
  }

  .hd-cookie__actions {
    align-items: stretch;
  }

  .hd-cookie__button {
    flex: 1 1 auto;
  }

  .hd-cookie__link {
    width: 100%;
    padding-left: 0;
    text-align: left;
  }

  .hd-cookie__category {
    align-items: flex-start;
  }

  .hd-cookie__always {
    white-space: normal;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-cookie__category i,
  .hd-cookie__category i::after {
    transition: none;
  }
}
