*{
    margin: 0;
    padding: 0;
}

#productModal.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 320px;
    width: 100%;
    /* height: 499px; */
    border-radius: 4px;
    /* background: url(../images/modal_background.png) no-repeat 0 0 /cover; */
    background: linear-gradient(247.22deg, rgba(255, 119, 119, 0) 64.99%, rgba(255, 119, 119, 0.1) 81.97%), radial-gradient(80.8% 222.27% at 16.28% 29.9%, rgba(255, 240, 188, 0.1) 0%, rgba(255, 240, 188, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, radial-gradient(73.22% 125.26% at 75.22% 8.14%, rgba(42, 76, 255, 0.1) 0%, rgba(42, 76, 255, 0) 100%), rgba(255, 255, 255, 0.9);
    box-shadow: 0px 26px 65px rgba(0, 0, 0, 0.25);
    /* backdrop-filter: blur(3px); */
    /* padding: 20px; */
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
    padding: 48px 24px 24px;
    /* overflow: hidden; */
}
#productModal.modal::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backdrop-filter: blur(5px);
    z-index: -1;
    border-radius: 20px;
}
/* #productModal.modal::before {
    content: '';
    position: absolute; 
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: 268px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: -1;
} */

#productModal.modal hr {
    width: 100%;
    display: block;
    margin: 16px auto;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.25);
    border: none;
    height: 1px;
    background: #fff;
    /* width: 65%; */
    /* margin: 6% auto; */
    /* display:none; */
}


#productModal.modal .button-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

#productModal.modal button.modal-button {
    height: 36px;
    padding: 0;
    font-weight: 600;
    font-size: 14px;
    color: white;
    border: none;
    border-radius: 999px;
    background: rgba(87, 73, 176, 0.7);
    cursor: pointer;
    line-height: 1;
}

#productModal.modal button.modal-button:nth-child(1){
    width: 95px;
    color: rgba(48, 48, 48, 0.6);
    background-color: rgba(255, 255, 255, 0.7);
}
#productModal.modal button.modal-button:nth-child(1):hover{
    background-color: #fff;
    color: #303030;
}
#productModal.modal button.modal-button:nth-child(2){
    width: 122px;
    
}
#productModal.modal button.modal-button:nth-child(2):hover{
    background: rgba(97, 73, 248, 0.9);
    box-shadow: inset 4px 4px 12px rgba(255, 255, 255, 0.4);
    border-radius: 20.7746px;
}



.modal #bottomButton {
    display: none;
    width: 100%;
    text-align: center;
    line-height: 3.9;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    color: #444E6B;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid #fff;
}
.modal #bottomButton p{
    margin-left: -4%;
    display:none;
}
.modal #bottomButton::before{
    content: '';
    position: absolute;
    top: 50%;
    right: 38%;
    transform: translateY(-50%);
    width: 3.45%;
    height: 21.2%;
    background: url(../../assets/images/product_icon.png) no-repeat center center/cover;
}

#productModal .close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0;
    cursor: pointer;
    width: 32px;
    height: 32px;
    z-index:99;
    border-radius: 0;
    transform: translate(0);
}
#productModal .close-button:hover{
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); */
    z-index: 99;
}

#productModal h2{
    font-weight: 700;
    font-size: 20px;
    color: #303030;
    margin-top: 16px;
    position: relative;

}
#productModal .modal-image{
    width: 100%;
    position:relative;
    z-index:1;
    /* margin-top:24px; */
    max-width: 232px;
}
#productModal .modal-description {
    font-weight: 400;
    font-size: 15px;
    width: 230px;
    margin: 0 24px;
    word-break: keep-all;
    line-height: 1.4;
    text-align: left; 
    padding-bottom: 44px;   
}
/**/
#productModal .modal-description span {
    display: block;
    margin-bottom: 8px;
}

#productModal .modal-description span::before {
    content: "·";
    margin-right: 5px;
}
/**/
#productModal .product-code{
    position: relative;
    font-weight: 400;  
    font-size: 14px;
    color: #747474;
    margin-top: 8px;
}
@media (max-width:650px) {
    #productModal.modal button.modal-button{
        font-size: 16px;
    }
    #productModal .modal-description{
        font-size: 15px;
    }
    #productModal h2{
        font-size: 26px;
    }
}
@media (max-width:600px) {
    #productModal.modal {
        z-index: 999;
    }
    #productModal .product-code{
        font-size:14px
    }
}
@media (max-width:500px) {
    #productModal h2{
        font-size: 22px;
    }
    .modal #bottomButton {
        font-size: 16px;
    }
    #productModal.modal button.modal-button {
        font-size: 13px;
        height: 38px;
    }
}
@media (max-width:425px) {
    #productModal.modal button.modal-button{
        height: 32px;
        line-height: 1.2rem;
    }
    .close-button{
        width: 20px;
        height: 20px;    
    }
    .modal #bottomButton::before{
        right: 37%;
    }
}
@media (max-width: 375px) {
    #productModal.modal {
        border-radius: 20px;
    }
    #productModal .modal-description{
        font-size: 13px;
    }
    .modal #bottomButton {
        font-size: 13px;
    }
    
}