:root {
  --ppmc-red: #ca3a2c;
  --ppmc-brown: #36201a;
  --ppmc-stone: #d8d4c2;
  --ppmc-cream: #f5efe5;
  --ppmc-white: #fffdf9;
}

.ppmc-consent[hidden],
.ppmc-privacy-trigger[hidden],
.ppmc-consent__preferences[hidden],
.ppmc-consent__actions [hidden] {
  display: none !important;
}

.ppmc-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  align-items: end;
  padding: 24px;
  background: rgba(28, 20, 17, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ppmc-consent__panel {
  position: relative;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(54, 32, 26, 0.16);
  border-radius: 28px;
  background: var(--ppmc-white);
  color: var(--ppmc-brown);
  box-shadow: 0 24px 80px rgba(28, 20, 17, 0.24);
}

.ppmc-consent__panel h2 {
  margin: 0 48px 12px 0;
  font: inherit;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ppmc-brown);
}

.ppmc-consent__panel > p:not(.ppmc-consent__eyebrow) {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(54, 32, 26, 0.72);
}

.ppmc-consent__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ppmc-red);
}

.ppmc-consent__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(54, 32, 26, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--ppmc-brown);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ppmc-consent__preferences {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ppmc-cream);
}

.ppmc-consent__preferences label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.ppmc-consent__preferences input {
  width: 18px;
  height: 18px;
  accent-color: var(--ppmc-red);
}

.ppmc-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.ppmc-button,
.ppmc-link-button {
  appearance: none;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(54, 32, 26, 0.24);
  border-radius: 999px;
  background: transparent;
  color: var(--ppmc-brown);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ppmc-button--primary {
  border-color: var(--ppmc-red);
  background: var(--ppmc-red);
  color: #fff;
}

.ppmc-link-button {
  min-height: auto;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ppmc-button:focus-visible,
.ppmc-link-button:focus-visible,
.ppmc-consent__close:focus-visible,
.ppmc-privacy-trigger:focus-visible {
  outline: 3px solid rgba(202, 58, 44, 0.34);
  outline-offset: 3px;
}

.ppmc-privacy-trigger {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147482000;
  padding: 10px 14px;
  border: 1px solid rgba(54, 32, 26, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ppmc-brown);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(28, 20, 17, 0.12);
  cursor: pointer;
}

html.ppmc-consent-open,
html.ppmc-consent-open body {
  overflow: hidden;
}

@media (max-width: 680px) {
  .ppmc-consent {
    padding: 0;
  }

  .ppmc-consent__panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    margin: 0;
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 28px 28px 0 0;
  }

  .ppmc-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ppmc-button,
  .ppmc-link-button {
    width: 100%;
  }

  .ppmc-privacy-trigger {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
