/**
* BFI Pop-up styling
* * TODO - Scroll bar
* * TODO - Cookie JS
* * -- On X click, don't show again (for 7 days)
* * -- On "don't like discounts" click, don't show again (for a year)
* TODO -- On submission, don't show again
* * TODO - Change content via ACF
* * TODO - Choose options - pop-up style, trigger type
* TODO - If trigger is click, define type of div etc
* * TODO - Exclude pages (acct/checkout/cart by default if applicable)
* * TODO - Add text for bottom
* * TODO -- Reactivate cookie if statement
* * TODO -- Load after 5/10 secs
*/
html.dont-move {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
.bfi-modal {
  position: fixed;
  padding: 0;
  background: #f4f4f4;
}
.bfi-modal .close-btn {
  font-size: 1.8em;
  position: absolute;
  top: 5px;
  right: 5px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(244, 244, 244, 0.6);
  border-radius: 50%;
}
.bfi-modal .close-btn:hover {
  opacity: 0.7;
}
.bfi-modal .bfi-popup-img img.mobile-modal-image {
  display: none;
}
@media screen and (max-width: 850px) {
  .bfi-modal .bfi-popup-img img.desktop-modal-image {
    display: none;
  }
  .bfi-modal .bfi-popup-img img.mobile-modal-image {
    display: block;
  }
}
.bfi-modal .bfi-popup-content {
  padding: 50px 50px var(--nav-slideout-padding-bottom);
}
@media screen and (max-width: 768px) {
  .bfi-modal .bfi-popup-content {
    padding: 30px 30px var(--nav-slideout-padding-bottom);
  }
}
.bfi-modal .bfi-popup-content > *:first-child {
  margin-top: 0;
}
.bfi-modal .bfi-popup-content > *:last-child {
  margin-bottom: 0;
}
.bfi-modal .bfi-popup-content::-webkit-scrollbar {
  width: 10px;
}
.bfi-modal .bfi-popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.bfi-modal .bfi-popup-content::-webkit-scrollbar-thumb {
  background: #888;
}
.bfi-modal .bfi-popup-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.bfi-modal .dont-show-popup {
  display: block;
  margin: 1em 0 0;
  font-size: 0.9em;
  font-weight: 600;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}
.bfi-modal .dont-show-popup:hover {
  text-decoration: none;
}
.bfi-modal.slideout {
  top: 0;
  left: 0;
  overflow-y: scroll;
  max-width: 500px;
  width: 100%;
  height: 100dvh;
  z-index: 999;
  transition: all 1s;
  transform: translateX(-500px);
}
.bfi-modal.slideout.active {
  transform: translateX(0);
}
.bfi-modal.slideout .bfi-popup-img {
  height: 250px;
}
.bfi-modal.slideout .bfi-popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bfi-modal.center {
  display: flex;
  flex-flow: row nowrap;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 100%;
  max-width: 1000px;
  max-height: 80dvh;
  z-index: -1;
  opacity: 0;
  transition: all 0.5s;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 25px 5px rgba(153, 153, 153, 0.3);
}
@media screen and (max-width: 850px) {
  .bfi-modal.center {
    overflow-y: scroll;
    flex-direction: column;
  }
}
@media screen and (max-width: 500px) {
  .bfi-modal.center {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }
}
.bfi-modal.center.active {
  z-index: 300;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.bfi-modal.center > * {
  flex: 1;
}
@media screen and (max-width: 850px) {
  .bfi-modal.center > * {
    flex: none;
  }
}
@media screen and (max-width: 850px) {
  .bfi-modal.center .bfi-popup-img {
    height: 250px;
  }
}
.bfi-modal.center .bfi-popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bfi-modal.center .bfi-popup-content {
  overflow-y: scroll;
}
@media screen and (max-width: 850px) {
  .bfi-modal.center .bfi-popup-content {
    overflow-y: auto;
  }
}
.bfi-modal.slideup {
  position: fixed;
  width: 90%;
  max-height: 80%;
  max-width: 800px;
  margin: 0 auto;
  bottom: -100%;
  left: 50%;
  z-index: 999;
  transform: translateX(-50%);
  transition: all 1s;
  box-shadow: 0 0 25px 5px rgba(153, 153, 153, 0.3);
  overflow-y: scroll;
}
.bfi-modal.slideup.active {
  bottom: 0;
}
.bfi-modal.slideup .bfi-popup-img {
  height: 250px;
}
.bfi-modal.slideup .bfi-popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bfi-modal::-webkit-scrollbar {
  width: 10px;
}
.bfi-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.bfi-modal::-webkit-scrollbar-thumb {
  background: #888;
}
.bfi-modal::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.smoke-screen.for-modal {
  display: none;
  z-index: 100;
}
.smoke-screen.for-modal.active {
  display: block;
}
