body.reveal-open {
  overflow: hidden;
}

/* BANNIERE */
.rgpd-banner {
  position: fixed;
  overflow-y: auto;
  z-index: 300;
  bottom: 0;
  left: 0;

  width: 100%;
  max-height: 100vh;

  padding: 2rem 2rem 1rem;
}
.rgpd-banner-content {
  width: 75rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.rgpd-banner-content a {
  color: inherit;
  text-decoration: underline;
}
.rgpd-banner-text {
  font-size: 0.9rem;
}
.rgpd-banner-title {
  margin-bottom: 0.3rem;

  font-size: 1.2rem;
  font-weight: 600;
}
.rgpd-banner-button {
  text-align: center;
}
.rgpd-banner-button .button:last-child:hover {
  text-decoration: underline;
}
/* Positionnement */
.rgpd-banner.position-full .rgpd-banner-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.rgpd-banner.position-full .rgpd-banner-button .button:not(:last-child) {
  margin-right: 1rem;
}
@media screen and (max-width: 640px) {
  .rgpd-banner.position-full .rgpd-banner-button {
    justify-content: center;
    flex-direction: column;
  }
  .rgpd-banner.position-full .rgpd-banner-button .button {
    margin-bottom: 0.9rem;
    min-width: 13rem;
  }
}
.rgpd-banner.position-side .rgpd-banner-content {
  display: flex;
  align-items: center;
}
.rgpd-banner.position-side .rgpd-banner-text {
  position: relative;
  padding-right: 3rem;
  margin-right: 3rem;
}
.rgpd-banner.position-side .rgpd-banner-text:after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;

  height: 76%;

  transform: translateY(-50%);
}
.rgpd-banner.position-side.theme-light .rgpd-banner-text:after {
  border-right: 1px solid #fff;
}
.rgpd-banner.position-side.theme-dark .rgpd-banner-text:after {
  border-right: 1px solid #888;
}
.rgpd-banner.position-side .rgpd-banner-button {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;

  margin-bottom: 0;
}
.rgpd-banner.position-side .rgpd-banner-button .button {
  margin-bottom: 0.6rem;
}
@media screen and (max-width: 1024px) {
  .rgpd-banner.position-side {
    padding: 1rem 1rem 0 1rem;
  }
  .rgpd-banner.position-side .rgpd-banner-text {
    padding-right: 1.3rem;
    margin-right: 1.3rem;
  }
}
@media screen and (max-width: 640px) {
  .rgpd-banner.position-side {
    padding-bottom: 1rem;
  }
  .rgpd-banner.position-side .rgpd-banner-content {
    flex-direction: column;
  }
  .rgpd-banner.position-side .rgpd-banner-text {
    padding-right: 1rem;
    margin-right: 0;
  }
  .rgpd-banner.position-side .rgpd-banner-text:after {
    display: none;
  }
}

/* MODAL */
.rgpd-reveal {
  position: fixed;
  z-index: 110000;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  padding: 2rem;

  background-color: rgba(0,0,0,0.8);

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rgpd-reveal.open {
  visibility: visible;
  opacity: 1;
}
.rgpd-reveal-container {
  overflow-y: auto;

  width: 46rem;
  max-width: 90%;
  max-height: calc(100vh - 4rem);

  margin: 0 auto;

  background-color: #fff;
}
.rgpd-reveal-text {
  font-size: 0.9rem;
}
.rgpd-reveal-list {
  margin-top: 2rem;
}
.rgpd-reveal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 1rem;
  padding-bottom: 1rem;
  line-height: 1.3;
}
.rgpd-reveal-item:not(:last-child) {
  border-bottom: 1px dashed #eee;
}
.rgpd-reveal-all {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding-bottom: 0.6rem;
  margin-bottom: 1rem;

  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;

  border-bottom: 1px dashed #eee;
}
.rgpd-switch-input {
  display: none;
}
.rgpd-switch {
  display: flex;
  margin-bottom: 0;
  margin-left: 1rem;
}
.rgpd-switch-paddle {
  border-radius: 1rem;
}
.rgpd-switch-paddle:after {
  border-radius: 1rem;
}
.rgpd-switch-paddle:before {
  content: 'off';
  position: absolute;
  top: 0.25rem;
  left: auto;
  right: 0.6rem;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  height: 1.5rem;

  line-height: 1;
  font-size: 0.8em;
  color: #fefefe;

  text-transform: uppercase;
}
.rgpd-switch-input:checked ~ .rgpd-switch-paddle:before {
  content: 'on';
  left: 0.6rem;
  right: auto;
}
.rgpd-switch-input:checked~.rgpd-switch-paddle:after {
  left: 2.25rem;
}
.rgpd-switch-input:checked~.rgpd-switch-paddle {
  background-color: #00ab35;
}
.rgpd-switch.small .rgpd-switch-paddle:before {
  height: 1.25rem;
}
.rgpd-switch-paddle {
  position: relative;

  display: block;
  width: 4rem;
  height: 2rem;

  margin: 0;

  font-weight: inherit;
  color: inherit;

  background-color: #888;
  border-radius: 1rem;

  cursor: pointer;
  transition: all .25s ease-out;
}
.rgpd-switch-paddle:after {
  content: '';
  position: absolute;
  top: .25rem;
  left: .25rem;

  display: block;
  width: 1.5rem;
  height: 1.5rem;

  border-radius: 1rem;
  background: #fff;

  -webkit-transform: translateZ(0);
  transform: translateZ(0);

  transition: all .25s ease-out;
}
.rgpd-reveal .reveal-footer .button:first-child {
  margin-right: 1rem;
}
@media screen and (max-width: 640px) {
  .rgpd-reveal {
    padding: 0;
  }
  .rgpd-reveal-container {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
  }
}
