/* Cookie banner + compact site footer (works on CSP-protected auth pages). */

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 36px));
  z-index: 9999;
}

.cookie-notice.cookie-notice--dismissed,
.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(200, 221, 255, 0.23);
  background: linear-gradient(160deg, rgba(12, 23, 48, 0.98), rgba(7, 15, 31, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.cookie-notice-text {
  margin: 0;
  flex: 1 1 240px;
  color: #d7e4ff;
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: left;
}

.cookie-notice a {
  color: #8fd0ff;
  font-weight: 600;
  text-decoration: none;
}

.cookie-notice a:hover {
  text-decoration: underline;
}

.cookie-notice-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 84px;
  min-height: 40px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #f7fbff;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  background: linear-gradient(120deg, #47b4ff, #2f7dff);
  box-shadow: 0 8px 20px rgba(47, 125, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
}

.cookie-notice-btn:hover {
  filter: brightness(1.05);
}

/* Push page content up so the fixed cookie bar does not cover the site footer. */
body:has(.cookie-notice:not(.cookie-notice--dismissed):not([hidden])) {
  padding-bottom: clamp(108px, 16vw, 148px);
}

.site-page-footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 0 0 24px;
}

.site-page-footer .wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-page-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  color: #afbddb;
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-page-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.site-page-footer .footer-links a {
  color: #afbddb;
  text-decoration: none;
}

.site-page-footer .footer-links a:hover {
  color: #d7e4ff;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .cookie-notice {
    width: calc(100% - 28px);
    bottom: 12px;
  }

  .cookie-notice-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

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

  .cookie-notice-btn {
    align-self: center;
    min-width: 120px;
  }
}
