/* PercentSwift Material Design 3 — Consent & Privacy Banner */
.ps-consent {
  position: fixed;
  z-index: 10000;
  inset: auto 20px 20px;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
  background: var(--md-sys-color-surface-container-lowest, #ffffff);
  color: var(--md-sys-color-on-surface, #1f1f1f);
  box-shadow: var(--md-sys-elevation-3, 0 12px 32px rgba(15, 23, 42, 0.16));
  font: 400 0.875rem/1.55 var(--font-sans, system-ui, sans-serif);
  text-align: start;
}

.ps-consent[hidden] {
  display: none !important;
}

.ps-consent strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface, #1f1f1f);
}

.ps-consent p {
  margin: 0 0 8px;
  color: var(--md-sys-color-on-surface-variant, #444746);
}

.ps-consent a {
  color: var(--md-sys-color-primary, #0b57d0);
  font-weight: 600;
  text-decoration: underline;
}

.ps-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 164px;
}

.ps-consent button {
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: var(--md-sys-color-primary, #0b57d0);
  color: var(--md-sys-color-on-primary, #ffffff);
  font: 600 0.875rem/1 var(--font-sans, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.ps-consent button:hover {
  background: var(--md-sys-color-primary-hover, #0842a0);
}

.ps-consent .ps-consent-decline {
  background: transparent;
  color: var(--md-sys-color-on-surface, #1f1f1f);
  border-color: var(--md-sys-color-outline, #747775);
}

.ps-consent .ps-consent-decline:hover {
  background: var(--md-sys-color-surface-container, #e9eef6);
}

button.ps-privacy-settings,
.intl button.ps-privacy-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  width: fit-content;
  margin: 0;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
  background: var(--md-sys-color-surface-container, #e9eef6);
  color: var(--md-sys-color-on-surface, #1f1f1f);
  font: 600 0.8125rem/1 var(--font-sans, system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

button.ps-privacy-settings:hover,
.intl button.ps-privacy-settings:hover {
  background: var(--md-sys-color-secondary-container, #c2e7ff);
  color: var(--md-sys-color-on-secondary-container, #001d35);
  border-color: var(--md-sys-color-secondary, #00639b);
}

@media (max-width: 600px) {
  .ps-consent {
    inset-inline: 12px;
    bottom: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .ps-consent-actions {
    flex-direction: row;
    min-width: 0;
  }

  .ps-consent-actions button {
    flex: 1 1 50%;
  }
}
