/*
 * Cookie consent banner styles for assets/analytics.js.
 *
 * These were injected as a <style> element by the script. Serving them as a
 * real stylesheet instead is what lets style-src drop 'unsafe-inline'.
 */

.pc-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.pc-consent[hidden] {
  display: none;
}

.pc-consent__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  width: min(100%, 64rem);
  padding: 1rem 1.25rem;
  color: hsl(220 15% 15%);
  background: hsl(220 20% 99%);
  border: 1px solid hsl(220 15% 88%);
  border-radius: 0.9rem;
  box-shadow: 0 1rem 3rem rgb(22 34 58 / 18%);
}

.pc-consent__text {
  flex: 1 1 22rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pc-consent__text a {
  color: hsl(220 85% 25%);
}

.pc-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pc-consent__btn {
  padding: 0.6rem 1.15rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.pc-consent__btn:focus-visible {
  outline: 2px solid hsl(220 85% 25%);
  outline-offset: 2px;
}

.pc-consent__btn--accept {
  color: #fff;
  background: hsl(220 85% 25%);
}

.pc-consent__btn--accept:hover {
  background: hsl(220 85% 20%);
}

.pc-consent__btn--decline {
  color: hsl(220 15% 15%);
  background: #fff;
  border-color: hsl(220 15% 80%);
}

.pc-consent__btn--decline:hover {
  background: hsl(220 18% 96%);
}

@media (max-width: 32rem) {
  .pc-consent__actions {
    width: 100%;
  }
  .pc-consent__btn {
    flex: 1 1 auto;
  }
}
