.pm-ai-module{
    position:relative;
    width:100%;
}

.pm-ai-module .pm-ai-module-form{
    display:flex;
    align-items:stretch;
    gap:7px;
    width:100%;
}
.pm-ai-module .pm-ai-module-input-wrap{
    position:relative;
    flex:1 1 auto;
    min-width:0;
}
.pm-ai-module input[type=search]{
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    height:42px;
    padding:8px 48px 8px 40px;
    border:1px solid #c9d1d9;
    border-radius:8px;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235c215d' d='M10.5 3a7.5 7.5 0 1 0 4.74 13.31l4.22 4.23 1.42-1.42-4.23-4.22A7.5 7.5 0 0 0 10.5 3Zm0 2a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Z'/%3E%3C/svg%3E") no-repeat 13px 50%;
    background-size:18px 18px;
    font-size:16px;
    line-height:24px;
    outline:none;
    -webkit-appearance:none;
}
.pm-ai-module input[type=search]:focus{
    border-color:#778693;
    box-shadow:0 0 0 2px rgba(90,110,125,.12);
}
.pm-ai-module .pm-ai-module-image-button{
    position:absolute;
    top:3px;
    right:3px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    padding:0;
    border:0;
    border-radius:6px;
    background:#eef2f5;
    cursor:pointer;
}
.pm-ai-module .pm-ai-module-image-button:hover,
.pm-ai-module .pm-ai-module-image-button:focus{
    background:#dfe6eb;
}
.pm-ai-module .pm-ai-module-image-button svg{
    width:21px;
    height:21px;
    fill:#4c5b66;
}
.pm-ai-module .pm-ai-module-submit{
    flex:0 0 auto;
    min-width:70px;
    height:42px;
    padding:0 12px;
    border:0;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}
.pm-ai-module .pm-ai-module-file-form{
    position:absolute;
    overflow:hidden;
    width:1px;
    height:1px;
    clip:rect(0 0 0 0);
}
.pm-ai-module .pm-ai-module-file-form input{
    position:absolute;
    left:-9999px;
}
.pm-ai-module .pm-ai-module-image-menu{
    display:none;
}
.pm-ai-module .pm-ai-module-image-menu button{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    min-height:48px;
    padding:9px 11px;
    border:0;
    border-radius:8px;
    background:#fff;
    color:#25313a;
    font-size:16px;
    text-align:left;
    cursor:pointer;
}
.pm-ai-module .pm-ai-module-image-menu button:hover{
    background:#eef2f5;
}
.pm-ai-module .pm-ai-module-menu-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border-radius:7px;
    background:#eef2f5;
    font-size:19px;
}
.pm-ai-module .pm-ai-module-hint{
    margin-top:6px;
    color:#66727f;
    font-size:12px;
    line-height:1.4;
}
.pm-ai-module .pm-ai-module-error{
    padding:9px;
    margin-top:7px;
    border:1px solid #ffe69c;
    border-radius:7px;
    background:#fff3cd;
}
.pm-ai-module .pm-ai-module-active{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:8px;
    padding:7px;
    border:1px solid #d8e0e7;
    border-radius:8px;
    background:#fff;
}
.pm-ai-module .pm-ai-module-active img{
    width:48px;
    height:48px;
    object-fit:contain;
    border-radius:6px;
    background:#f3f5f7;
}
.pm-ai-module .pm-ai-module-active div{
    flex:1;
    min-width:0;
}
.pm-ai-module .pm-ai-module-active strong,
.pm-ai-module .pm-ai-module-active span{
    display:block;
}
.pm-ai-module .pm-ai-module-active span{
    overflow:hidden;
    color:#66727f;
    font-size:12px;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.pm-ai-module .pm-ai-module-active>a{
    padding:4px;
    font-size:23px;
    line-height:1;
    text-decoration:none;
}
.pm-ai-module .pm-ai-module-loader{
    position:fixed;
    z-index:99999;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(255,255,255,.78);
}
.pm-ai-module .pm-ai-module-loader.is-visible{
    display:flex;
}
.pm-ai-module .pm-ai-module-loader-box{
    min-width:200px;
    max-width:300px;
    padding:20px 24px;
    border:1px solid #d9e0e5;
    border-radius:12px;
    background:#fff;
    box-shadow:0 8px 28px rgba(0,0,0,.15);
    text-align:center;
    font-size:14px;
    font-weight:bold;
}
.pm-ai-module .pm-ai-module-loader-box img{
    display:block;
    width:42px;
    height:42px;
    margin:0 auto 10px;
    object-fit:contain;
}
.pm-ai-module .pm-ai-module-progress{
    overflow:hidden;
    width:100%;
    height:8px;
    margin-top:14px;
    border-radius:999px;
    background:#e8edf1;
}
.pm-ai-module .pm-ai-module-progress-bar{
    width:0;
    height:100%;
    border-radius:999px;
    background:currentColor;
    transition:width .28s ease;
}
.pm-ai-module .pm-ai-module-progress-percent{
    margin-top:7px;
    color:#66727f;
    font-size:13px;
    font-weight:normal;
}
@media(max-width:720px){
    .pm-ai-module .pm-ai-module-form{
        gap:5px;
    }
    .pm-ai-module .pm-ai-module-submit{
        min-width:68px;
        padding:0 11px;
    }
    .pm-ai-module .pm-ai-module-image-menu{
        box-sizing:border-box;
        width:100%;
        margin-top:6px;
        padding:5px;
        border:1px solid #d8e0e7;
        border-radius:9px;
        background:#fff;
        box-shadow:0 4px 16px rgba(0,0,0,.10);
    }
    .pm-ai-module .pm-ai-module-image-menu.is-visible{
        display:block;
    }
}


/* PROSTO Майки visual fallback */
.pm-ai-module .pm-ai-module-submit{
    background:linear-gradient(to bottom,#f79a43 0%,#eb7413 100%);
    border:1px solid #dc690f;
    color:#fff;
}
.pm-ai-module .pm-ai-module-image-button{
    border:1px solid #f0d5bd;
    background:linear-gradient(to bottom,#fff8f1 0%,#ffead8 100%);
}
.pm-ai-module .pm-ai-module-image-button svg{
    fill:#ef7f1a;
}

.pm-ai-module .pm-ai-module-hp,
.pm-ai-module .pm-ai-module-hp-input{
    position:absolute!important;
    left:-10000px!important;
    top:auto!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}
