.cby-bf-layover {
  position: fixed;
  left: 0;
  top: 0;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}

.cby-bf-layover.step-hidden,
.cby-bf-layover[data-visible="hidden"] {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.cby-bf-layover[data-visible="visible"] {
  display: -ms-flexbox !important;
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.cby-bf-layover .step-hidden {
  display: none;
}

.cby-bf-layover .step-visible {
  display: -ms-flexbox !important;
  display: flex !important;
}

.cby-bf-layover-wrapper {
  position: relative;
  width: calc(100% - 4em);
  margin: 2em;
  max-width: 340px;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.1);
}

.cby-bf-layover-wrapper.step-loading:after {
  content: '';
  z-index: 99999;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
}

.cby-bf-layover-wrapper.step-loading:before {
  content: '';
  z-index: 999999;
  position: absolute;
  left: calc(50% - 12px);
  top: calc(50% - 12px);
  width: 30px;
  height: 30px;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  border-top: 2px solid #000;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  animation-name: newsSpin;
  animation-duration: 600ms;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.24, 0.01, 0.76, 0.99);
  border-radius: 50%;
}

.cby-bf-layover-close {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 32px;
  height: 32px;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
}

.cby-bf-layover-close:after {
  content: '';
  position: absolute;
  width: 21px;
  height: 2px;
  left: 6px;
  top: 15px;
  transform: rotate(45deg);
}

.cby-bf-layover-close:before {
  content: '';
  position: absolute;
  width: 21px;
  height: 2px;
  left: 6px;
  top: 15px;
  transform: rotate(-45deg);
}

.cby-bf-layover-step-one {
  position: relative;
  background: #000;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.cby-bf-layover-step-one-banner {
  width: 100%;
}

.cby-bf-layover-step-one-banner figure {
  padding: 0;
  margin: 0;
}

.cby-bf-layover-step-one-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.cby-bf-layover-step-one-banner:nth-child(2) {
  margin-top: 0;
}

.cby-bf-layover-step-one-banner:nth-child(3) {
  margin: 20px 0 5px;
}

.cby-bf-layover-step-one-text {
  width: 100%;
  text-align: center;
}

.cby-bf-layover-step-one-text p {
  font-size: 15px;
  margin: 0 auto;
  color: #fff;
  font-family: 'Overpass', sans-serif;
  max-width: 225px;
} 

.cby-bf-layover-step-one-input {
  width: 100%;
  padding: 0 15px;
  margin: 15px 0 30px;
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
}

.cby-bf-layover-step-one-input input {
  height: 35px;
  border: 1px solid #fff;
  width: calc(100% - 110px);
  padding: 0 15px;
  line-height: 23px;
  font-size: 14px;
  background-position: center right 10px;
  background-size: 16px;
  font-family: 'Overpass', sans-serif;
  color: #fff;
  background: #000;
  font-weight: 600;
  font-style: italic;
}

.cby-bf-layover-step-one-input input::-webkit-input-placeholder,
.cby-bf-layover-step-one-input input:-ms-input-placeholder,
.cby-bf-layover-step-one-input input::placeholder {
  color: #fff;
  font-weight: 600;
}

.cby-bf-layover-step-one-input input.error {
  border-color: #ff2222;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='#ff2222'%3E%3Cpath d='M11 15h2v2h-2zm0-8h2v6h-2zm1-5a10 10 0 100 20 10 10 0 000-20zm0 18a8 8 0 110-16 8 8 0 010 16z'/%3E%3C/svg%3E");
}

.cby-bf-layover-step-one-input button {
  height: 35px;
  background: #9d202a;
  color: #fff;
  width: 100px;
  font-size: 13px;
  text-transform: uppercase;
  padding: 0;
  text-align: center;
  line-height: 37px;
  margin-left: 10px;
  font-family: 'Overpass', sans-serif;
  font-weight: 600;
  border: none;
}

.cby-bf-layover-step-one-input span.error {
  width: 100%;
  margin-top: 5px;
  font-size: 11px;
  position: absolute;
  bottom: -25px;
}

.cby-bf-layover-step-one-input span.error.exists {
  color: #ff2222;
}

.cby-bf-layover-step-one-input span.error.invalid {
  color: #ff2222;
}

.cby-bf-layover-step-one .cby-bf-layover-close:after {
  background: #000;
}

