/* ------------------------------
Popup
------------------------------ */

.no_scroll {
  overflow: hidden;
}

#tipup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20000;
  width: 100%;
  height: 100%;
  background-color: #000;
  filter: alpha(opacity=50);
  -ms-filter: "alpha(opacity=50)";
  -moz-opacity: 0.5;
  opacity: 0.5;
}

#tipup-wrap {
  overflow: auto;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20100;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
#tipup-wrap-outer {
  display: table;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
#tipup-wrap-inner {
  display: table-cell;
  box-sizing: border-box;
  padding: 5%;
  text-align: center;
  vertical-align: middle;
}

.tipup-block {
}
.tipup-ready {
  position: relative;
  box-sizing: border-box;
  margin: auto;
  padding: 0;
  width: 100%;
  text-align: left;
  border-radius: 5px;
}
.tipup-ready.tipup-no-overlay {
  padding: 5px;
  background-color: rgba(200, 200, 200, 0.5);
}
.tipup-block .tipup-body {
  box-sizing: border-box;
  margin: 0;
  padding: 2rem;
  width: auto;
  height: 100%;
  background-color: #fff;
  border-radius: 5px;
}
.tipup-block .tipup-close {
  display: block;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  /*
    border: 1px solid #000;
    */
}
.tipup-block .tipup-close::before,
.tipup-close::after {
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  margin: auto;
  padding: 0;
  width: 0.2rem;
  height: 1.5rem;
  content: "";
  background-color: #666;
}
.tipup-block .tipup-close::before {
  transform: rotate(45deg);
}
.tipup-block .tipup-close::after {
  transform: rotate(-45deg);
}

@media print, screen and (min-width: 769px) {
  .tipup-ready {
    max-width: 900px;
  }
}

/* ------------------------------
More Text
------------------------------ */

.more-block {
  position: relative;
  box-sizing: border-box;
}
.more-block.close {
  overflow: hidden;
  height: 10em;
}

.more-body {
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
}
.more-block.close::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, rgb(255, 255, 255, 0) 0%, rgb(255, 255, 255, 0) 50%, rgb(255, 255, 255, 1) 100%);
}

.more-block .more-sw {
  display: none;
  position: static;
  box-sizing: border-box;
  text-align: center;
}
.more-block.close .more-sw {
  position: absolute;
  bottom: 0;
}

/* ------------------------------
Floating
------------------------------ */
*[class^="mf-flt_base"] {
  position: relative;
}
.mf-flt:not(.slide)[data-float-visible] {
  opacity: 0;
  pointer-events: none;
  transition: ease-in-out 0.5s;
}
.mf-flt:not(.slide)[data-float-visible].is-visible {
  opacity: 1;
  pointer-events: all;
}
*.floating {
  position: fixed;
  z-index: 1000;
}
.mf-flt.floating:not(.bottom) {
  top: 0;
}
.mf-flt.bottom {
  position: fixed;
  bottom: 0;
}
.mf-flt.slide {
  transform: translateY(-100%);
  animation: slide 0.5s ease-in-out 1 0s;
  animation-fill-mode: forwards;
}
@keyframes slide {
  to {
    transform: translateY(0%);
  }
}

.mf-flt:not(.slide).is-hidden {
  opacity: 0 !important;
  pointer-events: none;
}
.mf-flt.slide.is-hidden {
  transform: translateY(0%);
  animation: slideOut 0.5s ease-in-out 1 0s;
  animation-fill-mode: forwards;
}
@keyframes slideOut {
  to {
    transform: translateY(-100%);
  }
}

/* ------------------------------
Filtering
------------------------------ */
*[data-filter-target] a.selected {
  outline: 2px solid red;
}
*[data-filter-target] a.disable {
  background-color: #ccc;
  pointer-events: none;
}
