@keyframes showDiv {
  0%,
  99% {
      max-height: 0;
      opacity: 0;
  }
  100% {
      max-height: 999px;
      opacity: 1;
  }
}

.iiquiz {
  background-size: cover;
  background-attachment: fixed;
  color: #000;
  position: relative;
}

.iiquiz > .container-fluid {
  position: relative;
  z-index: 2;
}
.iiquiz .section__title {
  color: #000;
}
.iquiz__steps {
  animation: showDiv 2s forwards;
}
.iquiz__step {
  display: none;
}
.iquiz__step.no-change {
  pointer-events: none;
}
.iquiz__text {
}
.iquiz__variants {
  display: flex;
  flex-wrap: wrap;
}
.iquiz__variant {
  font-weight: 700;
}
.iquiz__variant__content a {
  color: #000;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.iquiz__variant__content img {
  max-width: 280px;
  /* margin: 10px; */
  border-radius: 16px;
}
.iquiz__variant__content.iquiz__result{
  display: flex;
  flex-direction: column;
}
.iquiz__variant__content.iquiz__result span{
  margin-top: 10px;;
}
.iquiz__form {
  max-width: 500px;
  margin: 0 auto;
  color: #000;
}
.iquiz__form .form {
  color: #000;
}
.iquiz__form input[type="text"],
.iquiz__form input[type="password"],
.iquiz__form input[type="tel"],
.iquiz__form textarea,
.iquiz__form select {
  color: #000;
  border-color: #000;
}
.iquiz__form ::-webkit-input-placeholder {
  color: #000;
  opacity: 1;
} /* webkit */
.iquiz__form ::-moz-placeholder {
  color: #000;
  opacity: 1;
} /* Firefox 19+ */
.iquiz__form :-moz-placeholder {
  color: #000;
  opacity: 1;
} /* Firefox 18- */
.iquiz__form :-ms-input-placeholder {
  color: #000;
  opacity: 1;
} /* IE */
.iquiz__form a {
  color: #000;
}
.iquiz__reset {
  display: flex;
  cursor: pointer;
  margin: 10px;
  padding-bottom: 50px;
}
.iquiz__reset svg {
  margin-right: 10px;
}
#gift {
  width: 345px;
  width: 500px;
  max-width: 100%;
  position: fixed;
  bottom: 0;
  right: 90px;
  z-index: 200;
  min-height: 0;
  border-radius: 3px;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.15);
  transition: min-height 0.2s ease, transform 0.2s ease;
  /* background: #fff; */
  color: #000;
  font-family: "Tacticsans", sans-serif;
}
#gift.gift-hide {
  width: 57px;
  right: 10%;
}
#gift.gf-hide,
#gift.gf-loaded.gf-hide {
  transform: translateY(200px);
  transition: transform 0.2s ease;
}

#gift.is-open {
  min-height: 525px;
  transition: min-height 0.2s ease;
  /* overflow-y: scroll; */
}

#gift .iiquiz-header {
  display: flex;
  background: #fafafa;
  padding: 16px 12px;
}

#gift .iiquiz-header:hover {
  cursor: pointer;
}
#gift.gift-hide .iiquiz-header {
  padding: 4px;
  border-radius: 50%;
}
#gift .iiquiz-header .header-content {
  display: flex;
  flex-flow: column;
  justify-content: center;
}
#gift .iiquiz-header .header-content * + p {
  margin-top: 0;
}
#gift.gift-hide .header-content {
  display: none;
}
#gift.gift-hide .header-pic {
  height: 49px;
}
#gift .iiquiz-header .header-pic {
  position: relative;
  align-items: center;
  display: flex;
  margin-right: 10px;
}

#gift .iiquiz-header .header-pic:after {
  content: "";
  background: #00ff19;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  bottom: 0;
  position: absolute;
  right: 0;
}

#gift .iiquiz-header .header-pic img {
  width: 49px;
  border-radius: 50%;
  object-fit: cover;
  max-height: 49px;
}

#gift .iiquiz-header .header-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
}

#gift .iiquiz-header .header-controls {
  /* margin-right: auto; */
  /* margin-left: 0; */
}

#gift .iiquiz-header .header-controls svg {
  margin: 10px;
}

#gift .iiquiz-header .header-controls .reduce-chat {
  opacity: 0;
  transition: opacity 0.2s ease;
}

