.sfi-cookie-banner {
  position: fixed;
  z-index: 1090;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid rgba(98, 105, 118, .22);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .5rem 2rem rgba(35, 46, 60, .2);
  color: #182433;
}

.sfi-cookie-banner__content,
.sfi-cookie-banner__actions,
.sfi-cookie-preferences__header,
.sfi-cookie-preferences__actions,
.sfi-cookie-choice {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sfi-cookie-banner__content { justify-content: space-between; }
.sfi-cookie-banner h2 { margin: 0 0 .35rem; font-size: 1rem; }
.sfi-cookie-banner p { margin: 0; }
.sfi-cookie-banner__actions { flex: 0 0 auto; flex-wrap: wrap; }

.sfi-cookie-banner__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
}

.sfi-cookie-banner__close + .sfi-cookie-banner__content {
  padding-right: 1.5rem;
}

.sfi-cookie-preferences {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sfi-cookie-preferences__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 36, 51, .58);
}

.sfi-cookie-preferences__panel {
  position: relative;
  width: min(100%, 38rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .75rem 3rem rgba(0, 0, 0, .28);
  color: #182433;
}

.sfi-cookie-preferences__header { justify-content: space-between; }
.sfi-cookie-preferences__header h2 { margin: 0; font-size: 1.25rem; }
.sfi-cookie-choice { justify-content: space-between; padding: 1rem 0; border-top: 1px solid #e6e7e9; }
.sfi-cookie-choice span { display: grid; gap: .2rem; }
.sfi-cookie-choice small { color: #626976; }
.sfi-cookie-choice input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.sfi-cookie-preferences__actions { justify-content: flex-end; margin-top: 1rem; }

.sfi-cookie-settings {
  position: fixed;
  z-index: 1050;
  right: .75rem;
  bottom: .75rem;
  padding: .35rem .65rem;
  border: 1px solid #d8dadd;
  border-radius: 999px;
  background: #fff;
  color: #495057;
  box-shadow: 0 .2rem .8rem rgba(35, 46, 60, .12);
  font-size: .75rem;
}

[hidden] { display: none !important; }

@media (max-width: 767px) {
  .sfi-cookie-banner__content { align-items: flex-start; flex-direction: column; }
  .sfi-cookie-banner__actions { width: 100%; }
  .sfi-cookie-banner__actions .btn { flex: 1 1 auto; }
  .sfi-cookie-preferences__actions { align-items: stretch; flex-direction: column-reverse; }
}
