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

.cookie-consent {
  --cookie-consent-color: #00a8d2;
  --cookie-consent-hover: #0096bc;
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10000;
  max-width: 1180px;
  margin: 0 auto;
  color: #262626;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-top: 3px solid var(--cookie-consent-color);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}

.cookie-consent[data-cookie-brand="polarline"] {
  --cookie-consent-color: #440779;
  --cookie-consent-hover: #05053e;
}

.cookie-consent[data-cookie-brand="megamax"] {
  --cookie-consent-color: #28607c;
  --cookie-consent-hover: #204d63;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 24px;
}

.cookie-consent__content {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 6px;
  color: #111111;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.cookie-consent__description {
  max-width: 760px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.cookie-consent__link {
  color: var(--cookie-consent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.cookie-consent__button {
  min-width: 174px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--cookie-consent-color);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
}

.cookie-consent__button--primary {
  color: #ffffff;
  background: var(--cookie-consent-color);
}

.cookie-consent__button--secondary {
  color: var(--cookie-consent-color);
  background: #ffffff;
}

.cookie-consent__button:focus-visible,
.cookie-consent__link:focus-visible,
.cookie-consent-settings:focus-visible {
  outline: 2px solid var(--cookie-consent-color);
  outline-offset: 3px;
}

.cookie-consent-settings {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0.48;
  cursor: pointer;
}

.footer__social-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__bottom {
  align-items: flex-start;
}

.footer__social-row .socials__item:last-child {
  margin-right: 0;
}

.footer__cookie-settings--mobile {
  display: none;
}

@media (hover: hover) {
  .cookie-consent__button--primary:hover {
    background: var(--cookie-consent-hover);
    border-color: var(--cookie-consent-hover);
  }

  .cookie-consent__button--secondary:hover,
  .cookie-consent__link:hover {
    color: var(--cookie-consent-hover);
  }

  .cookie-consent-settings:hover {
    color: inherit;
    opacity: 0.75;
  }
}

@media (max-width: 767px) {
  .cookie-consent-settings--desktop {
    display: none;
  }

  .footer__cookie-settings--mobile {
    display: block;
  }

  .footer__cookie-settings--mobile .cookie-consent-settings {
    width: 100%;
    text-align: center;
    opacity: 0.7;
  }

  .footer__social-row {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .cookie-consent__inner {
    align-items: stretch;
    gap: 18px;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }
}

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

  .cookie-consent__inner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px 16px;
  }

  .cookie-consent__title {
    font-size: 20px;
  }

  .cookie-consent__description {
    font-size: 14px;
  }

  .cookie-consent__actions {
    width: 100%;
    gap: 8px;
  }

  .cookie-consent__button {
    width: 100%;
    min-width: 0;
  }
}
