/* =====================================
   VEDAPULSE - CONCERN SELECTOR
   FINAL LAYOUT
===================================== */

.vp-concern-selector{
    width:100%;
    background:#fff;
    border-bottom:1px solid #edf0ed;
    box-sizing:border-box;
}

.vp-concern-container{
    width:100%;
    max-width:100%;
    margin:0 auto;
    padding:18px 5.2vw;
    display:flex;
    align-items:flex-start;
    gap:18px;
    box-sizing:border-box;
}

/* SELECT CONCERN */
.vp-concern-heading{
    flex:0 0 auto;
    width:max-content;
    min-width:max-content;
    display:flex;
    align-items:center;
    gap:8px;
    color:#111827;
    font-size:15px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    padding-top:20px;
}

.vp-concern-heading > span:last-child{
    display:block;
    width:max-content;
    min-width:max-content;
    white-space:nowrap;
}

.vp-concern-filter-icon{
    width:22px;
    height:22px;
    flex:0 0 22px;
    color:#5d922c;
    display:flex;
    align-items:center;
    justify-content:center;
}

.vp-concern-filter-icon svg{
    width:20px;
    height:20px;
    display:block;
}

/* CARDS — WRAP INSTEAD OF CUTTING OFF */
.vp-concern-list{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    align-content:flex-start;
    flex-wrap:wrap;
    gap:10px 12px;
    overflow:visible;
    padding:0;
    box-sizing:border-box;
}

.vp-concern-item{
    flex:0 0 auto;
    min-height:58px;
    padding:5px 13px 5px 8px;
    border:1px solid #7ea73e;
    border-radius:8px;
    background:#fff;
    color:#111827;
    display:inline-flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    white-space:nowrap;
    box-sizing:border-box;
    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.vp-concern-item:hover{
    color:#111827;
    border-color:#4f7f20;
    background:#fbfdf8;
    box-shadow:0 4px 14px rgba(46,125,50,.10);
    transform:translateY(-1px);
}

.vp-concern-item.is-selected{
    border-color:#6f9e2d;
}

.vp-concern-check{
    width:21px;
    height:21px;
    flex:0 0 21px;
    display:none;
    align-items:center;
    justify-content:center;
    color:#111827;
}

.vp-concern-item.is-selected .vp-concern-check{
    display:flex;
}

.vp-concern-check svg{
    width:18px;
    height:18px;
    display:block;
}

.vp-concern-image{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:50%;
    overflow:hidden;
    background:#f2f4ef;
    display:block;
}

.vp-concern-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.vp-concern-name{
    font-size:15px;
    line-height:1.2;
    font-weight:500;
}

/* TABLET */
@media (max-width:1200px){
    .vp-concern-container{
        padding-left:28px;
        padding-right:28px;
        gap:14px;
    }

    .vp-concern-heading{
        font-size:14px;
    }

    .vp-concern-item{
        min-height:54px;
        padding-right:11px;
    }

    .vp-concern-image{
        width:39px;
        height:39px;
        flex-basis:39px;
    }

    .vp-concern-name{
        font-size:14px;
    }
}

/* MOBILE — horizontal scroll is useful here */
@media (max-width:767px){
    .vp-concern-container{
        display:block;
        padding:14px 16px 12px;
    }

    .vp-concern-heading{
        width:100%;
        min-width:100%;
        padding-top:0;
        margin-bottom:10px;
        font-size:14px;
    }

    .vp-concern-list{
        flex-wrap:nowrap;
        width:100%;
        overflow-x:auto;
        overflow-y:hidden;
        scrollbar-width:none;
        padding-bottom:4px;
    }

    .vp-concern-list::-webkit-scrollbar{
        display:none;
    }

    .vp-concern-item{
        min-height:54px;
        padding:5px 11px 5px 7px;
    }

    .vp-concern-image{
        width:38px;
        height:38px;
        flex-basis:38px;
    }

    .vp-concern-name{
        font-size:14px;
    }
}

@media (max-width:480px){
    .vp-concern-heading{
        font-size:13px;
    }

    .vp-concern-filter-icon{
        width:19px;
        height:19px;
        flex-basis:19px;
    }

    .vp-concern-filter-icon svg{
        width:18px;
        height:18px;
    }
}
