.popup-content > .close-button {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.popup-content > .close-button::before,
.popup-content > .close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
}

.popup-content > .close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.popup-content > .close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

altcha-widget {
  display: block;
  width: 100%;
  --altcha-max-width: 100%;
  --altcha-border-radius: 6px;
  --altcha-color-base: #f4f4f2;
  --altcha-color-base-content: #171717;
  --altcha-color-neutral: #b5b5b0;
  --altcha-color-neutral-content: #4b4b47;
  --altcha-color-primary: #292927;
  --altcha-color-primary-content: #ffffff;
  --altcha-color-success: #397347;
  --altcha-color-success-content: #ffffff;
  --altcha-border-color: #b5b5b0;
  --altcha-checkbox-border-color: #74746f;
  --altcha-input-background-color: #ffffff;
  --altcha-input-color: #171717;
  --altcha-spinner-color: #4b4b47;
  color-scheme: light;
}

#brochureForm altcha-widget label {
  margin: 0;
  color: #171717;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

/* The dialog stands on its own; do not place a tinted rectangle over the page. */
.popup-container,
.popup-container.active {
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Compact R-Universe cookie notice */
.cookie-consent {
  position: fixed !important;
  right: clamp(1rem, 3vw, 2.5rem) !important;
  bottom: clamp(1rem, 3vw, 2rem) !important;
  left: auto !important;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(680px, calc(100vw - 2rem));
  margin: 0 !important;
  padding: 0.85rem 0.9rem 0.85rem 1.15rem !important;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.86) !important;
  color: #fff;
  font-family: 'Muli', sans-serif !important;
  text-align: left !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px) brightness(0.82) !important;
  backdrop-filter: blur(12px) brightness(0.82) !important;
  -webkit-mask: none !important;
  mask: none !important;
  cursor: default !important;
}

.cookie-consent-text {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-consent #acceptCookies {
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0.7rem 1.15rem !important;
  border: 1px solid #fff !important;
  border-radius: 999px;
  background: #fff !important;
  color: #191919 !important;
  font-family: 'Muli', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.cookie-consent #acceptCookies:hover {
  background: transparent !important;
  color: #fff !important;
}

.cookie-consent #acceptCookies:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cookie-consent {
    right: 1rem !important;
    bottom: 1rem !important;
    left: 1rem !important;
    width: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem !important;
  }

  .cookie-consent #acceptCookies {
    align-self: flex-start;
  }
}
