.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  width: auto;
  max-width: 420px;
  margin-left: auto;
  box-sizing: border-box;
}

.cookie-consent.is-hidden {
  display: none;
}

.cookie-consent__card {
  position: relative;
  background: #10131a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  color: #f3f4f7;
  box-sizing: border-box;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
  color: #fff;
}

.cookie-consent__text {
  margin: 0 0 14px;
  color: rgba(243, 244, 247, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-consent__check {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cookie-consent__button.is-active {
  background: #0f5f42;
  border-color: #32a678;
}

.cookie-consent__button.is-active .cookie-consent__check {
  opacity: 1;
}

.cookie-consent__links {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(243, 244, 247, 0.72);
  text-align: center;
}

.cookie-consent__links a {
  color: rgba(243, 244, 247, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__links a:hover,
.cookie-consent__links a:focus {
  color: #ffffff;
}

.cookie-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 22px;
  line-height: 1;
}

.cookie-consent__close:hover,
.cookie-consent__close:focus {
  color: #ffffff;
}

.legal-cookie-settings-cta {
  text-align: center;
  margin-top: 16px;
}

.legal-cookie-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.legal-cookie-settings-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

  .cookie-consent__card {
    padding: 14px;
  }

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

  .cookie-consent__text {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
}
