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

.cookie-consent {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 18px;
  width: min(980px, calc(100% - 36px));
  margin-inline: auto;
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 211, 124, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(97, 224, 211, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(7, 24, 33, 0.97), rgba(23, 50, 60, 0.95));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: #fff;
  font-family: "Heebo", Arial, sans-serif;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent__text {
  display: grid;
  gap: 4px;
  line-height: 1.55;
}

.cookie-consent__text strong {
  color: #f4d37c;
  font-size: 1rem;
  font-weight: 900;
}

.cookie-consent__text span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.93rem;
  font-weight: 600;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.cookie-consent__link,
.cookie-consent__accept {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cookie-consent__link {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cookie-consent__accept {
  border: 0;
  background: linear-gradient(135deg, #f8dc83, #d39b24);
  box-shadow: 0 10px 26px rgba(211, 155, 36, 0.28);
  color: #0d1720;
}

.cookie-consent__link:hover,
.cookie-consent__accept:hover {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 10px;
    width: calc(100% - 20px);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    gap: 12px;
  }

  .cookie-consent__text {
    text-align: center;
  }

  .cookie-consent__text span {
    font-size: 0.86rem;
  }

  .cookie-consent__actions {
    justify-content: center;
  }

  .cookie-consent__link,
  .cookie-consent__accept {
    flex: 1 1 0;
  }
}