#gift.is-open .iiquiz-header .header-controls .reduce-chat {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/*writing dots*/
div#writing .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  margin-right: 4px;
  background: #303131;
  animation: wave 1.3s linear infinite;
}

div#writing .dot:nth-child(1) {
  animation-delay: -0.2s;
}

div#writing .dot:nth-child(2) {
  animation-delay: -0.1s;
}

div#writing .dot:nth-child(3) {
  animation-delay: -0s;
}

@keyframes wave {
  0%,
  20%,
  100% {
    transform: initial;
  }

  10% {
    transform: translateY(-5px);
  }
}
@keyframes cloud1 {
  0% {
   left: 500px;
   opacity: 1;
  }
  99%{
   opacity: 1;
  }
  100% {       
   left:-200px;
   opacity: 0;
  }
}
.delay-1{
  animation: cloud1 1s ease-in-out forwards;
}
/*writing dots*/
#gift .iiquiz-chat,
#gift .gf-quit-overlay {
  display: none;
  max-height: 450px;
  min-height: 450px;
  overflow: hidden;
  background: #fff;
}

#gift.is-open .iiquiz-chat {
  display: block;
  padding-bottom: 50px;
  overflow: auto;
}

#gift .iiquiz-chat .chat-box {
  display: flex;
}

#gift .iiquiz-chat .chat-thumb {
  margin: 0 16px;
}

#gift .iiquiz-chat .chat-thumb img {
  width: 33px;
  border-radius: 50%;
  height: 33px;
  object-fit: cover;
}

#gift .iiquiz-chat .chat-messages {
  margin-right: 20px;
}

#gift .iiquiz-chat .chat-messages {
  margin-right: 0;
  margin-left: 20px;
}

#gift .iiquiz-chat .chat-messages > * {
  margin-bottom: 4px;
}

#gift .iiquiz-chat .chat-messages img,
#gift .iiquiz-chat .chat-messages video {
  border-radius: 16px;
  object-fit: cover;
  height: 200px;
}
#gift .iiquiz-chat .chat-messages video {
  width: 80%;
  max-width: 300px;
}
#gift .iiquiz-chat .chat-messages p.message {
  padding: 10px 12px;
  background: #f1f1f1;
  border-radius: 16px 16px 16px 2px;
  width: fit-content;
  max-width: 275px;
  animation: showDiv 1s forwards;
  transition: all 1s;
}

#gift .iiquiz-chat .chat-messages .discover-btn,
#gift .iiquiz-chat .chat-messages form.js-addToBag,
#gift .iiquiz-chat .chat-messages button.answer {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #767676;
  background: rgba(241, 241, 241, 0);
  margin-right: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
button.answer{
  animation: showDiv 2s forwards;
}
#gift .iiquiz-chat .chat-messages .iquiz__variant.is-selected button.answer {
  color: #f9f9f9;
  background: #03bfb5;
  border: 1px solid transparent;
}

#gift .iiquiz-chat .chat-messages button.answer:hover {
  cursor: pointer;
}

#gift .iiquiz-chat .related-wrapper .related-container {
  width: 50%;
  display: flex;
  flex-flow: column;
}

#gift .iiquiz-chat .related-wrapper .related-container p.message {
  flex-grow: 1;
}

#gift .iiquiz-chat .related-wrapper .related-container:first-child {
  margin-right: 4px;
}

#gift .iiquiz-chat .related-wrapper .related-container > *:not(form) {
  margin-bottom: 4px;
}

#gift .iiquiz-chat .prd-image-container {
  position: relative;
}

#gift .iiquiz-chat .prd-image-container .button.is-wishlist {
  position: absolute;
  right: 0;
  z-index: 1;
}

#gift .iiquiz-chat .prd-image-container.winner video {
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

#gift .iiquiz-chat .chat-messages .discover-btn,
#gift .iiquiz-chat .chat-messages form.js-addToBag {
  width: fit-content;
}

#gift .iiquiz-chat .chat-messages .discover-btn {
  display: block;
}

#gift .iiquiz-chat .chat-messages form.js-addToBag button {
  text-transform: uppercase;
  height: auto;
  font-weight: 300;
  font-size: 14px;
  padding: 0;
}

#gift .iiquiz-chat .chat-messages form.js-addToBag:hover {
  cursor: pointer;
}

#gift .gf-quit-overlay {
  display: none;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

