/* ---------- Privacy confirmation ----------------------------------- */
.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #d7d7df;
  background: rgba(21, 21, 31, 0.95);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  line-height: 1.45;
  animation: cookieNoticeIn 360ms ease both;
}

.cookie-notice--hidden {
  display: none;
}

.cookie-notice--leaving {
  animation: cookieNoticeOut 220ms ease both;
}

.cookie-notice__copy {
  flex: 1;
}

.cookie-notice a {
  color: #ff8a3d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice__button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff4d14);
  box-shadow: 0 8px 26px rgba(255, 87, 34, 0.28);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(255, 87, 34, 0.38);
}

@keyframes cookieNoticeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cookieNoticeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: calc(100vw - 24px);
    padding: 13px;
    font-size: 0.82rem;
  }

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