.aster-consent-banner {
  position: fixed;
  right: auto;
  bottom: max(.75rem, env(safe-area-inset-bottom));
  left: max(.75rem, env(safe-area-inset-left));
  z-index: 10000;
  display: flex;
  max-width: 47rem;
  margin: 0;
  padding: .75rem .875rem;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  color: #f8f5ee;
  background: #17211d;
  border: 1px solid #4c6358;
  border-radius: .65rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .28);
  font-family: Montserrat, sans-serif;
}

.aster-consent-banner[hidden] {
  display: none;
}

.aster-consent-copy strong,
.aster-consent-dialog h2 {
  font-family: "Playfair Display", serif;
}

.aster-consent-copy p {
  margin: .15rem 0;
  font-size: .875rem;
  line-height: 1.35;
}

.aster-consent-copy a {
  color: #fff;
  font-size: .8125rem;
  text-decoration: underline;
}

.aster-consent-actions,
.aster-consent-dialog-actions {
  display: flex;
  flex-shrink: 0;
  gap: .5rem;
}

.aster-consent-banner button,
.aster-consent-dialog button {
  min-height: 44px;
  padding: .6rem .875rem;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: .35rem;
  cursor: pointer;
  font: inherit;
}

.aster-consent-banner .aster-consent-primary,
.aster-consent-dialog .aster-consent-primary {
  color: #17211d;
  background: #f8f5ee;
}

.aster-consent-dialog button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.aster-consent-dialog {
  width: min(34rem, calc(100% - 2rem));
  padding: 1.5rem;
  color: #17211d;
  background: #f8f5ee;
  border: 1px solid #8b9b91;
  border-radius: .75rem;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, .3);
  font-family: Montserrat, sans-serif;
}

.aster-consent-dialog::backdrop {
  background: rgba(23, 33, 29, .7);
}

.aster-consent-dialog h2 {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
}

.aster-gpc-notice {
  margin: 1rem 0;
  padding: .85rem;
  line-height: 1.45;
  background: #e4ebe7;
  border-left: 4px solid #4c6358;
}

.aster-gpc-notice[hidden] {
  display: none;
}

.aster-consent-option {
  display: flex;
  margin: 1rem 0;
  padding: .85rem;
  gap: .75rem;
  align-items: flex-start;
  border: 1px solid #c9d1cc;
  border-radius: .5rem;
}

.aster-consent-option input {
  margin-top: .25rem;
}

.aster-consent-option small {
  display: block;
  margin-top: .2rem;
  line-height: 1.4;
}

.aster-consent-dialog-actions {
  justify-content: flex-end;
  margin-top: 1.25rem;
}

@media (max-width: 700px) {
  .aster-consent-banner {
    right: .5rem;
    bottom: max(.5rem, env(safe-area-inset-bottom));
    left: .5rem;
    max-width: none;
    margin: 0 auto;
    padding: .65rem .7rem calc(.65rem + env(safe-area-inset-bottom));
    gap: .55rem;
    align-items: stretch;
    flex-direction: column;
  }

  .aster-consent-copy strong {
    font-size: .9375rem;
  }

  .aster-consent-copy p {
    font-size: .78rem;
    line-height: 1.3;
  }

  .aster-consent-copy a {
    font-size: .75rem;
  }

  .aster-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
  }

  .aster-consent-banner button {
    min-width: 0;
    padding: .55rem .4rem;
    font-size: .78rem;
  }
}

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