/*
 * Cookie consent banner (GMPFHS-316).
 * Fixed to the bottom of the viewport. The page stays usable: this is
 * not a modal, so keyboard users can still reach the content.
 * Sits above the mobile header (z-index 9999999) so the choices
 * remain available while that menu is open.
 */

.gmpf-cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10000000;
  padding: var(--space-md);
}

.gmpf-cookie-consent__panel {
  max-width: 52rem;
  margin-inline: auto;
  padding: var(--space-lg);
  background: var(--color-surface-page);
  color: var(--color-brand-dark);
  border: 1px solid var(--color-brand-primary);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 28px rgba(11, 12, 12, 0.28);
}

.gmpf-cookie-consent__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-brand-dark);
}

.gmpf-cookie-consent__text {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  line-height: 1.5;
}

.gmpf-cookie-consent__text a {
  color: var(--color-brand-primary);
}

.gmpf-cookie-consent__preferences {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  border: 1px solid var(--color-surface-muted);
  border-radius: var(--radius-sm, 8px);
  background: var(--color-surface-muted);
}

.gmpf-cookie-consent__legend {
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.gmpf-cookie-consent__choice {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin: 0 0 var(--space-sm);
}

.gmpf-cookie-consent__choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--color-brand-primary);
}

.gmpf-cookie-consent__choice span {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.gmpf-cookie-consent__hint {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 0.15rem;
}

.gmpf-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.gmpf-cookie-consent__button {
  appearance: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid var(--color-brand-primary);
  background: var(--color-surface-page);
  color: var(--color-brand-dark);
}

.gmpf-cookie-consent__button--primary {
  background: var(--color-brand-primary);
  color: #fff;
}

.gmpf-cookie-consent__button:hover {
  background: var(--color-brand-primary-hover);
  border-color: var(--color-brand-primary-hover);
  color: #fff;
}

.gmpf-cookie-consent__button:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}
