/**
 * Back to top + cookie consent (static site).
 */

.dgcs-back-to-top {
  position: fixed;
  left: 0.625rem;
  bottom: 1.25rem;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(0, 80, 158, 0.2);
  border-radius: 0.375rem;
  background-color: #fff;
  color: #00509e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 0.2s ease-out,
    visibility 0.2s ease-out,
    transform 0.2s ease-out,
    background-color 0.2s ease-out,
    color 0.2s ease-out;
}

.dgcs-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dgcs-back-to-top:hover {
  background-color: #00509e;
  color: #fff;
}

.dgcs-back-to-top:focus-visible {
  outline: 2px solid #00509e;
  outline-offset: 2px;
}

.dgcs-back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

@media (min-width: 768px) {
  .dgcs-back-to-top {
    left: 0.625rem;
    bottom: 1.25rem;
  }
}

@media (max-width: 767px) {
  .dgcs-back-to-top {
    bottom: 4.5rem;
  }
}

.dgcs-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  padding: 0;
  margin: 0;
  background-color: #00509e;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
}

.dgcs-cookie-banner.is-open {
  transform: translateY(0);
}

.dgcs-cookie-banner[hidden] {
  display: block !important;
}

.dgcs-cookie-banner:not(.is-open)[hidden] {
  transform: translateY(100%);
  pointer-events: none;
}

.dgcs-cookie-banner__inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

@media (min-width: 768px) {
  .dgcs-cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.125rem 1.5rem;
  }
}

.dgcs-cookie-banner__text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: start;
  color: #fff;
}

@media (min-width: 768px) {
  .dgcs-cookie-banner__text {
    margin: 0;
    flex: 1 1 auto;
  }
}

.dgcs-cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dgcs-cookie-banner__text a:hover,
.dgcs-cookie-banner__text a:focus-visible {
  opacity: 0.9;
}

.dgcs-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dgcs-cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}

.dgcs-cookie-banner__btn--accept {
  background-color: #fff;
  color: #00509e;
  border-color: #fff;
}

.dgcs-cookie-banner__btn--accept:hover,
.dgcs-cookie-banner__btn--accept:focus-visible {
  background-color: #f8f7f7;
}

.dgcs-cookie-banner__btn--decline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.dgcs-cookie-banner__btn--decline:hover,
.dgcs-cookie-banner__btn--decline:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 767px) {
  .dgcs-cookie-banner__actions {
    width: 100%;
  }

  .dgcs-cookie-banner__btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dgcs-back-to-top,
  .dgcs-cookie-banner {
    transition: none;
  }
}
