/* Multibaby cookie-consent banner.
 * Night palette. Values hardcoded from design-system/colors_and_type.css
 * because that token file is not linked on the shipped site. */

.mb-consent {
  --c-surface: #191412; /* mb-ink-850 - raised sheet */
  --c-bone: #f7f0e8; /* mb-bone      - heading */
  --c-sand: #dcc3a8; /* mb-sand      - body copy */
  --c-on-accent: #33210f; /* mb-on-accent - CTA label */
  --c-rim: rgba(247, 240, 232, 0.12);
  --c-amber: #e89a52; /* mb-amber-400 */

  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000; /* above everything, below nothing */
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--c-rim);
  border-radius: 24px; /* mb-radius-lg */
  background: var(--c-surface);
  box-shadow: 0 0 70px 10px rgba(10, 8, 7, 0.6);
  font-family: "Lexend", arial, sans-serif;

  /* enter animation baseline */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mb-consent--in {
  opacity: 1;
  transform: translateY(0);
}

.mb-consent__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 140%;
  color: var(--c-bone);
}

.mb-consent__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  color: var(--c-sand);
}

.mb-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mb-consent__btn {
  appearance: none;
  cursor: pointer;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border-radius: 100px; /* mb-radius-pill */
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: opacity 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Primary = same CTA gradient + glow as the Download button. */
.mb-consent__accept {
  border: none;
  color: var(--c-on-accent);
  background: linear-gradient(180deg, #e89a52 0%, #f8cfa4 100%);
  box-shadow: 0 0 22px 2px rgba(232, 154, 82, 0.4);
}

.mb-consent__accept:hover {
  opacity: 0.92;
}

/* Secondary = quiet outline. Equal weight, not hidden. */
.mb-consent__decline {
  border: 1px solid var(--c-rim);
  color: var(--c-sand);
  background: transparent;
}

.mb-consent__decline:hover {
  border-color: rgba(247, 240, 232, 0.28);
  background: rgba(255, 176, 110, 0.05);
}

.mb-consent__btn:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 2px;
}

/* Side-by-side once there's room. */
@media (min-width: 480px) {
  .mb-consent__actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .mb-consent__btn {
    width: auto;
    min-width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-consent {
    transition: none;
    transform: none;
  }
}
