.asgood-cn-info {
  background: rgba(0, 0, 0, 0.5);
  content: "";
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 100000;
}

.asgood-cn-info-wrapper,
.asgood-cn-blockade {
  background: #ffffff;
  border-radius: 10px;
  bottom: auto;
  box-shadow: 0px 5px 20px rgba(49, 83, 78, 0.5);
  left: 50%;
  max-width: 960px;
  padding: 30px;
  padding-bottom: 10px;
  position: fixed;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 90%;
  z-index: 100000000000;
}

.asgood-cn-info.is-hidden,
.asgood-cn-blockade.is-hidden {
  opacity: 0;
  pointer-events: none;
  top: 100%;
}

.asgood-cn-info-extended {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 5px 20px rgba(49, 83, 78, 0.5);
  left: 50%;
  max-height: 90vh;
  max-width: 960px;
  overflow: hidden;
  padding: 0 0 80px 0;
  position: fixed;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 90%;
  z-index: 100000000000;
}

.asgood-cn-info-extended .btn {
  padding: 5px 10px;
}

.asgood-cn-info-extended.is-hidden {
  opacity: 0;
  pointer-events: none;
  top: 100%;
}

.asgood-cn-info-extended-wrapper {
  height: calc(90vh - 80px);
  overflow: auto;
  padding: 30px;
  position: relative;
}

.asgood-cn-info-extended-text>p:first-child {
  margin-top: 0;
}

.asgood-cn-info-extended-buttons {
  align-items: center;
  background: #ffffff;
  bottom: 0;
  box-shadow: 0 -8px 8px rgba(0, 0, 0, 0.075);
  display: flex;
  height: 80px;
  justify-content: space-between;
  left: 0;
  padding: 0 30px;
  position: absolute;
  right: 0;
  width: 100%;
  z-index: 100000000001;
}

.asgood-cn-info-extended-checkboxes {
  list-style-type: none;
  margin: 30px -30px;
  padding: 0;
}

.asgood-cn-consent {
  padding: 25px 30px 30px 30px;
  position: relative;
}

.asgood-cn-consent:nth-child(odd) {
  background: #f5f5f5;
}

.asgood-cn-consent-label {
  display: flex;
  position: relative;
}

.asgood-cn-consent-label-text {
  color: #333;
  display: inline-block;
  margin-left: 30px;
  width: calc(100% - 35px);
}

.asgood-cn-consent-description {
  font-size: 12px;
  margin: 10px 0 0 0;
}

.asgood-cn-info .btn {
  margin-bottom: 20px;
}

.asgood-cn-info .btn:not(:last-child),
.asgood-cn-info-extended-buttons .btn:not(:last-child) {
  margin-right: 20px;
}

/* Support for videos */
.yt-player-cn-info-notice {
  align-items: center;
  background: var(--ag-light-color);
  border: 2px solid var(--ag-primary-color);
  border-radius: 10px;
  color: var(--ag-text-darker-color);
  display: none;
  flex-wrap: wrap;
  font-weight: 600;
  height: 100%;
  left: 0;
  line-height: 1;
  margin: 0;
  overflow: auto;
  padding: 5px 10px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%;
  z-index: 99;
}

.yt-player-cn-info-notice>span {
  max-width: 500px;
}

.yt-player-cn-info-notice.is-active {
  align-items: center;
  display: flex;
  justify-content: center;
}

.yt-player-cn-info-notice .btn {
  margin-top: 15px;
  padding: 5px 10px;
}

/* Media Queries - from largest to smallest */

@media screen and (max-width: 1024px) {

  .yt-player-cn-info-notice,
  .podcast-player-cn-info-notice {
    border-radius: 10px;
  }
}

@media (max-width: 720px) {
  .asgood-cn-info-wrapper {
    width: 96%;
  }

  .asgood-cn-info-extended {
    border-radius: 0;
    height: 100%;
    max-height: 100%;
    width: 96%;
  }

  .asgood-cn-info-extended .asgood-cn-info-extended-wrapper {
    height: 100%;
  }

  .asgood-cn-info-extended .asgood-cn-info-extended-text p {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .asgood-cn-info {
    padding: 12px;
  }

  .asgood-cn-info-text p {
    line-height: 1.3;
  }

  .asgood-cn-info-extended-wrapper {
    padding: 20px;
  }

  .asgood-cn-info-extended {
    padding-bottom: 60px;
  }

  .asgood-cn-info-extended-checkboxes {
    margin: 20px -20px;
  }

  .asgood-cn-info-extended .asgood-cn-consent {
    padding: 15px 20px 20px;
  }

  .asgood-cn-info-extended-buttons {
    height: 60px;
    padding: 0 5px;
  }

  .asgood-cn-blockade {
    padding: 20px;
  }

  .asgood-cn-blockade-buttons {
    margin-top: 20px;
  }
}

@media screen and (max-width: 560px) {

  .yt-player-cn-info-notice,
  .podcast-player-cn-info-notice {
    border-radius: 5px;
  }

  .asgood-cn-info .asgood-cn-info-buttons .btn {
    width: 100%;
  }

  .asgood-cn-info .asgood-cn-info-buttons .btn,
  .asgood-cn-info-extended-buttons .btn {
    margin-right: 0;
  }

  .asgood-cn-info-extended .asgood-cn-consent-label-text:before {
    top: 17px;
  }

  .asgood-cn-info-extended .asgood-cn-consent-label-text:after {
    top: 3px;
  }
}

@media screen and (max-width: 500px) {

  .yt-player-cn-info-notice,
  .podcast-player-cn-info-notice {
    padding: 10px 15px;
  }

  .yt-player-cn-info-notice p,
  .podcast-player-cn-info-notice p {
    font-size: 13px;
    line-height: 1.3;
    margin: 0 0 10px 0;
  }

  .yt-player-cn-info-notice a.btn,
  .podcast-player-cn-info-notice a.btn {
    height: 40px;
    line-height: 40px;
  }
}