.cby-bf-layover-step-one .cby-bf-layover-close:before {
  background: #000;
}

.cby-bf-layover-step-two {
  position: relative;
  background: #000;
  display: none;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.cby-bf-layover-step-two-banner {
  width: 100%;
  margin: 20px 0 60px;
}

.cby-bf-layover-step-two-banner figure {
  padding: 0;
  margin: 0;
}

.cby-bf-layover-step-two-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.cby-bf-layover-step-two-text {
  width: 100%;
}

.cby-bf-layover-step-two-text h3 {
  font-size: 24px;
  margin: 60px auto 10px;
  text-align: center;
  font-family: 'Overpass', sans-serif;
  font-weight: 100;
  color: #fff;
  line-height: 32px;
}

.cby-bf-layover-step-two-text p {
  font-size: 16px;
  color: #fff;
  margin: 0 auto;
  text-align: center;
  font-family: 'Overpass', sans-serif;
  font-style: italic;
} 

.cby-bf-layover-step-two-text p span{
   color: #9d202a;
} 

.cby-bf-layover-step-two .cby-bf-layover-close:after {
  background: #fff;
}

.cby-bf-layover-step-two .cby-bf-layover-close:before {
  background: #fff;
}

@keyframes newsSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .cby-bf-layover-step-one {
    width: 50%;
    top: 25px;
    padding: 30px 0 50px
  }
}

@media (min-width: 1001px) {
  .cby-bf-layover-step-one {
    width: 60%;
    top: 50px;
    padding: 40px 40px 80px;
  }
}

@media (min-width: 768px) {
  .cby-bf-layover[data-visible="visible"] {
    display: block !important;
  }
  .cby-bf-layover-wrapper {
    max-width: 1000px;
    left: 50%;
    height: auto;
    transform: translate3d(-50%, -50%, 0);
    top: 50%;
    margin: 0;
    background-image: url("/arquivos/cby-bfs-bf-background1.png");
    background-size: 100%;
    width: 70%;
    display: flex;
    justify-content: flex-end;
    min-height: 650px;
    background-repeat: no-repeat;
    align-items: center;
  }

  .cby-bf-layover-step-one {
    max-width: 500px;
    left: 32%;
    position: absolute;
  }

  .cby-bf-layover-step-one-input input {
    background: white;
    font-style: normal;
    font-weight: 300;
    text-align: center;
    width: 100%;
    color: #b1b1b1;
  }

  .cby-bf-layover-step-one-input {
    width: 70%;
    margin: 0 auto;
    margin-top: 20px;
  }

  .cby-bf-layover-step-one-input button {
    margin: 0 auto;
    width: 130px;
    margin-top: 25px;
    font-weight: bold;
    background-color: #ff4d46;
  }

  .cby-bf-layover-close:before, .cby-bf-layover-close:after {
    background: white !important;
  }
  .cby-bf-layover-close {
    top: -30px;
    right: -40px;
  }
  .cby-bf-layover-step-one-banner {
    margin-bottom: 20px;
  }

  .cby-bf-layover-step-one-text p {
    text-transform: uppercase;
    max-width: 100%;
    font-weight: 100;
    letter-spacing: .5px;
  }

  .cby-bf-layover-step-one-text p span {
    font-weight: bold;
    font-size: 18px;
  }
  .cby-bf-layover-step-two.step-visible {
    width: 100%;
    padding: 30px 0 60px;
  }

  .cby-bf-layover-step-two-text h3 {
    font-weight: bold;
    line-height: 25px;
    text-transform: uppercase;
    margin-bottom: 60px;
  }

  .cby-bf-layover-step-two-text p {
    font-style: normal;
    font-weight: 300;
  }

  .cby-bf-layover-step-two-text p span {
    font-weight: bold;
  }

  .cby-bf-layover-step-two-banner img {
    width: auto;
    margin: 0 auto;
  }

  .cby-bf-layover-step-two.step-visible {
    background: transparent;
    width: 95%;
  }
  .cby-bf-layover-wrapper.step-two {
    background-image: url(/arquivos/cby-bfs-bf-background2.png);
    justify-content: unset;
    min-height: 700px;
  }
  .cby-bf-layover-step-two.step-visible .cby-bf-layover-close {
    top: -60px;
    right: 50px;
  }
}

