.cookie-consent[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 10001;
  margin: 0 auto;
  max-width: 1080px;
  color: #263044;
  font-family: 'Open Sans', sans-serif;
  animation: cookie-consent-enter .28s ease-out both;
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(31, 23, 68, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(17, 14, 41, .28);
}

.cookie-consent__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(241, 136, 45, .14);
  color: var(--orange);
  font-size: 1.3rem;
}

.cookie-consent__content h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font: 900 1.05rem/1.25 'Montserrat', sans-serif;
}

.cookie-consent__content > p {
  margin: 0;
  color: #505a6c;
  font-size: .86rem;
  line-height: 1.55;
}

.cookie-consent__details {
  margin-top: 7px;
  font-size: .79rem;
}

.cookie-consent__details summary {
  width: fit-content;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__details summary:hover {
  color: var(--orange);
}

.cookie-consent__categories {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f4f6f8;
}

.cookie-consent__categories p {
  margin: 0;
  line-height: 1.45;
}

.cookie-consent__actions {
  display: flex;
  gap: 9px;
}

.cookie-consent__button {
  min-height: 42px;
  padding: 10px 16px;
  border: 2px solid var(--navy);
  border-radius: 50px;
  font: 800 .72rem/1.15 'Montserrat', sans-serif;
  letter-spacing: .025em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 23, 68, .2);
}

.cookie-consent__button--primary:hover {
  background: var(--blue);
}

.cookie-consent__button--secondary {
  background: #fff;
  color: var(--navy);
}

.cookie-consent__button--secondary:hover {
  background: #f1f3f8;
}

.cookie-consent :focus-visible,
.cookie-settings-link:focus-visible,
.external-media-consent button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font: inherit;
  cursor: pointer;
}

.cookie-settings-link:hover {
  color: var(--cyan);
}

[data-cookie-src][hidden] {
  display: none !important;
}

.external-media-consent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(145deg, #1f1744, #293283);
  color: #fff;
  text-align: center;
}

.external-media-consent i {
  color: var(--cyan);
  font-size: 1.5rem;
}

.external-media-consent p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: .84rem;
  line-height: 1.45;
}

.external-media-consent button {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50px;
  background: #fff;
  color: var(--navy);
  font: 800 .7rem 'Montserrat', sans-serif;
  cursor: pointer;
}

@keyframes cookie-consent-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cookie-consent__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: calc(100dvh - 20px);
    padding: 18px;
    overflow-y: auto;
  }

  .cookie-consent__icon {
    display: none;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__button {
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    animation: none;
  }

  .cookie-consent__button {
    transition: none;
  }
}
