.edit-company-cards {
    width: 100%;
    height: fit-content;
    max-width: 597px;
    border: 1px solid #E3E5E5;
    padding: 15px 17px 11px 12px;
    border-radius: 20px;
    box-shadow: 0px 3px 11px 0px #AAA8A840;
    background-color: #FFFFFF;
    margin-bottom: 40px;
}
.edit-company-cards.error {
    border-color: #dc3545;
}
.edit-company-cards__error-text {
    color: #dc3545;
    font-size: 12px;
    margin: 4px 0 0 24px;
}

.edit-company-card {
    width: 100%;
    user-select: none;
    position: relative;
    background-color: transparent;
    margin-bottom: 10px;
}
.edit-company-card__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 16px 18px 19px 18px;
    border: 1px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;

}
.edit-company-card__wrap.selected {
    border-color: #2AABEE;
    background-color: #F9FCFF;
}
.edit-company-card__wrap:hover {
    border-color: #2AABEE;
    background-color: #F9FCFF;
}
.edit-company-card__wrap:hover .edit-company-card__img{
    background-color: #E9F4FC;
}
.edit-company-card__wrap.disabled {
    border-color: #E3E5E5;
    background-color: #F3F3F3;
    cursor: not-allowed;
}
.edit-company-card__label {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
}
.edit-company-card__img{
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F2F7FA;
    border-radius: 5px;
}
.edit-company-card__img.active{
    background-color: #E9F4FC;
}
.edit-company-card__ico{
    
}
.edit-company-card__title{
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #32393D;
    margin-bottom: 3px;
}
.edit-company-card__desc{
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #979C9E;
}
.edit-company-card__expand-btn{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}
.edit-company-card__expand-btn.opened {
    transform: rotate(90deg);
    background-color: #2AABEE;
}
.edit-company-card__expand-btn.selected {
    background-color: #2AABEE;
}
.edit-company-card__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 18px;
}

.edit-company-card__details.open {
    max-height: 600px;
    opacity: 1;
    padding: 0 18px 10px 18px;
}
.edit-company-detail{
    padding: 15px 18px 22px 18px;
}
.edit-company-detail__title{
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #979C9E;
    margin-bottom: 8px;
}
.edit-company-detail__content{
    display: flex;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    column-gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

.edit-company-detail__content:before{
    content: "";
    width: 1px;
    background-color: #E3E5E5;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

}
.edit-company-detail__label{
    width: calc(50% - 12px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    cursor: pointer;
}
.edit-company-detail__radio{
    accent-color: #2AABEE;
    width: 15px;
    height: 15px;
    appearance: none;
    border: 1px solid #E3E5E5;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.edit-company-detail__radio:checked{
    border-color: #2AABEE;
}
.edit-company-detail__radio:checked:after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2AABEE;
}
.edit-company-detail__radio:disabled {
    border-color: #e5e7eb;
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}
.edit-company-detail__radio-text{
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #32393D;
}
.edit-company-detail__radio-subtext{
    font-weight: 400;
    font-size: 10px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #979C9E;
    margin-top: 3px;
}
@media (max-width: 1199.98px) {
    .edit-company-cards.authorized-flow .edit-company-detail__content{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

    }   
    .edit-company-cards.authorized-flow .edit-company-detail__content:before{
        width: 0;
    }
    .edit-company-cards.authorized-flow .edit-company-detail__label{
        width: 100%;
    }
}
@media (max-width: 1023.98px) {
    .edit-company-cards.authorized-flow{
        max-width: 100%;
    }
    .edit-company-main__wrap:has(.edit-company-cards.authorized-flow) {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767.98px) {
    .edit-company-cards{
        max-width: 100%;
    }
    .edit-company-detail__content{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }   
    .edit-company-detail__content:before{
        width: 0;
    }
    .edit-company-detail__label{
        width: 100%;
    }
}