/* 彈跳視窗 */

.popUp__Btn {
    cursor: pointer;
}

.popUp__Content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    /* cursor: pointer; */
    overflow-y: scroll;
}

.popUp__Content .popUp__Innerbox {
    width: 90%;
    max-width: 600px;
    position: absolute;
    /* top: 50%; */
    left: 50%;
    /* transform: translate(-50%, -50%); */
    top: 0%;
    transform: translateX(-50%);
    margin-top: 5%;
}

.popUp__Content .popUp__Innerbox img {
    width: 100%;
    /* position: relative; */
}

.popUp__Content.popUp--active {
    opacity: 1;
    visibility: visible;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.closeBox {
    position: fixed;
    bottom: 100%;
    right: 0%;
    z-index: 99;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.closeBtn {
    font-size: 50px;
    transition: all 0.3s;
}

.closeBox:hover>.closeBtn {
    transform: rotate(90deg);
}


/* 關閉按鈕顏色 */

.closeBox1 {
    background: #fff;
    color: #fe658b;
}

.closeBox1:hover {
    background: #fe658b;
    color: #fff;
}

.closeBox2 {
    background: #fff;
    color: #fec72d;
}

.closeBox2:hover {
    background: #fec72d;
    color: #fff;
}

@media screen and (max-width: 576px) {
    .popUp__Content .popUp__Innerbox {
        margin-top: 12%;
    }

    .closeBox {
        width: 40px;
        height: 40px;
    }

    .closeBtn {
        font-size: 40px;
    }
}


/* 開闔 */

.collapse__Btn {
    cursor: pointer;
}

.collapse__Content {
    transition: max-height .3s;
    max-height: 0;
    overflow: hidden;
}

.discount_box {
    max-width: 500px;
    width: 500px;
    height: 80px;
    position: fixed;
    bottom: 100%;
    /* top: 3%; */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #787878;
    color: #fff;
    font-weight: 500;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 28px;
    padding: 0% 2%;
}

.discount_box.openDiscount {
    animation: openDiscount 1.5s ease-in-out;
}

@keyframes openDiscount {
    0% {
        transform: translate(-50%, 0%);
    }

    20% {
        transform: translate(-50%, 140%);
    }

    85% {
        transform: translate(-50%, 140%);
    }

    100% {
        transform: translate(-50%, 0%);
    }
}

@media (max-width: 768px) {
    .discount_box {
        width: 450px;
        height: 70px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .discount_box {
        max-width: 90vw;
        width: 90vw;
        height: 15vw;
        font-size: 5vw;
        padding: 0% 3%;
    }
}