.go4-cookie-banner[hidden],
.go4-cookie-preferences[hidden] {
  display: none !important;
}

.go4-cookie-banner {
  position: fixed;
  z-index: 11000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 1180px;
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  overflow-y: auto;
  color: #252c30;
  background: #fff;
  border: 1px solid #d8dedb;
  border-top: 5px solid #252c30;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.go4-cookie-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding: 1.4rem 3.5rem 1.4rem 1.5rem;
  align-items: center;
}

.go4-cookie-banner h2,
.go4-cookie-dialog h2 {
  margin: 0 0 .55rem;
  color: #252c30;
  font-size: 1.35rem;
}

.go4-cookie-banner p,
.go4-cookie-dialog p {
  margin: 0;
}

.go4-cookie-banner a,
.go4-cookie-dialog a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.go4-cookie-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #252c30;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
}

.go4-cookie-actions {
  display: flex;
  gap: .65rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.go4-cookie-choice,
.go4-cookie-secondary {
  min-height: 44px;
  padding: .65rem 1rem;
  border-radius: 7px;
  font-weight: 700;
}

.go4-cookie-choice {
  min-width: 118px;
  color: #fff;
  background: #252c30;
  border: 2px solid #252c30;
}

.go4-cookie-choice:hover,
.go4-cookie-choice:focus {
  color: #252c30;
  background: #ffee00;
  border-color: #ffee00;
}

.go4-cookie-secondary {
  color: #252c30;
  background: #fff;
  border: 2px solid #252c30;
}

.go4-cookie-secondary:hover,
.go4-cookie-secondary:focus {
  color: #252c30;
  background: #edf1ef;
}

.go4-cookie-choice:focus-visible,
.go4-cookie-secondary:focus-visible,
.go4-cookie-close:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid #ffee00;
  outline-offset: 3px;
}

.cookie-settings-link {
  display: block;
  width: auto;
  padding: 0;
  color: #d7dfda;
  text-align: left;
  text-decoration: none;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
  color: #fff;
  text-decoration: underline;
}

.go4-cookie-preferences {
  position: fixed;
  z-index: 11010;
  inset: 0;
  display: flex;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .66);
}

.go4-cookie-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 2rem);
  padding: 1.6rem;
  overflow-y: auto;
  color: #252c30;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .34);
}

.go4-cookie-dialog__intro {
  padding-right: 2.5rem;
  margin-bottom: 1.25rem;
}

.go4-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 0;
  align-items: center;
  border-top: 1px solid #dfe6e1;
}

.go4-cookie-category strong {
  display: block;
  margin-bottom: .25rem;
}

.go4-cookie-category input {
  width: 24px;
  height: 24px;
  accent-color: #252c30;
}

.go4-cookie-category input:disabled {
  opacity: 1;
}

.go4-cookie-dialog .go4-cookie-actions {
  padding-top: 1.2rem;
  border-top: 1px solid #dfe6e1;
}

body.cookie-preferences-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .go4-cookie-banner__inner {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.2rem 1.3rem;
  }

  .go4-cookie-banner__content {
    padding-right: 2.25rem;
  }

  .go4-cookie-actions {
    justify-content: stretch;
  }

  .go4-cookie-actions .go4-cookie-choice,
  .go4-cookie-actions .go4-cookie-secondary {
    flex: 1 1 140px;
  }
}

@media (max-width: 420px) {
  .go4-cookie-banner {
    right: .5rem;
    bottom: .5rem;
    left: .5rem;
    max-height: calc(100vh - 1rem);
  }

  .go4-cookie-dialog {
    padding: 1.2rem;
  }

  .go4-cookie-actions {
    flex-direction: column;
  }

  .go4-cookie-actions .go4-cookie-choice,
  .go4-cookie-actions .go4-cookie-secondary {
    width: 100%;
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .go4-cookie-banner,
  .go4-cookie-preferences {
    scroll-behavior: auto;
  }
}
