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

.cookie-consent {
  position: fixed;
  z-index: 5000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  color: #f5f7fb;
  border: 1px solid rgba(234, 190, 129, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at top left,
      rgba(192, 131, 41, 0.16),
      transparent 35%
    ),
    rgba(10, 13, 20, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}

.cookie-consent__text {
  max-width: 680px;
  margin: 0 0 9px;
  color: rgba(234, 239, 248, 0.82);
  font-size: 14px;
  line-height: 1.65;
}

.cookie-consent__policy {
  color: #eabe81;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__policy:hover {
  color: #ffffff;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 46px;
  padding: 0 18px;
  cursor: pointer;
  border: 1px solid rgba(234, 190, 129, 0.48);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

.cookie-consent__button--reject {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.04);
}

.cookie-consent__button--reject:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.09);
}

.cookie-consent__button--accept {
  color: #0a0b10;
  border-color: #eabe81;
  background: linear-gradient(135deg, #eabe81, #c08329);
}

.cookie-consent__button--accept:hover {
  border-color: #f0d1a7;
  background: linear-gradient(135deg, #f0d1a7, #cf9137);
}

.af-cookie-settings-link {
  width: fit-content;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  transition: color 0.25s ease;
}

.af-cookie-settings-link:hover {
  color: #ffffff;
}

.legal-cookie-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 20px;
  cursor: pointer;
  color: #0a0b10;
  border: 1px solid #eabe81;
  border-radius: 999px;
  background: linear-gradient(135deg, #eabe81, #c08329);
  font-weight: 800;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    border-radius: 16px;
  }

  .cookie-consent__content {
    display: grid;
    gap: 16px;
    padding: 18px;
  }

  .cookie-consent__actions {
    width: 100%;
  }
}

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

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