.cookie-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 9999;
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

.cookie-box {
  position: relative;
  width: min(420px, 100%);
  max-width: 100%;
  padding: 28px 28px 22px;
  border: 1px solid #ececec;
  border-radius: 24px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  color: #111111;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 22px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  overflow: hidden;
}

.cookie-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(59, 183, 181, 0.2), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(244, 150, 24, 0.22), transparent 40%),
    radial-gradient(circle at 72% 18%, rgba(206, 23, 23, 0.15), transparent 34%);
  pointer-events: none;
}

.cookie-box > * {
  position: relative;
  z-index: 1;
}

.cookie-box h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cookie-box p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #444444;
  max-width: 34ch;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.cookie-accept,
.cookie-decline {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.cookie-accept {
  background: linear-gradient(135deg, #ce1717, #f49618);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(206, 23, 23, 0.26);
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(206, 23, 23, 0.34);
}

.cookie-decline {
  background: rgba(255, 255, 255, 0.88);
  border-color: #e7e7e7;
  color: #111111;
}

.cookie-decline:hover {
  transform: translateY(-2px);
  border-color: #3bb7b5;
  color: #3bb7b5;
  box-shadow: 0 8px 20px rgba(59, 183, 181, 0.16);
}

.cookie-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: 100%;
}


.cookie-link:hover {
  color: #ce1717;

}


@media (max-width: 767px) {
  .cookie-overlay {
    inset: 0;
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }

  .cookie-box {
    width: 100%;
    min-height: 40vh;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px calc(18px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cookie-box p {
    max-width: none;
  }

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

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-accept,
  .cookie-decline {
    width: 100%;
  }
}
