.bb-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #fff;
  color: #3E5063;
  border-top: 3px solid #3E5063;
  box-shadow: 0 -2px 12px rgba(62, 80, 99, 0.18);
  font-family: inherit;
}

.bb-consent__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.bb-consent__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #3E5063;
}

.bb-consent__text a {
  color: #3E5063;
  text-decoration: underline;
  white-space: nowrap;
}

.bb-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.bb-consent__button {
  min-width: 8.5rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid #3E5063;
  border-radius: 3px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background: #fff;
  color: #3E5063;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bb-consent__button--accept {
  background: #3E5063;
  color: #fff;
}

.bb-consent__button--refuse:hover {
  background: #e8ecf0;
}

.bb-consent__button--accept:hover {
  background: #2c3a48;
  border-color: #2c3a48;
}

.bb-consent__button:focus-visible,
.bb-consent-manage:focus-visible {
  outline: 3px solid #24b9d7;
  outline-offset: 2px;
}

.bb-consent-manage {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.bb-consent-separator {
  margin: 0 0.35rem;
}

@media (max-width: 575px) {
  .bb-consent__inner {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .bb-consent__actions {
    width: 100%;
  }

  .bb-consent__button {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* The theme fixes body height to the viewport, so the room for the open banner goes on the footer. */
body.bb-consent-open #footer {
  padding-bottom: var(--bb-consent-height, 0);
}
