.panpv-cookie-banner {
  position: fixed;
  z-index: 10000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
  padding: 18px;
  color: #162533;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 35, 52, .16);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: blur(12px);
}

.panpv-cookie-banner[hidden] { display: none !important; }
.panpv-cookie-banner__text { max-width: 620px; }
.panpv-cookie-banner__text strong { display: block; margin-bottom: 4px; font-size: 16px; }
.panpv-cookie-banner__text p { margin: 0; }
.panpv-cookie-banner__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.panpv-cookie-banner__actions { display: flex; flex: 0 0 auto; gap: 10px; }

.panpv-cookie-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.panpv-cookie-button--primary { color: #07130b; background: #8ee64f; border-color: #78ca3d; }
.panpv-cookie-button--secondary { color: #162533; background: transparent; border-color: rgba(22, 37, 51, .28); }
.panpv-cookie-button:focus-visible,
.panpv-cookie-settings:focus-visible { outline: 3px solid #7bd33c; outline-offset: 3px; }

.panpv-cookie-settings {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

html[data-theme="dark"] .panpv-cookie-banner {
  color: #f3f7fa;
  background: rgba(17, 20, 23, .98);
  border-color: rgba(255, 255, 255, .18);
}

html[data-theme="dark"] .panpv-cookie-button--secondary {
  color: #f3f7fa;
  border-color: rgba(255, 255, 255, .32);
}

@media (max-width: 760px) {
  .panpv-cookie-banner {
    bottom: calc(76px + env(safe-area-inset-bottom));
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
  .panpv-cookie-banner__actions { display: grid; grid-template-columns: 1fr 1.35fr; }
  .panpv-cookie-button { padding-inline: 12px; }
}

@media (max-width: 420px) {
  .panpv-cookie-banner__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .panpv-cookie-banner { animation: panpv-cookie-enter .24s ease-out; }
  @keyframes panpv-cookie-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
