


#react-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
}



#react-modal.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}




#react-modal > div {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    margin-top: 3%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}



/* При активации — плавно поднимаем */
#react-modal.active > div {
    transform: translateY(0);
}

#close-react-modal {
    /*position: absolute;*/
    /*top: 10px;*/
    /*left: 10px; */
     background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Телефоны */
@media (max-width: 480px) {
    

    #react-modal > div {
        width: 100%;
        height: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        margin: 0;
        padding: 15px;
        overflow-y: auto;
    } 


}


@media (min-width: 481px) and (max-width: 1024px) {
 
     #react-modal > div {
        width: 95%;
        height: auto;
        max-height: 110vh;
        margin-top: 5%;
        border-radius: 20px;
        padding: 20px;
        overflow-y: auto;
    } 
}



#react-modal > div::-webkit-scrollbar {
    width: 8px;
}

#react-modal > div::-webkit-scrollbar-track {
    background: #ffe4ec; 
    border-radius: 4px;
}

#react-modal > div::-webkit-scrollbar-thumb {
    background-color: #f6b5d3; 
    border-radius: 4px;
    border: 2px solid #ffe4ec; 
}

/* Для Firefox */
#react-modal > div {
    scrollbar-width: thin;
    scrollbar-color: #f6b5d3 #ffe4ec;
}

@media (min-width: 1025px) and (max-width: 1366px) {
    #react-modal > div {
        max-width: 450px; 
        padding: 16px; 
    }
}

.order-now-btn {
    position: fixed;
    bottom: 30px;
    right: 80px;
    background-color: #fdd835; /* желтый */
    color: #000; /* черный текст */
    border: 2px solid #000;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 9999;
  }
  
  .order-now-btn:hover {
    background-color: #000;
    color: #fdd835;
    border-color: #fdd835;
  }