@charset "utf-8";

.block-goods-variation-following {
  display: none;
}

/* 追従カート
-------------------- */
.fix-cart {
  position: fixed;
  bottom: 100px;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
}
/* .page-goods:has(.block-goods-variation-following) .fix-cart {
  bottom: 215px;
} */
.fix-cart-open {
  position: relative;
  transition: all 0.5s linear;
  pointer-events: all;
}
.fix-cart.is-open .fix-cart-open {
  transform: none;
}
.fix-cart-closed {
  position: absolute;
  bottom: 40px;
  right: 0;
  transition: all 0.5s linear;
  z-index: -1;
  pointer-events: all;
}
.fix-cart button {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: all .3s;
}
.fix-cart button:hover {
  opacity: 0.5;
}
@media screen and (min-width: 768px) {
  .fix-cart-open {
    right: 0;
    transform: translateX(calc(100% + 40px));
  }
}
@media screen and (max-width: 767px) {
  .fix-cart {
    bottom: 0;
    right: auto;
    left: 0;
    width: 100%;
  }
  .fix-cart-open {
    transform: translateY(calc(100% + 30px));
  }
  .fix-cart-closed {
    bottom: -9px;
    right: auto;
    left: 16px;
  }
}

/* 開いた状態
-------------------- */
.fix-cart-open .fix-cart-toggle {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 41px;
  height: 60px;
  background: #fff;
  border: 1px solid #A27C4F;
  border-radius: 30px 0 0 30px;
}
.fix-cart-open .fix-cart-toggle::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 1px solid #5C4F41;
  border-right: 1px solid #5C4F41;
  transform: rotate(45deg);
}
.fix-cart-open .fix-cart-toggle:hover {
  opacity: 1;
}
.fix-cart-open .fix-cart-wrap {
  width: 223px;
  padding: 20px 28px 20px 20px;
  background: #fff;
  border: 1px solid #A27C4F;
  border-right: none;
  border-radius: 16px 0 0 16px;
}
.fix-cart-open .fix-cart-name {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.fix-cart-open .fix-cart-variation {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.fix-cart-open .fix-cart-price {
  font-size: 20px;
  font-weight: bold;
}
.fix-cart-open .fix-cart-price span {
  font-size: 12px;
}
.fix-cart-open .fix-cart-add-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  background: #FF4500;
  border-radius: 40px;
}
@media screen and (min-width: 768px) {
  .fix-cart-open .fix-cart-toggle {
    left: -40px;
    bottom: 40px;
    border-right: none;
  }
}
@media screen and (max-width: 767px) {
  .fix-cart-open .fix-cart-toggle {
    left: 16px;
    top: -30px;
    width: 50px;
    height: 31px;
    border-bottom: none;
    border-radius: 30px 30px 0 0;
  }
  .fix-cart-open .fix-cart-toggle::before {
    transform: rotate(135deg);
  }
  .fix-cart-open .fix-cart-wrap {
    width: 100%;
    padding: 18px 16px 10px;
    border-bottom: none;
    border-left: none;
    border-radius: 16px 16px 0 0;
  }
  .fix-cart-open .fix-cart-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }
  .fix-cart-info-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .fix-cart-open .fix-cart-name {
    width: 100%;
    margin: 0;
    -webkit-line-clamp: 1;
  }
  .fix-cart-open .fix-cart-price {
    margin: auto 0 0;
    font-size: 19px;
  }
  .fix-cart-open .fix-cart-price span {
    font-size: 11px;
  }
  .fix-cart-open .fix-cart-add-btn {
    width: 130px;
    height: 45px;
    padding-top: 2px;
    font-size: 14px;
    line-height: 1.14;
  }
}

/* 閉じた状態
-------------------- */
.fix-cart-closed .fix-cart-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 115px;
  height: 60px;
  color: #fff;
  background: #FF4500;
  border-radius: 30px 0 0 30px;
}
.fix-cart-closed .fix-cart-icon img {
  width: 40px;
}
.fix-cart-closed .fix-cart-text {
  margin: -2px 0 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .fix-cart-closed .fix-cart-toggle {
    width: 50px;
    height: 64px;
    border-radius: 30px 30px 0 0;
  }
  .fix-cart-closed .fix-cart-icon img {
    width: 43px;
  }
}