.hide {
    display: none;
}

.grid_size {
	width: 1250px;
}

.bnpp-exclusion-criteria-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-select {
    position: relative;
    width: 725px;
    font-family: sans-serif;
    padding-bottom: 63px;
}

.custom-input {
    display: block;
    width: 100%;
    padding: 29px 64px 29px 30px;
    background-color: #0C2728;;
    color: #FFF;
    font-family: "BNPP Sans";
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 20px; /* 125% */
    border: 1px solid #FFF;
    cursor: pointer;
}

.custom-options {
    position: absolute;
    /* top: 100%; */
    left: 0;
    right: 0;
    background-color: #0C2728;
    color: #FFF;
    border: 1px solid #FFF;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    /* display: none; */
    z-index: 10;
    max-height: 220px;
    overflow: auto;
}

.custom-options[hidden] {
    display: none;
}

.custom-options li {
    padding: 10px;
    cursor: pointer;
}

.custom-options li:hover {
    background-color: #3b3b3b;
}

.custom-options li.is-active {
    background-color: #3b3b3b;
}

.custom-options li[aria-selected="true"] {
    background-color: #5c5c5c;
}

.custom-select::after {
    content: "";
    position: absolute;
    right: 30px;
    top: calc(50% - 33px);
    transform: translateY(-50%) rotate(0deg);
    width: 16px;
    height: 16px;
    pointer-events: none;
    transition: transform 0.2s ease;
    color: #FFF;
    background: no-repeat center / 100% 100% url(../assets/arrow.svg?1=1);;
    opacity: 0.9;
}

.custom-select.is-open::after {
    transform: translateY(-50%) rotate(180deg);
}

.hidden {
  display: none;
}

.bnpp-exclusion-criteria {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 36px 0 0 0;
}

.bnpp-exclusion-criteria-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.bnpp-exclusion-criteria-container {
    display: flex;
    background-color: #F3F9F7;

    .title {
        display: flex;
        min-width: 300px;
        padding: 61px 33px 61px 33px;
        color: #008252;
        font-family: "BNPP Sans Condensed";
        justify-content: center;
        text-align: left;
        align-items: center;
        /* font-size: 40px;
        font-style: normal;
        font-weight: 400;
        line-height: 45px; */
    }

    .text {
        display: flex;
        padding: 61px 33px 61px 33px;
        color: #1D1D1B;
        font-family: "BNPP Sans";
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        p {
            max-width: 580px;
        }

        .button {
            display: flex;
            justify-content: center;
            text-align: center;
            align-items: center;
            margin-left: 30px;
        }
    }
}

.exclusion-criteria-title {
    text-align: left;
    width: 100%;
}

.container_images_exclusion {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  width: 100%;
  
  .button_images_exclusion {
    display: flex;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #DFDFDF;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    width: 222px; 
    height: 222px;

    .images_exclusion {
        display: block;
        max-height: 100%;
        max-width: 100%;
        height: auto;
        border-style: none;
        width: auto;
        object-fit: contain;
    }
  }

  .button_images_exclusion::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: -1px;
        height: 101%;
        width: 101%;
        opacity: 0;
        border: 4px solid #008252;
        border-radius: 8px;
        transition: 300ms;
        padding: 10px;
    }

  .button_images_exclusion:hover::after, .button_images_exclusion:focus::after {
    opacity: 1;
  }
}

.exclusion-criteria-global-title {
    width: 100%;
    font-family: "BNPP Sans Condensed";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 45px; /* 93.75% */
}

.bnpp-button-mobile {
    display: none;
}

.content-title-filter {
    width: 100%;
    padding: 0 0 70px 0;
    .block-exclusion-criteria-title{
        display: flex;
        justify-content: space-between;

        .exclusion-criteria-title {
            font-family: "BNPP Sans Condensed";
            font-size: 57px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
        }

    }

    p {
        font-family: "BNPP Rounded";
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px; /* 142.857% */
    }

}

    .bnpp-button-desktop, .bnpp-button-mobile  {
        white-space: nowrap;
        max-height: 40px;
        padding: 10px 24px;
    }

@media (max-width: 768px) { /* styles for mobile version */

    .content-title-filter {
        width: 100%;
        padding: 20px 20px 20px 20px;
        background: #F3F9F7;
        margin: 0;

        .block-exclusion-criteria-title{
            display: flex;
            justify-content: space-between;

            .exclusion-criteria-title {
                font-size: 24px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
            }

        }

        p {
            font-size: 14px;
            font-style: normal;
            font-weight: 300;
            line-height: 20px; /* 142.857% */
        }

    }

    .exclusion-criteria-global-title {
        display: none;
    }

    .bnpp-button-desktop {

        display: none;
    }
    .bnpp-button-mobile {
        display: flex;
    }

    .container_images_exclusion{ 
        justify-content:center;
        align-items: center;
        gap: 12px;
    }

    .grid_size {
        width: 100%!important; 
    }

    .entry-content.bnpp-container{
        min-width:375px;
    }
    .button_images_exclusion {
        width:103px!important; /* 13 padding +13 padding +73 image +4 of border */
        height:103px!important;
        min-width:103px;
        padding: 13px!important;
    }

    /* start mobil version for exclusion criteria by label */
    .bnpp-exclusion-criteria-container  {
        flex-direction:column;
        margin:6px 18px 6px 18px;
        padding: 14px 12px 14px 12px;
    }

    .bnpp-exclusion-criteria-container .title {
        margin:0px;
        padding:0px;
        color: #008252;
        font-family: "BNPP Sans Condensed";
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 120% */
    }   

    .bnpp-exclusion-criteria-items {
        gap:0px;
        background-color: #F3F9F7;
    }    

    .bnpp-exclusion-criteria-container .text {
        margin:0px;
        padding:0px;
        font-family: "BNPP Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
        flex-direction:column;

        & .button {
            margin-left:0px; 
            & button {
                width:100%;
                justify-content:center; 
                align-items: center;
            }
        }
    }
    
    .bnpp-exclusion-criteria-container {
        background-color: #FFF;
        & .text {
            p {
                margin-top:8px;
                margin-bottom:10px;
            }
            .button {
            margin-left:0px;
            }

        }
    }

    .bnpp-exclusion-criteria-grid .custom-select{
        width:90%;
        margin:0px 32px 0px 32px;
        padding-bottom:0px;
    }
    
    .bnpp-exclusion-criteria-grid .custom-input {
        color: #FFF;
        font-family: "BNPP Sans";
        font-size: 14px;
        font-style: italic;
        font-weight: 400;
        padding:10px;
    }

   .bnpp-exclusion-criteria-grid  .custom-options li {
        padding: 10px;
        color: #FFF;
        font-family: "BNPP Sans";
        font-size: 14px;
        font-style: italic;
        font-weight: 400;
    }
    
    .bnpp-exclusion-criteria-grid h3 {
            color: #000;
            text-align: center;
            font-family: "BNPP Sans Condensed";
            font-size: 24px;
            font-style: normal;
            font-weight: 400;       
    }

   .bnpp-exclusion-criteria-grid p {
        color: #000;
        text-align: left;
        font-family: "BNPP Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
   }
}