.mwa-app{
    width:100%;
    height:100%;
    min-height:0;
    margin:0;
    border:0;
    border-radius:0;
    overflow:hidden;
    background:#fff;
    box-shadow:none;
    font-family:Arial,sans-serif;
    box-sizing:border-box;
    display:flex;
    flex-direction:column
}
.mwa-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:clamp(10px,2vw,18px);
    padding:clamp(15px,2vh,20px) clamp(16px,2vw,22px);
    border-bottom:1px solid #eceff3;
    background:#fff;
    flex:0 0 auto
}
.mwa-head strong{display:block;font-size:clamp(17px,1.4vw,20px)}
.mwa-head span{display:block;margin-top:4px;font-size:clamp(13px,1vw,14px);color:#6b7280}
.mwa-reset{
    flex:0 0 auto;
    border:1px solid #d1d5db;
    background:#fff;
    border-radius:10px;
    padding:clamp(8px,1vh,10px) clamp(10px,1.2vw,14px);
    cursor:pointer
}
.mwa-messages{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    padding:clamp(16px,2vw,22px);
    background:#f7f8fa;
    overscroll-behavior:contain;
    overflow-anchor:none;
    box-sizing:border-box
}
.mwa-controls{
    padding:clamp(14px,1.8vw,20px);
    border-top:1px solid #eceff3;
    background:#fff;
    flex:0 0 auto
}
.mwa-row{display:flex;margin:0 0 12px}
.mwa-row:last-child{margin-bottom:0}
.mwa-user{justify-content:flex-end}
.mwa-assistant{justify-content:flex-start}
.mwa-bubble{
    max-width:80%;
    padding:11px 14px;
    border-radius:14px;
    line-height:1.45;
    font-size:15px
}
.mwa-assistant .mwa-bubble{background:#fff;border:1px solid #e5e7eb}
.mwa-user .mwa-bubble{background:#111827;color:#fff}
.mwa-select-wrap{display:flex;gap:10px}
.mwa-select{
    flex:1;
    width:100%;
    min-width:0;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:12px 13px;
    background:#fff;
    font-size:15px
}
.mwa-btn{
    border:0;
    border-radius:10px;
    padding:0 20px;
    background:#111827;
    color:#fff;
    font-weight:600;
    cursor:pointer
}
.mwa-loading{color:#6b7280}
.mwa-results-block{width:100%;margin:14px 0 10px}
.mwa-results-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.mwa-results-title{color:#667085;font-size:13px;font-weight:700}

/* Desktop + tablet: 2 proizvoda po redu */
.mwa-app.mwa-popup .mwa-messages .mwa-products{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important
}
.mwa-product{
    display:flex;
    flex-direction:column;
    min-width:0;
    background:#fff;
    color:#111827;
    text-decoration:none;
    border:1px solid #e4e7ec;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(16,24,40,.05);
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease
}
.mwa-product:hover{
    transform:translateY(-2px);
    border-color:#cfd4dc;
    box-shadow:0 8px 20px rgba(16,24,40,.09)
}
.mwa-product-media{
    position:relative;
    width:100%;
    aspect-ratio:4/3;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border-bottom:1px solid #f0f2f4;
    overflow:hidden
}
.mwa-product-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    padding:10px;
    box-sizing:border-box
}
.mwa-discount-badge{
    position:absolute;
    top:12px;
    left:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:52px;
    height:30px;
    padding:0 10px;
    border-radius:999px;
    background:#e11d48;
    color:#fff;
    font-size:13px;
    line-height:1;
    font-weight:800;
    box-shadow:0 3px 10px rgba(17,24,39,.12)
}
.mwa-product-body{display:flex;flex-direction:column;flex:1;padding:14px 15px 15px}
.mwa-product-name{color:#1d2939;font-size:15px;line-height:1.35;font-weight:700;margin:0 0 10px}
.mwa-product-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin:0 0 11px}
.mwa-price-old{color:#98a2b3;font-size:13px;line-height:1.2;font-weight:600;text-decoration:line-through}
.mwa-price-current{color:#101828;font-size:20px;line-height:1.15;font-weight:800}
.mwa-product-price .woocommerce-Price-amount,
.mwa-product-price .woocommerce-Price-currencySymbol{color:inherit;font:inherit}
.mwa-product-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.mwa-stock{color:#16803c;font-size:12px;font-weight:700}
.mwa-open{color:#475467;font-size:12px;font-weight:700}
.mwa-filter-title{margin:15px 0 3px;color:#1d2939;font-size:14px;font-weight:800}
.mwa-filter-desc{margin:0 0 10px;color:#667085;font-size:13px;line-height:1.4}
.mwa-filter-done{padding:12px 0 2px;color:#667085;font-size:13px}

/* Telefon: 1 proizvod po redu */
@media(max-width:700px){
    .mwa-head{align-items:flex-start;padding:15px 16px}
    .mwa-head strong{font-size:17px}
    .mwa-reset{font-size:12px;padding:8px 10px}
    .mwa-messages{padding:16px}
    .mwa-controls{padding:14px 16px}
    .mwa-select-wrap{flex-direction:column}
    .mwa-btn{padding:12px 16px}
    .mwa-app.mwa-popup .mwa-messages .mwa-products{grid-template-columns:1fr!important}
    .mwa-bubble{max-width:92%}
}
@media(min-width:701px) and (max-width:1180px){
    html body .mwa-float-panel .mwa-app.mwa-popup .mwa-messages .mwa-products{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(min-width:1181px){
    html body .mwa-float-panel .mwa-app.mwa-popup .mwa-messages .mwa-products{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(max-width:700px){
    html body .mwa-float-panel .mwa-app.mwa-popup .mwa-messages .mwa-products{
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
    }
}
.mwa-messages *,
.mwa-results-block,
.mwa-products,
.mwa-product{
    overflow-anchor:none!important;
}
