/* Shared first-visit privacy preferences used by the production analytics gate. */
.wptl-privacy-prompt {
  position: fixed;
  z-index: 10000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(400px, calc(100vw - 40px));
  animation: wptl-privacy-prompt-enter .22s ease-out both;
}

.wptl-privacy-prompt__panel {
  box-sizing: border-box;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #c7d8ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(9, 28, 56, .2);
  color: #10213d;
}

.wptl-privacy-prompt__eyebrow {
  margin: 0 0 7px;
  color: #0866e5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wptl-privacy-prompt__panel h2 {
  margin: 0;
  color: #0f1f3d;
  font-size: 1.15rem;
  line-height: 1.35;
}

.wptl-privacy-prompt__panel > p:not(.wptl-privacy-prompt__eyebrow):not(.wptl-privacy-prompt__note) {
  margin: 12px 0 0;
  color: #475467;
  font-size: .9rem;
  line-height: 1.8;
}

.wptl-privacy-prompt__actions button:focus-visible,
.wptl-privacy-prompt__details:focus-visible {
  outline: 3px solid rgba(8, 102, 229, .28);
  outline-offset: 3px;
}

.wptl-privacy-prompt__note {
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid #f1d99a;
  border-radius: 7px;
  background: #fffaf0;
  color: #72551d;
  font-size: .74rem;
  line-height: 1.65;
}

.wptl-privacy-prompt__actions {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 10px;
  margin-top: 20px;
}

.wptl-privacy-prompt__actions button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 7px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wptl-privacy-prompt__deny {
  border: 1px solid #a9bdd8;
  background: #fff;
  color: #365170;
}

.wptl-privacy-prompt__accept {
  border: 1px solid #0866e5;
  background: #0866e5;
  color: #fff;
}

.wptl-privacy-prompt__actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 54, 116, .14);
}

.wptl-privacy-prompt__details {
  display: inline-block;
  margin-top: 14px;
  color: #0866e5;
  font-size: .76rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .wptl-privacy-prompt {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 24px));
  }

  .wptl-privacy-prompt__panel {
    max-height: calc(100vh - 24px);
    padding: 18px 16px;
    border-radius: 12px;
  }

  .wptl-privacy-prompt__actions {
    grid-template-columns: 1fr;
  }

  .wptl-privacy-prompt__accept {
    grid-row: 1;
  }
}

@keyframes wptl-privacy-prompt-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wptl-privacy-prompt *,
  .wptl-privacy-prompt *::after {
    transition-duration: .01ms !important;
  }
}
