.ip-consent {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  font-family: var(--font-body, "Trebuchet MS", "Segoe UI", Arial, sans-serif);
}

.ip-consent.is-visible,
.ip-consent.is-panel-open {
  display: flex;
}

.ip-consent-box,
.ip-consent-panel {
  width: min(100%, 46rem);
  border: 1px solid rgba(224, 211, 166, 0.58);
  border-radius: 18px;
  background: rgba(18, 22, 29, 0.97);
  color: #f4efdf;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.ip-consent-box {
  padding: 1.2rem;
}

.ip-consent-panel {
  display: none;
  padding: 1.15rem;
}

.ip-consent.is-panel-open .ip-consent-box {
  display: none;
}

.ip-consent.is-panel-open .ip-consent-panel {
  display: block;
}

.ip-consent-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fffaf0;
}

.ip-consent-text {
  margin: 0;
  color: #ede6cc;
  line-height: 1.55;
}

.ip-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ip-consent-button {
  min-height: 2.65rem;
  border: 1px solid rgba(244, 239, 223, 0.22);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: transparent;
  color: #f4efdf;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ip-consent-button:hover,
.ip-consent-button:focus-visible {
  border-color: #e0d3a6;
  background: rgba(224, 211, 166, 0.12);
  outline: none;
}

.ip-consent-button.is-primary {
  border-color: #e0d3a6;
  background: #e0d3a6;
  color: #171f29;
}

.ip-consent-button.is-muted {
  color: #ede6cc;
}

.ip-consent-category {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(244, 239, 223, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.ip-consent-category label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.ip-consent-category input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  accent-color: #e0d3a6;
}

.ip-consent-category strong {
  display: block;
  color: #fffaf0;
}

.ip-consent-category span {
  display: block;
  color: #ede6cc;
  line-height: 1.45;
}

.ip-consent-trigger {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 999;
  display: none;
  min-height: 2.4rem;
  border: 1px solid rgba(224, 211, 166, 0.58);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(18, 22, 29, 0.94);
  color: #f4efdf;
  font: 700 0.9rem var(--font-body, "Trebuchet MS", "Segoe UI", Arial, sans-serif);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.ip-consent-trigger.is-visible {
  display: inline-flex;
}

@media (max-width: 720px) {
  .ip-consent {
    inset: auto 0.75rem 0.75rem 0.75rem;
  }

  .ip-consent-actions {
    flex-direction: column;
  }

  .ip-consent-button {
    width: 100%;
  }

  .ip-consent-trigger {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}
