/* JPS-iQ Consent Banner — styling
 * -------------------------------
 * Matches the JPS-iQ design system (navy surface, brand blue accent).
 * Sticky bottom banner, two equal-weight buttons (no dark patterns).
 */
.jps-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #0B1B2B;                  /* c-bg-deep */
  color: #E6EEF5;
  border-top: 3px solid #1A77B3;        /* c-brand */
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
  font-family: inherit;
  font-size: 0.9375rem;                 /* fs-sm */
  line-height: 1.55;
  animation: jpsConsentSlide 260ms ease-out;
}

@keyframes jpsConsentSlide {
  from { transform: translateY(100%); }
  to   { transform: translateY(0);    }
}

.jps-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.jps-consent-text {
  margin: 0;
  flex: 1 1 auto;
  color: #E6EEF5;
}

.jps-consent-link {
  color: #A6D6F0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jps-consent-link:hover,
.jps-consent-link:focus-visible {
  color: #D3E6F4;                       /* c-brand-100 */
}

.jps-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.jps-consent-btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.jps-consent-btn:focus-visible {
  outline: 2px solid #A6D6F0;
  outline-offset: 2px;
}

.jps-consent-btn--reject {
  background: transparent;
  color: #E6EEF5;
  border: 1px solid rgba(230, 238, 245, 0.4);
}
.jps-consent-btn--reject:hover,
.jps-consent-btn--reject:focus-visible {
  background: rgba(230, 238, 245, 0.08);
  border-color: rgba(230, 238, 245, 0.7);
}

.jps-consent-btn--accept {
  background: #1A77B3;                  /* c-brand */
  color: #FFFFFF;
  border: 1px solid #1A77B3;
}
.jps-consent-btn--accept:hover,
.jps-consent-btn--accept:focus-visible {
  background: #155E8E;                  /* c-brand-700 */
  border-color: #155E8E;
}

@media (max-width: 720px) {
  .jps-consent-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    gap: 0.875rem;
  }
  .jps-consent-actions {
    justify-content: flex-end;
  }
  .jps-consent-btn {
    flex: 1 1 0;
    padding: 0.75rem 1rem;
    min-height: 44px;                   /* touch target */
  }
}

@media (prefers-reduced-motion: reduce) {
  .jps-consent-banner {
    animation: none;
  }
}
