.p9-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid #1e1e1e;
  color: #e8e8e8;
  padding: 1.25rem 1.5rem;
  transition: bottom 0.25s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.p9-cookie-banner-visible {
  bottom: 0;
}

.p9-cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.p9-cookie-banner-text {
  flex: 1 1 420px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d7d7d4;
}

.p9-cookie-banner-text a {
  color: #e8334a;
  text-decoration: underline;
}

.p9-cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.p9-cookie-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #1e1e1e;
  background: transparent;
  color: #e8e8e8;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.p9-cookie-btn:hover {
  border-color: #e8334a;
  color: #fff;
}

.p9-cookie-btn:focus-visible {
  outline: none;
  border-color: #ff4d63;
  box-shadow: 0 0 0 3px rgba(232, 51, 74, 0.22);
}

.p9-cookie-btn:active {
  transform: translateY(1px);
}

.p9-cookie-btn-primary {
  background: #e8334a;
  border-color: #e8334a;
  color: #fff;
}

.p9-cookie-btn-primary:hover {
  background: #ff4d63;
  border-color: #ff4d63;
}

/* Standalone secondary/action variant -- used anywhere a "Manage Cookie
   Preferences" control appears outside the consent banner itself (e.g.
   the Cookie Policy page), so styling stays centralised in one reusable
   class rather than per-page inline styles. */
.p9-cookie-btn-manage {
  display: inline-block;
  text-align: center;
}

@media (max-width: 640px) {
  .p9-cookie-banner-actions {
    width: 100%;
  }
  .p9-cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .p9-cookie-btn-manage {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p9-cookie-btn {
    transition: none;
  }
}
