.mila-slider {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease, margin-top 0.3s;
    opacity: 0;

    background: #ffffff;
    position: relative;
    z-index: 2;
    width: 100%;
}

.mila-slider.is-open {
    max-height: 650px;
    opacity: 1;
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

#mila-widget-container {
    width: 100%;
    min-height: 480px;
    background: #fff;
    position: relative;
}

#mila-widget-container iframe {
    height: 560px !important;
    width: 100% !important;
    border: none !important;
    position: relative !important;
    display: block !important;
    background: #fff !important;
    z-index: 1 !important;
}

@media (max-width: 768px) {
    .doc-card-container {
        padding: 15px;
        margin: 10px 0;
        border-radius: 16px;
    }

    .doc-card-main {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .doc-card-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .doc-card-photo img.main-photo {
        max-width: 200px;
        margin: 0 auto;
    }

    .doc-card-info {
        text-align: center;
        width: 100%;
    }

    .doc-card-stats {
        flex-direction: column;
        text-align: left;
        gap: 8px;
    }
    .stat-item { text-align: center !important; }

    .doc-card-btns {
        flex-direction: column;
    }
    .btn-mila-trigger { width: 100%; }

    .mila-slider.is-open {
        max-height: 800px;
    }

    #mila-widget-container iframe {
        height: 550px !important;
    }
}

.mila-slider:not(.is-open){
    display: none;
}

.mila-slider{
    flex: 0 0 100%;
    min-height: 0;
}

#mila-widget .modal__dialog{
    max-width: 835px;
    padding: 20px 0;
    border-radius: 20px;
}


@media screen and (max-width: 770px) {
    #mila-widget #MilaIframe{
        height: 60vh!important;
        min-height: 55vh!important;
    }


    #mila-widget .modal__dialog{
        max-width: 835px;
        padding: 20px 0;
    }
}

