/* BAR */
.wpac{
  background: gray;
  /*max-width: 1200px;*/
  width: 100%;
  margin: 10px auto;

  display: flex;
  flex-wrap:  wrap;
  align-items: center;
  justify-content: center;

  position: relative;
  min-height: 40px;
  top:-100px;
  transition: 200ms ease-in all;
  visibility: hidden;
  position: fixed;
  z-index: 99;
}
.wpac.active{
  visibility: visible;
  left: 0;
  top:0;
  margin-top: 0;
}
.admin-bar .wpac.active{
  top: 32px;
}
.wpac > div{
  display: flex;
  /*box-shadow: 0 0 0 1px #f76707;*/
  /*min-height: 40px;*/
}
.wpac_center{
  flex: 100%;
  /*background-color: red;*/
  align-items: center;
  justify-content: center;
}
.wpac_action{
  flex: 20%;
  background-color: yellow;
}
.wpac_close{
  position   : absolute;
  right      : 10px;
  padding    : 0;
  margin     : 0;
  color      : #9B9B9B;
  font-weight: bold;
  font-size  : 1rem;
  cursor     : pointer;
  transition : 200ms ease-in-out all;
  top: 50%;
  transform: perspective(1px) translateY(-50%);
  opacity: .7;
}
.wpac_close:hover{
  opacity: 1;
  font-weight: bold;
}
.wpac_button{
  color: rgb(255, 255, 255);
  background-color: rgb(250, 50, 146);
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  text-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
  padding: 7px 17px;
  margin: 0 10px;
  display: block;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px inset;
  cursor: pointer;
  border-radius: 5px;
}
.wpac.wpac_bottom{
  top:initial;
  bottom: -100px;
}
.wpac.wpac_bottom.active{
  bottom: 0;
  top: initial;
  visibility: visible;
}
.admin-bar .wpac.wpac_bottom.active{
  top: initial;
}
.wpac_center_a{
  z-index: 99999;
}

/* POPUP */
.wpac_popup{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
  z-index: 999;
}
.wpac_popup_content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  width: 40%;
  z-index: 9999;
}
.wpac_popup.active{
  opacity: 1;
  visibility: visible;
  transform: scale(1.0);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
.wpac_popup_content_wrap{
  position: relative;
  overflow: hidden;
}
.wpac_popup_close{
  position   : absolute;
  right      : 10px;
  padding    : 0;
  margin     : 0;
  color      : #9B9B9B;
  font-weight: bold;
  font-size  : 1rem;
  cursor     : pointer;
  transition : 200ms ease-in-out all;
  top: 0;
  /*transform: perspective(1px) translateY(-50%);*/
  opacity: .7;
}
.wpac_popup_close:hover{
  opacity: 1;
  font-weight: bold;
}
.wpac_popup_button{
  color: rgb(255, 255, 255);
  background-color: rgb(250, 50, 146);
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  text-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
  padding: 7px 17px;
  margin: 0 10px;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px inset;
  cursor: pointer;
  border-radius: 5px;
  display: inline-block;
}

/* Animations */
@keyframes bounceIn {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Medias */
@media all and ( max-width: 1024px ){
  .wpac_popup_content{
    width: 60%;
  }
}
@media all and ( max-width: 769px ){
  .wpac .wpac_center{
    box-sizing: border-box;
    display: block;
    text-align: center;
    line-height: 30px;
    padding: 10px;
  }
  .wpac .wpac_button{
    text-align: center;
    width     : 50%;
    margin    : 0 auto;
  }
  .wpac_popup_content{
    width: 75%;
  }
  .wpac_popup_content_wrap{
    text-align: center;
  }
  .wpac_popup_content_wrap img {
    margin: 0 auto;
    float: none;
    clear: both;
    text-align: center;
    width: 85%;
  }
}