.mdp-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(2, 5, 12, 0.72);
  backdrop-filter: blur(8px);
}

.mdp-consent-dialog {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(46rem, calc(100% - 2rem));
  transform: translateX(-50%);
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 1.25rem;
  background: #0a0f1d;
  color: #f8f5ec;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: clamp(1.25rem, 4vw, 2rem);
  font-family: inherit;
}

.mdp-consent-dialog h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.2;
}

.mdp-consent-dialog p {
  margin: 0.85rem 0 0;
  color: rgba(248, 245, 236, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.mdp-consent-dialog a {
  color: #e7bd70;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mdp-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.mdp-consent-button {
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.mdp-consent-button:hover,
.mdp-consent-button:focus-visible {
  border-color: #d4a24c;
  outline: 3px solid rgba(212, 162, 76, 0.25);
  outline-offset: 2px;
}

.mdp-consent-button--primary {
  border-color: #d4a24c;
  background: #d4a24c;
  color: #070b14;
}

.mdp-consent-preferences {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mdp-consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  padding: 1rem;
}

.mdp-consent-option strong,
.mdp-consent-option span {
  display: block;
}

.mdp-consent-option span {
  margin-top: 0.2rem;
  color: rgba(248, 245, 236, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.mdp-consent-option input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: #d4a24c;
}

.mdp-consent-manage {
  position: fixed;
  z-index: 9000;
  left: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  min-height: 2.75rem;
  border: 1px solid rgba(212, 162, 76, 0.5);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  background: rgba(7, 11, 20, 0.94);
  color: #f4cf88;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.mdp-cal-placeholder {
  min-height: 28rem;
  display: grid;
  place-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: #f8f5ec;
  color: #0a0f1d;
}

.mdp-cal-placeholder p {
  max-width: 36rem;
  margin: 0;
  line-height: 1.6;
}

.mdp-cal-placeholder .mdp-consent-button {
  justify-self: center;
  border-color: #b6812d;
  background: #d4a24c;
  color: #070b14;
}

[hidden] {
  display: none !important;
}

@media (max-width: 42rem) {
  .mdp-consent-actions {
    grid-template-columns: 1fr;
  }

  .mdp-consent-dialog {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
  }

  .mdp-consent-manage {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdp-consent-dialog,
  .mdp-consent-backdrop {
    scroll-behavior: auto;
  }
}