#gift .gf-quit-overlay > * {
  margin-bottom: 15px;
}
#gift.gift-hide .iiquiz-chat {
  min-height: unset;
  height: 0;
  opacity: 0;
}
@media screen and (max-width: 480px) {
  body.gf23-open {
    overflow: hidden;
  }

  body.gf23-open .stickynav.xtra-narrow {
    display: none !important;
  }

  #gift .header-content p {
    font-size: 11px;
    margin: 10px;
  }
  #gift {
    bottom: 20px;
    right: unset;
    left: 20px;
    transition: min-height 0.2s ease, width 0.2s ease;
    width: 280px;
    box-shadow: none;
  }

  #gift .iiquiz-header .header-content * + p {
    margin-bottom: 0;
  }

  #gift.gf-loaded {
    width: 68px;
    transition: width 0.2s ease, right 0.2s ease, bottom 0.2s 0.2s ease,
      transform 0.2s ease;
  }
  #gift .iiquiz-chat .chat-thumb {
    margin: 0 8px;
  }
  #gift .iiquiz-chat .chat-messages {
    margin-left: 5px;
  }
  #gift.is-open {
    bottom: 0px;
    width: 100% !important;
    right: 0;
    left: 0;
    min-height: 92vh;
    transition: width 0.2s ease, right 0.2s ease, bottom 0.2s 0.2s ease;
    position: fixed;
    top: 98px;
    background: #fff;
    overflow-y: scroll;
    padding-bottom: 100px;
  }
  #gift.gift-hide {
    width: 57px;
    border-radius: 50%;
  }

  #gift.gift-hide .iiquiz-chat {
    min-height: unset;
    height: 0;
  }
  #gift .iiquiz-header {
    border-radius: 39px;
    padding: 4px;
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: border-radius 0.2s 0.2s linear;
  }

  #gift.is-open .iiquiz-header {
    padding: 5px;
    border-radius: 0;
    transition: border-radius 0.2s 0.2s linear;
    position: fixed;
    width: 100%;
    z-index: 2;
  }

  #gift .iiquiz-header:after,
  #gift.is-open .iiquiz-header:after {
    content: "";
    background: #00ff19;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    bottom: 4px;
    position: absolute;
    right: 4px;
    display: none;
    opacity: 0;
  }

  #gift.gf-loaded.is-open .iiquiz-header:after {
    display: none;
    opacity: 0;
  }

  #gift.gf-loaded .iiquiz-header:after {
    display: block;
    opacity: 1;
    transition: opacity 0s 0.6s;
  }

  #gift.is-open .iiquiz-header .header-pic img {
    padding: 5px;
  }

  #gift.is-open .iiquiz-header .header-pic::after {
    bottom: 5px;
    right: 5px;
  }

  #gift .iiquiz-header .header-content {
    max-height: 61px;
    justify-content: center;
    display: flex;
    flex-flow: column;
    flex-grow: 1;
  }
  #gift.gift-hide .header-content {
    display: none;
  }
  #gift .iiquiz-header .header-controls {
    display: none;
  }

  #gift.is-open .iiquiz-header .header-controls {
    display: flex;
    align-items: center;
  }

  #gift .iiquiz-chat {
    display: block;

    min-height: 0;
    padding: 0;
    transition: min-height 0.2s ease, max-height 0.2s ease;
  }

  #gift.is-open .iiquiz-chat {
    min-height: calc(100 * var(--vh) - 60px - 70px);
    max-height: unset;
    padding: 25px 0;
    transition: min-height 0.2s 0.2s ease, padding 0.2s 0.2s linear;
    padding-top: 70px;
    overflow: auto;
  }
  #gift .gf-quit-overlay {
    display: none;
    max-height: calc(100 * var(--vh) - 60px - 70px);
    min-height: calc(100 * var(--vh) - 60px - 70px);
  }
}
@media (max-width: 767px) {
  .gift-box-img{
    width: 100%;
    max-height: 400px;
  }
  .gift-list{
  width: 100%;
  }
  .gift__item{
    margin: 5px;
  }
  .gift__item a.callback-btn-white{
    width: auto;
  }
  .gift__item img{
    max-height: 100px;
  }
  .gift__price{
    min-height: 50px;
  }
  .top-video-txt, .surprize-txt, .gift-generator-txt, .magic-txt, .magic-title{
    font-size: 18px;
  }
  .top-video .btn, .gift-generator .btn, .magic .btn, .surprize .btn{
    left: 20px;
    width: auto;
  }
}