.rivco-consent[hidden] {
  display: none !important;
}

.rivco-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999999;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #171c20;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 -12px 36px rgba(0, 83, 166, .12);
}

.rivco-consent__inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 11px clamp(16px, 3vw, 42px);
}

.rivco-consent__copy {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.rivco-consent .rivco-consent__copy h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #171c20;
  font: 750 15px/1.25 "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: 0;
}

.rivco-consent__copy > p:last-child {
  max-width: 820px;
  margin: 0;
  color: #57636c;
  font: 400 12.5px/1.4 "Source Sans 3", Arial, sans-serif;
}

.rivco-consent a {
  color: #171c20;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rivco-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.rivco-consent .rivco-consent__button {
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 750 11px/1 Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.rivco-consent .rivco-consent__button--primary {
  color: #fff;
  background: linear-gradient(135deg, #0053a6, #046bd2);
  box-shadow: 0 8px 18px rgba(0, 83, 166, .16);
}

.rivco-consent .rivco-consent__button--secondary {
  color: #171c20;
  background: #fff;
  border-color: rgba(23, 28, 32, .2);
}

.rivco-consent .rivco-consent__close {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #171c20;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 400 24px/1 Arial, sans-serif;
}

.rivco-consent .rivco-consent__close:hover {
  background: rgba(23, 28, 32, .06);
}

.rivco-consent .rivco-consent__button:hover,
.rivco-consent .rivco-consent__button:focus-visible {
  transform: translateY(-1px);
}

.rivco-consent .rivco-consent__button:focus-visible,
.rivco-consent .rivco-consent__close:focus-visible,
.rivco-consent a:focus-visible,
.rivco-privacy-links a:focus-visible,
.rivco-privacy-links button:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.rivco-privacy-links {
  display: flex;
  gap: 14px;
  align-items: center;
  font: 600 12px/1.4 Inter, Arial, sans-serif;
}

.rivco-privacy-links a,
.rivco-privacy-links button {
  padding: 0;
  color: rgba(255, 255, 255, .55);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-decoration: none;
}

.rivco-privacy-links a:hover,
.rivco-privacy-links button:hover {
  color: #fff;
}

.rivco-privacy-links--standalone {
  justify-content: center;
  padding: 14px 20px;
  background: #001e50;
}

@media (max-width: 780px) {
  .rivco-consent__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
  }

  .rivco-consent__copy {
    display: block;
  }

  .rivco-consent .rivco-consent__copy h2 {
    margin-bottom: 2px;
    font-size: 14px;
  }

  .rivco-consent__copy > p:last-child {
    max-width: none;
    font-size: 12px;
    line-height: 1.35;
  }

  .rivco-consent__actions {
    display: grid;
    grid-template-columns: .85fr 1.3fr 38px;
    gap: 7px;
  }

  .rivco-consent .rivco-consent__button {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .ftr__bot .rivco-privacy-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rivco-consent .rivco-consent__button,
  .rivco-consent .rivco-consent__close {
    transition: none;
  }
}
