@charset "UTF-8";

#floating-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  animation: load 1s forwards;
  animation-delay: 0.5s;
}

@keyframes load {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

#floating-banner .banner-inner {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#floating-banner .banner-inner .txt {
  background-color: #153e7f;
  font-size: 14px;
  padding: 0.5em;
}

#floating-banner .banner-inner .txt p {
  text-align: center;
  color: #fff;
}

#floating-banner .col {
  padding: 10px 16px;
}

#floating-banner .col a {
  max-width: 122px;
}

#floating-banner a {
  display: block;
}

#floating-banner a .image {
  overflow: hidden;
  border-radius: 3px;
}
#floating-banner a .image img {
  transition: .8s;
}

#floating-banner a span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 5px;
}

#floating-banner a span svg {
  width: 1em;
  height: revert;
  aspect-ratio: 1 / 1;
  margin-right: 0.6em;
  fill: #153e7f;
}

#floating-banner .banner-close {
  width: 2em;
  height: 2em;
  position: absolute;
  top: -1em;
  right: -1em;
  background-color: #153e7f;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  transition: .3s;
  z-index: 91;
}

#floating-banner.hidden {
  animation: bnrfadeOut .3s 0s forwards ease-in-out;
}

#floating-banner .col-2 {
  display: flex;
  gap: 7px;
}

#floating-banner .col-1 a {
  max-width: 170px;
}

@keyframes bnrfadeOut {
  0% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
  }
}

@media screen and (min-width: 751px) {
  #floating-banner a:hover .image img {
    transform: scale(1.1);
  }
  #floating-banner .banner-close:hover {
    opacity: .7;
  }
}

@media screen and (max-width: 750px) {
  #floating-banner {
    bottom: 80px;
    right: 8px;
    width: calc(100% - 16px);
  }
  #floating-banner .banner-inner {
    display: flex;
  }
  #floating-banner .banner-inner .txt {
    display: flex;
    align-items: center;
    font-size: max(13px, 2.6vw);
    padding: 1em 1.5em;
  }
  #floating-banner .banner-inner .txt p {
    white-space: nowrap;
  }
  #floating-banner .col a {
    max-width: inherit;
  }
  #floating-banner a span {
    font-size: max(12px, 3vw);
  }
  #floating-banner .banner-close {
    width: 6vw;
    height: 6vw;
    top: -3vw;
    right: -6px;
    font-size: 3vw;
    line-height: 3vw;
  }

  #floating-banner .col-2 {
    gap: 2vw;
    padding: 3vw 3vw 2vw;
    margin: auto;
  }
  #floating-banner .col-1 {
    padding: 3vw;
    width: 100%;
  }
  #floating-banner .col-1 a {
    display: flex;
    gap: 10px;
  }
  #floating-banner .col-1 .image {
    width: 40%;
  }
  #floating-banner .col-1 a span {
    margin-top: 0;
    display: flex;
    width: calc(60% - 10px);
    justify-content: space-between;
  }
  #floating-banner .col-1 a span svg {
    order: 2;
  }
}