.consentOverlayContent {
  position: fixed;
  width: 100%;
  min-width: 300px;
  box-sizing: border-box;
  overflow: auto;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 6;
  padding: 25px;
  border-top: 1px solid white;
  background-color: #000;
  color: #fff;
}

.consentOverlayContent p {
  margin-bottom: 0.75em;
}

.consentConfig {
  display: none;
}

.consentOverlayContent .consentMessage {
  font-size: 1em;
  margin: 0 auto;
}

.consentOverlayContent .consentMessage a {
  color: #a6a6a6;
  text-decoration: underline;
}

.consentOverlayContent .consentMessage a:hover {
  color: #fff;
}

.consentOverlay.visible,
.ph .noticeOverlay.visible {
  opacity: 1;
}

.consentButtons {
  margin-top: 0;
  text-align: right;
}

.consentButtons a {
  background-color: white;
}

.consentButtons a.disabled {
  pointer-events: none;
  /*opacity: 0.5;*/
}

.consentOption {
  display: flex;
  font-size: 90%;
}
.consentOption label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25em;
}
.consentOption :first-child {
  margin-right: 5px;
}

body.medialib-layout .consentOverlayContent {
  background-color: #fff;
  color: #000;
  z-index: 9500;
  border-top: 1px solid black;
}

body.medialib-layout .consentButtons a {
  background-color: black;
  color: white;
}

body.medialib-layout .consentButtons a#consentAccept:hover,
body.medialib-layout .consentButtons a#consentDeny:hover {
  background-color: white;
  color: black;
}

body.medialib-layout .consentOverlayContent .consentMessage a:hover {
  color: black;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .consentOverlayContent {
    padding-bottom: 80px;
    font-size: 16px;
    line-height: 1.4;
  }
  .consentButtons .button-primary {
    display: block;
    width: 99.9%;
  }
}

@media (min-width: 768px) {
  .consentOverlayContent .page-width {
    width: 100%;
  }
}

@media (max-width: 511px) {
  .consentOverlayContent {
    top: 55px;
    border-top: none;
    width: calc(100% - 50px);
    left: 25px;
    transform: none;
    padding: 15px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 100;
    line-height: 1.3;
    font-size: calc(1.55vh + 1vw);
    /*display: flex;*/
    /*flex-direction: column;*/
    /*align-content: center;*/
    /*justify-content: center;*/
    bottom: unset;
  }
  .consentButtons a {
    margin-top: 5%;
  }
  .consentMessage a {
    font-size: 120%;
    line-height: 1.5;
    padding-right: 10px;
  }
  .consentOverlayContent .page-width {
    width: 100%;
    padding: 0;
  }
}
