.mpw-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #111;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.mpw-consent-banner__content {
  flex: 1 1 280px;
  max-width: 720px;
}

.mpw-consent-banner__actions,
.mpw-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mpw-consent-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.mpw-consent-banner .mpw-consent-title {
  color: #fff;
}

.mpw-consent-modal .mpw-consent-title {
  color: #111;
}

.mpw-consent-text {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.mpw-consent-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mpw-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.625rem 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mpw-consent-btn--primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.mpw-consent-btn--primary:hover {
  background: #e8e8e8;
}

.mpw-consent-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.mpw-consent-btn--ghost:hover {
  border-color: #fff;
}

.mpw-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
}

.mpw-consent-modal {
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 1.5rem;
  background: #fff;
  color: #111;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.mpw-consent-modal .mpw-consent-text {
  color: #444;
}

.mpw-consent-categories {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.mpw-consent-category {
  padding: 0.875rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
}

.mpw-consent-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mpw-consent-category__label {
  font-size: 0.9375rem;
  font-weight: 700;
}

.mpw-consent-category__desc {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #555;
}

.mpw-consent-toggle {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #111;
}

.mpw-consent-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 180px;
  padding: 1.25rem;
  border: 1px dashed #ccc;
  border-radius: 6px;
  background: #f7f7f7;
  color: #222;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.mpw-consent-embed-placeholder__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.mpw-consent-embed-placeholder__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
  max-width: 52ch;
}

.mpw-consent-settings-link {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 99990;
  appearance: none;
  border: none;
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.mpw-consent-settings-link:hover {
  background: #111;
}

@media (max-width: 767px) {
  .mpw-consent-banner {
    padding: 1rem;
  }

  .mpw-consent-banner__actions,
  .mpw-consent-modal__actions {
    width: 100%;
  }

  .mpw-consent-banner__actions .mpw-consent-btn,
  .mpw-consent-modal__actions .mpw-consent-btn {
    flex: 1 1 auto;
  }

  .mpw-consent-settings-link {
    left: 0.5rem;
    bottom: 0.5rem;
  }
}

.mpw-privacy-consent {
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  padding: 2.5rem 1.5rem 3rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111;
}

.mpw-privacy-consent__inner {
  max-width: 820px;
  margin: 0 auto;
}

.mpw-privacy-consent h2,
.mpw-privacy-consent h3 {
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.mpw-privacy-consent h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.mpw-privacy-consent p,
.mpw-privacy-consent li {
  line-height: 1.6;
  color: #333;
}

.mpw-privacy-consent ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.mpw-privacy-consent__settings {
  margin-top: 1.5rem;
}
