.pmd-consent[hidden],
.pmd-consent-settings[hidden] {
  display: none !important;
}

.pmd-consent {
  position: fixed;
  z-index: 2147483000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  font-family: Nunito, Arial, Helvetica, sans-serif;
  color: #edf7ff;
  background: rgb(4 17 30 / 82%);
  backdrop-filter: blur(8px);
}

.pmd-consent__panel {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #41617a;
  border-radius: 18px;
  background: #102a3f;
  box-shadow: 0 18px 48px rgb(0 0 0 / 38%);
}

.pmd-consent__copy {
  flex: 1 1 640px;
  min-width: 0;
}

.pmd-consent__copy h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.25;
}

.pmd-consent__copy p {
  margin: 0;
  color: #d6e5ef;
  font-size: 0.94rem;
  line-height: 1.5;
}

.pmd-consent__copy .pmd-consent__details {
  margin-top: 6px;
  color: #afc5d4;
  font-size: 0.84rem;
}

.pmd-consent a {
  color: #8fe7ba;
  font-weight: 800;
  text-underline-offset: 2px;
}

.pmd-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  flex: 0 1 340px;
  gap: 10px;
}

.pmd-consent__button,
.pmd-consent-settings {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.pmd-consent__button--necessary {
  border-color: #7290a7;
  color: #fff;
  background: #294a63;
}

.pmd-consent__button--allow {
  border-color: #70d7a2;
  color: #082719;
  background: #70d7a2;
}

.pmd-consent__button:hover,
.pmd-consent-settings:hover {
  filter: brightness(1.1);
}

.pmd-consent__button:focus-visible,
.pmd-consent-settings:focus-visible,
.pmd-consent a:focus-visible {
  outline: 3px solid #ffd86b;
  outline-offset: 3px;
}

.pmd-consent-settings--inline {
  min-height: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pmd-consent-settings--fixed {
  position: fixed;
  z-index: 2147482999;
  right: 12px;
  bottom: 12px;
  min-height: 38px;
  border-color: #41617a;
  padding: 8px 11px;
  color: #edf7ff;
  background: #102a3f;
  box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
  font-family: Nunito, Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .pmd-consent {
    padding: 10px;
  }

  .pmd-consent__panel {
    display: block;
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 16px;
    border-radius: 15px;
  }

  .pmd-consent__actions {
    margin-top: 14px;
  }
}

@media (max-width: 430px) {
  .pmd-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmd-consent {
    backdrop-filter: none;
  }
}
