/* .placeholder-sect {
  height: 200dvh;
  background: url(../img/bg.png);
  background-size: contain;
  background-position: right top;
  background-repeat: repeat-y;
} */

.button-primary,
.button-secondary {
  text-align: center;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 20px;
  font-size: 22px;
  cursor: pointer;
}

.button-primary {
  background-color: #e61a47;
  border: 2px solid #e61a47;
  color: #fff;
}

.button-secondary {
  color: #e61a47;
  background-color: #fff;
  border-color: #e61a47;
}

.floating-elem {
  position: fixed;
  top: 50%;
  right: -440px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 100000;
}

.floating-elem .floating-preview {
  border-radius: 50px 0 0 50px;
  padding: 35px 20px;
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
}

.floating-elem .floating-preview :is(.streak-wrapper,
  .broken-streak-wrapper,
  .points-wrapper,
  .target-wrapper,
  .challenges-toggle) img {
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.floating-elem .floating-preview .challenges-toggle,
.floating-elem .floating-preview .broken-streak-wrapper {
  cursor: pointer;
}

.floating-elem .floating-preview .preview-int {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 600;
}

.floating-elem.show-widget {
  -webkit-filter: drop-shadow(0 0 50px #000);
  filter: drop-shadow(0 0 50px #000);
  right: 20px;
}

.floating-elem .challenges-wrapper {
  border-radius: 0 50px 50px 0;
  padding: 35px;
  background-color: #fff;
  max-width: 440px;
}

.floating-elem .challenges-wrapper .challenges-head {
  text-transform: uppercase;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
}

.floating-elem .challenges-wrapper .challenges-list {
  margin-top: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 25px;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5%;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-icon {
  -ms-flex-preferred-size: 20%;
  flex-basis: 20%;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-content {
  -ms-flex-preferred-size: 55%;
  flex-basis: 55%;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-content .challenge-type {
  font-size: 22px;
  font-weight: 800;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-content .challenge-summary {
  font-size: 18px;
  font-weight: 600;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-checkbox {
  -ms-flex-preferred-size: 10%;
  flex-basis: 10%;
  text-align: center;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-checkbox .streak-checkbox {
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff8cc;
  border: 3px solid #ffd93b;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  outline: none;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-checkbox .streak-checkbox:checked {
  background-color: #f8a9b6;
  border-color: #e61a47;
}

.floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-checkbox .streak-checkbox:checked:after {
  content: "";
  position: absolute;
  left: 5px;
  top: -8px;
  width: 35px;
  height: 35px;
  background-image: url("../img/checkmark.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.mc_sb_popup {
  z-index: 500;
  width: 70%;
  max-width: 570px;
  display: none;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, -webkit-transform 0.5s ease-in-out;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, -webkit-transform 0.5s ease-in-out;
  transition: transform 0.5s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  transition: transform 0.5s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, -webkit-transform 0.5s ease-in-out;
  -webkit-filter: drop-shadow(0 0 50px #000);
  filter: drop-shadow(0 0 50px #000);
}

.mc_sb_popup.open {
  display: block;
  visibility: visible;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  /* Ensure it stays centered when open */
  opacity: 1;
}

.mc_sb_popup.slide-in-top {
  -webkit-transform: translate(-50%, -50%) translateY(-100%);
  transform: translate(-50%, -50%) translateY(-100%);
  /* Start above the viewport */
}

.mc_sb_popup.slide-out-bottom {
  -webkit-transform: translate(-50%, -50%) translateY(100%);
  transform: translate(-50%, -50%) translateY(100%);
  /* Slide below the viewport */
  opacity: 0;
  /* Fade out while sliding */
}

.mc_sb_popup .popup-header {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50px 50px 0px 0px;
  padding: 20px 0;
}

.mc_sb_popup .popup-header p {
  font-size: 32px;
  font-weight: 700;
  width: 70%;
  margin: 0 auto;
}

.mc_sb_popup .popup-body {
  background-color: #fff;
  padding: 25px;
  border-radius: 0px 0px 50px 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  row-gap: 20px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.mc_sb_popup .popup-body .popup-content {
  text-align: center;
  width: 65%;
  font-size: 20px;
  margin: 0 auto;
  color: #000;
}

.mc_sb_popup .popup-body .popup-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  /* -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; */
}

.mc_sb_popup .popup-body .popup-actions .popup-action-btn {
  text-align: center;
  border-radius: 50px;
  background-color: #ff2152;
  padding: 20px;
  -ms-flex-preferred-size: 48%;
  flex-basis: 48%;
  border: 0;
  cursor: pointer;
}

.mc_sb_popup .popup-body .popup-actions .popup-action-btn img {
  width: 120px;
  margin: 0 auto;
}

.mc_sb_popup .popup-body .popup-actions .popup-action-btn .action-int,
.mc_sb_popup .popup-body .popup-actions .popup-action-btn .action-deet {
  color: #fff;
  font-weight: 700;
}

.mc_sb_popup .popup-body .popup-actions .popup-action-btn .action-int {
  font-size: 42px;
  line-height: 1.3em;
  margin: 10px 0;
}

.mc_sb_popup .popup-body .popup-actions .popup-action-btn .action-deet {
  line-height: 1;
  font-size: 22px;
}

.mc_sb_popup .popup-body .popup-actions .popup-action-btn .action-deet .coin-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-image: url("../img/coin.png");
  background-size: cover;
}

.mc_sb_popup .popup-body .popup-actions button {
  -ms-flex-preferred-size: 48%;
  flex-basis: 48%;
  width: 48%;
}

#restore-streak-popup .popup-body,
#reset-streak-popup .popup-body {
  border-radius: 50px;
}

#restore-streak-popup .popup-body .popup-content,
#reset-streak-popup .popup-body .popup-content {
  width: 85%;
}

#restore-streak-popup .popup-body .popup-content.restore_streak_price,
#reset-streak-popup .popup-body .popup-content.restore_streak_price {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 15px;
  font-size: 44px;
  font-weight: 700;
}

#restore-streak-popup .popup-body .popup-content.restore_streak_price .coin-icon,
#reset-streak-popup .popup-body .popup-content.restore_streak_price .coin-icon {
  width: 48px;
  height: 48px;
  background-image: url("../img/coin.png");
  background-size: cover;
}

@media screen and (max-width:990px) {
  .mc_sb_popup {
    width: 60%;
  }

  .mc_sb_popup .popup-header p {
    font-size: 28px;
  }

  .mc_sb_popup .popup-body {
    padding: 20px;
  }

  .mc_sb_popup .popup-body .popup-content {
    font-size: 18px;
  }

  .mc_sb_popup .popup-body .popup-actions .popup-action-btn img {
    width: 80px;
  }

  .mc_sb_popup .popup-body .popup-actions .popup-action-btn .action-deet {
    font-size: 18px;
  }

  #restore-streak-popup .popup-body .popup-content.restore_streak_price,
  #reset-streak-popup .popup-body .popup-content.restore_streak_price {
    font-size: 34px;
  }

  .button-primary,
  .button-secondary {
    font-size: 18px;
  }
}

@media screen and (max-width:767px) {
  .floating-elem {
    width: 100%;
    right: 0px;
    top: 50px;
    transform: unset;
  }

  .floating-elem .floating-preview {
    width: inherit;
    flex-direction: row;
    border-radius: 0;
    padding: 10px;
    justify-content: space-between;
  }

  .floating-elem .floating-preview .challenges-toggle {
    transform: rotate(-90deg);
  }

  .floating-elem .floating-preview :is(.streak-wrapper, .broken-streak-wrapper, .points-wrapper, .target-wrapper, .challenges-toggle) {
    display: inline-flex;
    column-gap: 10px;
  }

  .floating-elem .floating-preview :is(.streak-wrapper, .broken-streak-wrapper, .points-wrapper, .target-wrapper, .challenges-toggle) img {
    width: 30px;
    height: 30px;
  }

  .floating-elem .floating-preview .preview-int {
    margin: 0;
  }

  .floating-elem .challenges-wrapper {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    border-radius: 35px;
    filter: drop-shadow(0 0 50px #000);
  }

  .floating-elem.show-widget {
    right: 0;
    filter: unset;
  }

  .floating-elem.show-widget .challenges-wrapper {
    display: block;
    visibility: visible;
    opacity: 1;
  }

  .floating-elem .challenges-wrapper {
    padding: 20px;
  }

  .floating-elem .challenges-wrapper .challenges-head {
    font-size: 28px;
    line-height: 38px;
  }

  .floating-elem .challenges-wrapper .challenges-list {
    margin-top: 0;
  }

  .floating-elem .challenges-wrapper .challenges-list .single-challenge {
    justify-content: space-between;
  }

  .floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-content .challenge-type {
    margin-bottom: 0;
  }

  .floating-elem .challenges-wrapper .challenges-list .single-challenge .challenge-content .challenge-summary {
    font-size: 16px;
    margin-bottom: 0;
  }

  .mc_sb_popup,
  #restore-streak-popup .popup-body .popup-content,
  #reset-streak-popup .popup-body .popup-content {
    width: 90%;
  }

  .mc_sb_popup .popup-header p {
    font-size: 22px;
    width: 95%;
  }

  .mc_sb_popup .popup-body .popup-content {
    width: 90%;
  }

  .mc_sb_popup .popup-body .popup-actions .popup-action-btn img {
    width: 60px;
  }

  .mc_sb_popup .popup-body .popup-actions .popup-action-btn .action-int {
    font-size: 32px;
  }

  #restore-streak-popup .popup-body .popup-content.restore_streak_price,
  #reset-streak-popup .popup-body .popup-content.restore_streak_price {
    font-size: 26px;
  }

  .button-primary,
  .button-secondary {
    padding: 10px;
    font-size: 16px;
  }
}