.dropdown-cdp {
    width: 100%;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.dropdown-cdp-button {
    display: flex;
    height: 32px;
    align-items: center;
    place-content: space-between;
    border-radius: 8px;
    background: #FFF0F3;
    padding: 0 8px 0 16px;
    transition: 0.2s;
    position: relative;
    flex-direction: unset !important;
}

.dropdown-cdp-button:hover {
    box-shadow: 0px 0px 4px 0px rgba(228, 0, 43, 0.25);
}

.dropdown-cdp-button.selected:hover {
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.12);
}

.dropdown-cdp-button.clicked {
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.12);
    border: 1px solid#DDD;
}

.dropdown-cdp-button.clicked,
.dropdown-cdp-button.selected {
    background: #FCFCFC;
    border: 1px solid#DDD;
}

.dropdown-cdp-button span {
    color: #E4002B;
    font-family: "Inter";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 17px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dropdown-cdp-button.clicked span,
.dropdown-cdp-button.selected span {
    color: #4D4D4D;
}

.dropdown-cdp-button.selected span {
    font-weight: 500;
}

.dropdown-cdp-button svg {
    min-width: 24px;
    height: 24px;
    align-self: center;
    margin-left: 8px;
}

.dropdown-cdp-button.clicked svg {
    transform: rotate(180deg);
}

.dropdown-cdp-button.clicked svg path,
.dropdown-cdp-button.selected svg path {
    fill: #4D4D4D !important;
}

.dropdown-cdp-button.error {
    animation: pulse-error 1.5s infinite;
}

@keyframes pulse-error {
    0% {
        box-shadow: 0 0 0 0 rgba(176, 0, 32, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(176, 0, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(176, 0, 32, 0);
    }
}

.dropdown-cdp-button.error::after {
    content: "Selecione o segmento";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    color: #c52727;
    font-family: "Inter";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    background: #f8e8e8;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding-left: 16px;
}

.dropdown-cdp-content {
    display: none;
    position: absolute;
    max-height: 280px;
    border-radius: 12px;
    border: 1px solid#DDD;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.12);
    background: #FCFCFC;
    padding: 8px;
    margin-top: 8px;
    z-index: 1000;
    top: 28px;
    width: 100%;
}

.dropdown-cdp-content.show {
    display: block !important;
}

.dropdown-cdp-noresults {
    display: none;
    padding: 40px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    color: #4D4D4D;
    text-align: center;
}

.dropdown-cdp-content .option-cdp {
    display: flex;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #FCFCFC;
    color: #4D4D4D !important;
    font-size: 16px;
    text-decoration: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    color: #4D4D4D;
    font-family: "Inter";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.option-cdp-name {
    display: flex;
}

.dropdown-cdp-content .option-cdp:hover {
    color: #E4002B !important;
    align-self: stretch;
    border-radius: 8px;
    box-shadow: 0px 0px 8px -4px rgba(0, 0, 0, 0.30), 0px 0px 2px 0px rgba(0, 0, 0, 0.25) inset;
}

.dropdown-cdp-content .option-cdp.selected {
    color: #E4002B !important;
    font-weight: 500 !important;
}

.dropdown-cdp-content .option-cdp.selected .svg-cdp-yes {
    display: flex;
}

.dropdown-cdp-content .option-cdp.selected:hover {
    color: #4D4D4D !important;
    border-radius: 8px;
    border: 1px solid #4D4D4D;
    background: #F5F5F5;
    padding: 7px;
}

.dropdown-cdp-content .option-cdp.selected:hover .svg-cdp-no {
    display: block;
}

.dropdown-cdp-content .option-cdp.selected:hover .svg-cdp-yes {
    display: none !important;
}

.dropdown-cdp-content .dropdown-cdp-list {
    display: flex;
    flex-direction: column;
    max-height: 216px;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 8px;
}

.dropdown-cdp-content .dropdown-cdp-list::-webkit-scrollbar {
    width: 0;
}

.dropdown-cdp-content .dropdown-cdp-list::-webkit-scrollbar-track {
    background: transparent;
}

.option-cdp-name>div {
    display: flex;
    margin: 0 !important;
    justify-content: center;
}

.svg-cdp-yes,
.svg-cdp-no {
    display: none;
    margin-left: -4px;
}

.dropdown-cdp-search {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: space-between;
    margin-right: 0 !important;
}

.dropdown-cdp-search svg {
    position: absolute;
    right: 4px;
}

.dropdown-cdp-search input[type="text"] {
    display: flex;
    width: 100%;
    height: 48px;
    padding: 0px 8px;
    border: none;
    border-bottom: 1px solid #DDD;
    background: #FCFCFC;
    color: #4D4D4D;
    font-family: "Inter";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    transition: 0.2s;
}

.dropdown-cdp-search input[type="text"]:focus {
    outline: none;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.12);
}

@media screen and (min-width: 320px) and (max-width: 640px) {
    .dropdown-cdp-button {
        flex-direction: row !important;
    }

    .dropdown-cdp-content {
        width: 100%;
        max-width: 352px;
        max-height: unset;
    }

    .dropdown-cdp-search {
        align-items: flex-start;
    }

    .dropdown-cdp-search input[type="text"] {
        width: -webkit-fill-available;
    }

    .dropdown-cdp-search svg {
        right: 0;
        top: 8px;
    }

    .option-cdp-name {
        flex-direction: row !important;
        margin-bottom: 0 !important;
    }
}

@media screen and (min-width: 800px) and (max-width: 1024px) {
    .dropdown-cdp-button {
        flex-direction: row !important;
    }

    .dropdown-cdp-content {
        width: -webkit-fill-available;
        max-height: unset;
    }

    .dropdown-cdp-search {
        align-items: flex-start;
        margin-bottom: 0 !important;
    }

    .dropdown-cdp-search input[type="text"] {
        width: -webkit-fill-available;
    }

    .dropdown-cdp-search svg {
        right: 0;
        top: 8px;
    }

    .option-cdp-name {
        flex-direction: row !important;
        margin-bottom: 0 !important;
    }
}