.pe7-consent[hidden],
.pe7-consent__details[hidden],
.pe7-consent__button[hidden] {
  display: none !important;
}

.pe7-consent {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 8, 18, 0.3);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

.pe7-consent__panel {
  position: relative;
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(133, 193, 255, 0.34);
  border-radius: 24px;
  padding: 24px;
  color: #f6f9fc;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 111, 218, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(3, 22, 37, 0.98), rgba(2, 13, 25, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

.pe7-consent__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 88px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #6da9ff, #6ee8ff);
}

.pe7-consent__panel:focus {
  outline: none;
}

.pe7-consent__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px;
  color: rgba(218, 232, 246, 0.72);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.pe7-consent__eyebrow span {
  color: #83b7ff;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.pe7-consent__intro h2 {
  max-width: 650px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.pe7-consent__intro p:not(.pe7-consent__eyebrow) {
  max-width: 710px;
  margin: 0;
  color: rgba(229, 238, 246, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}

.pe7-consent__intro a {
  color: #c9e3ff;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(151, 202, 255, 0.55);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.pe7-consent__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}

.pe7-consent__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease;
  cursor: pointer;
}

.pe7-consent__category:hover {
  border-color: rgba(126, 188, 255, 0.46);
  background: rgba(107, 169, 255, 0.07);
}

.pe7-consent__category--fixed {
  cursor: default;
}

.pe7-consent__category--fixed:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
}

.pe7-consent__category strong,
.pe7-consent__category small {
  display: block;
}

.pe7-consent__category strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 690;
}

.pe7-consent__category small {
  color: rgba(206, 221, 233, 0.68);
  font-size: 0.72rem;
  line-height: 1.35;
}

.pe7-consent__category input {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  accent-color: #68cfff;
}

.pe7-consent__actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.pe7-consent__button,
.pe7-consent-settings {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

.pe7-consent__button {
  min-height: 46px;
  padding: 10px 17px;
  font-size: 0.78rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pe7-consent__button--accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-color: rgba(140, 221, 255, 0.9);
  color: #04121d;
  background: linear-gradient(105deg, #6db5ff, #68e0f3);
  box-shadow: 0 8px 25px rgba(73, 178, 239, 0.2);
}

.pe7-consent__button--accept span {
  font-size: 0.95rem;
}

.pe7-consent__button--reject,
.pe7-consent__button--secondary,
.pe7-consent__button--save {
  border-color: rgba(217, 231, 242, 0.45);
  color: #edf5fa;
  background: rgba(255, 255, 255, 0.035);
}

.pe7-consent__button--save {
  grid-column: span 2;
}

.pe7-consent__button--quiet {
  color: rgba(225, 236, 244, 0.72);
  background: transparent;
}

.pe7-consent__button:hover {
  transform: translateY(-1px);
}

.pe7-consent__button--accept:hover {
  background: linear-gradient(105deg, #80c0ff, #77e8f7);
}

.pe7-consent__button--reject:hover,
.pe7-consent__button--secondary:hover,
.pe7-consent__button--save:hover {
  border-color: rgba(217, 231, 242, 0.72);
  background: rgba(255, 255, 255, 0.075);
}

.pe7-consent__button:focus-visible,
.pe7-consent-settings:focus-visible,
.pe7-consent__category:has(input:focus-visible) {
  outline: 3px solid rgba(103, 185, 255, 0.54);
  outline-offset: 2px;
}

.pe7-consent-settings {
  position: fixed;
  z-index: 2147483645;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-color: rgba(177, 213, 242, 0.38);
  color: rgba(242, 248, 252, 0.88);
  background: rgba(3, 20, 32, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 0.68rem;
}

.pe7-consent-settings:hover {
  border-color: rgba(177, 213, 242, 0.68);
  background: #06283d;
}

@media (max-width: 760px) {
  .pe7-consent {
    padding: 10px;
    background: rgba(1, 8, 18, 0.42);
  }

  .pe7-consent__panel {
    max-height: calc(100vh - 20px);
    border-radius: 20px;
    padding: 20px;
  }

  .pe7-consent__panel::before {
    left: 20px;
  }

  .pe7-consent__intro h2 {
    font-size: 1.55rem;
  }

  .pe7-consent__intro p:not(.pe7-consent__eyebrow) {
    font-size: 0.8rem;
  }

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

  .pe7-consent__button--save {
    grid-column: auto;
  }

  .pe7-consent__category {
    min-height: 68px;
  }

  .pe7-consent-settings {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pe7-consent__panel {
    animation: pe7-consent-enter 200ms ease-out;
  }

  @keyframes pe7-consent-enter {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.99);
    }
  }
}
