.cookie-consent-banner {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px) brightness(.5);
}

.cookies-consent-container {
  position: fixed;
  top: 50%;
  left: 50%;
  width: calc(100% - 30px);
  max-width: 680px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .22);
  color: #222;
  font-size: 12px;
  transform: translate(-50%, -50%);
}

.cookies-consent {
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  padding: 48px 56px 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cookies-consent::-webkit-scrollbar { display: none; }

.cookie-consent-banner h2 {
  margin: 0 0 18px;
  color: #000;
  font-size: 28px;
  font-weight: 300;
  line-height: 34px;
}

.cookie-consent-banner h3 {
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.cookie-consent-banner-information { padding-bottom: 6px; }

.cookie-consent-banner-information p {
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

.cookie-description,
.cookie-input-flex label {
  color: #686868;
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
}

.cookie-description { margin: 8px 0 0; }
.cookie-input-flex label { cursor: pointer; }
.cookie-input-flex label:hover,
.cookie-input-flex label:focus { color: #000; }

.cookie-input-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookies-consent-banner-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 56px;
  background: #fff;
  box-shadow: 0 0 99.5px rgba(0, 0, 0, .1);
}

.cookie-consent-banner-information a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-button {
  min-width: 150px;
  padding: 12px 20px;
  border: 0;
  border-radius: 43px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.btn-cookies-grey {
  background: #f4f4f4;
  color: #171717;
  transition: background-color .2s ease;
}

.btn-cookies-grey:hover,
.btn-cookies-grey:focus { background: #ddd; }

.cookie-consent-button.btn-cookies-black {
  background: #212121;
  color: #fff;
  transition: background-color .2s ease;
}

.cookie-consent-button.btn-cookies-black:hover,
.cookie-consent-button.btn-cookies-black:focus {
  background: #000;
  color: #fff;
}

.cookie-consent-button-reject {
  padding: 8px 0;
  border: 0;
  background: none;
  color: #171717;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cookie-consent-button-reject:hover,
.cookie-consent-button-reject:focus { text-decoration: underline; }

.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.cookies-manage {
  padding: 18px 0;
  border-bottom: 1px solid #d6d6d6;
}

.cookies-manage:first-child {
  margin-top: 22px;
  border-top: 1px solid #d6d6d6;
}

.cookie-input-content {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cookie-input-content input[type="radio"] {
  accent-color: #000;
  cursor: pointer;
}

.btn-accept-some {
  flex: none;
  width: fit-content;
  min-width: 180px;
  border: 1px solid #000;
  background: #fff;
  color: #171717;
  transition: border-color .2s ease, background-color .2s ease;
}

.btn-accept-some:hover,
.btn-accept-some:focus {
  border-color: #ddd;
  background: #ddd;
}

.cookies-buttons-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
}

.cookies-manage-content {
  display: none;
  opacity: 0;
}

.cookies-manage-content.active {
  display: block;
  opacity: 1;
  animation: cookies-grow-down .25s ease-in-out forwards;
}

@keyframes cookies-grow-down {
  from { transform: scaleY(.98); }
  to { transform: scaleY(1); }
}

@media (max-width: 900px) {
  .cookies-consent { padding: 36px 32px 28px; }
  .cookies-consent-banner-flex { padding: 24px 32px; }
  .cookie-consent-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-button { width: 100%; }
  .cookie-consent-banner h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .cookie-consent-banner-information p {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (max-width: 540px) {
  .cookies-consent-container { border-radius: 24px; }
  .cookies-consent {
    max-height: calc(100vh - 210px);
    padding: 30px 22px 24px;
  }
  .cookies-consent-banner-flex { padding: 20px 22px; }
  .cookie-consent-button,
  .cookie-consent-button-reject { font-size: 14px; }
  .cookie-consent-banner h3 {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookies-manage-content.active { animation: none; }
}
