/* Keep page content (esp. footer links) scrollable above the fixed banner. */
html.amc-has-cookie-consent {
  scroll-padding-bottom: var(--amc-cookie-consent-offset, 180px);
}

html.amc-has-cookie-consent body {
  padding-bottom: var(--amc-cookie-consent-offset, 180px);
}

.amc-cookie-consent {
  position: fixed;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 1200;
  width: auto;
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  overflow: visible;
  color: #f8f9ff;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: inherit;
}

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

/* Match .container width so the app icon lines up with the nav brand icon. */
.amc-cookie-consent__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  max-height: inherit;
  margin-inline: auto;
  padding: 18px 0;
  overflow-y: auto;
  background: rgba(13, 17, 38, 0.96);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(4, 7, 24, 0.45);
}

.amc-cookie-consent__content {
  min-width: 0;
  padding-left: 0;
}

.amc-cookie-consent__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.amc-cookie-consent__icon {
  flex: 0 0 auto;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.amc-cookie-consent__title strong {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.4;
}

.amc-cookie-consent__content p {
  margin: 0 0 8px;
  color: #e4e7f7;
  line-height: 1.55;
}

.amc-cookie-consent__content .amc-cookie-consent__status {
  margin-top: 10px;
  color: #ffd2d8;
  font-weight: 600;
}

.amc-cookie-consent__content a {
  color: #c7c0ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.amc-cookie-consent__content a:hover {
  color: #ffffff;
}

.amc-cookie-consent__content a:focus-visible {
  outline: 2px solid #b9aeff;
  outline-offset: 3px;
  border-radius: 2px;
}

.amc-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 16px;
}

.amc-cookie-consent__actions > button {
  min-height: 44px;
  padding: 10px 16px;
  color: #f8f9ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #8173e8;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.amc-cookie-consent__actions > button:hover {
  color: #ffffff;
  background: rgba(129, 115, 232, 0.22);
  border-color: #b9aeff;
}

.amc-cookie-consent__actions > button:focus-visible {
  outline: 3px solid #b9aeff;
  outline-offset: 3px;
}

.footer-link-button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-link-button:hover {
  color: #ffffff;
}

.site-footer .footer-link-button {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
}

.site-footer .footer-link-button:hover {
  color: var(--text);
}

.footer-link-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .amc-cookie-consent__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
  }

  .amc-cookie-consent__actions {
    width: 100%;
    padding-right: 0;
  }

  .amc-cookie-consent__actions > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amc-cookie-consent__actions > button {
    transition: none;
    animation: none;
  }
}
