.container {
    display: inline-flex;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 456px;
    overflow-y: auto;
    flex-shrink: 0;
}

.hide-it {
    display: none;
}

.letter-title-underline {
    border-top: 1px solid #D1D1D1;
    width: 100%;
    height: 0;
}

.add-person-button {
    display: flex;
    cursor: pointer;
    width: 332px;
    height: 56px;
    padding: 16px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: var(--version-2-main-color, #4589FF);
    border: none;
    color: var(--white, #FFF);
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
}

.initials-underline {
    border: #000;
}

.add-person-button:hover {
    background: #005DFF;
}

.add-person-button:active {
    background-color: #FFFFFF;
    color: var(--bg-color, #4589FF);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.add-person-button:active .button-icon {
    content: url('../img/person_add_active.png');
}

.container-letter-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.letter-title {
    color: #000;
    padding: 17px 36px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.contact {
    display: flex;
    cursor: pointer;
    width: 352px;
    padding: 15px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: 10px;
    background: #FFF;
    cursor: pointer;
}

.contact:hover {
    background: #D2E3FF;
}

.contact:hover {
    background-color: #4589ff57;
}

.contact-selected {
    background-color: #4589FF;
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.contact-selected .name,
.contact-selected .email {
    color: #FFFFFF;
}

.contact-selected:hover {
    background-color: #4589FF;
}

.name {
    color: #000;
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.email {
    color: var(--version-2-main-color, #4589FF);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.modal,
.edit-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    width: 100%;
    height: 100vh;
}

.background-overlay {
    display: none;
    position: fixed;
    z-index: 56;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

.modal-content {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 65px;
    border-radius: 30px 0px 30px 30px;
    background: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}

.edit-content {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 65px;
    border-radius: 0px 30px 30px 30px;
    background: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16);
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
}

.modal-content-top {
    display: flex;
    width: 436px;
    padding: 91px 46px;
    border-radius: 30px 0px 0px 0px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--ligth-blue, #005DFF);
}

.edit-content-top {
    display: flex;
    width: 436px;
    padding: 91px 46px;
    border-radius: 0px 30px 0px 0px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--ligth-blue, #005DFF);
}

.close {
    position: absolute;
    right: 30px;
    top: 24px;
    width: 17.5px;
    height: 17.5px;
    padding: 4px;
    cursor: pointer;
}

.initial {
    box-sizing: border-box;
    display: flex;
    width: 42px;
    height: 42px;
    padding: 10px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 45px;
    border: 1px solid #FFF;
    color: white;
}

.container-name-email {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.all-content {
    display: flex;
    height: calc(100vh - 172px);
    padding: 96px 0 0 232px;
    overflow-x: hidden;
}

#contact-details {
    padding: 100px;
}

.contact-detailed-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
}

.contact-detailed-edit-delete {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.contact-detailed-text {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.slide-in {
    animation: slide-in 1s ease-in-out;
}

@keyframes slide-in {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

.modal-slide-in {
    animation: modalSlideIn 1s ease-in-out forwards;
}

.modal-slide-out {
    animation: modalSlideOut 1s ease-in-out forwards;
}

@keyframes modalSlideIn {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes modalSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(1000px);
        display: none;
    }
}

.editModal-slide-in {
    animation: editModalSlideIn 1s ease-in-out forwards;
}

.editModal-slide-out {
    animation: editModalSlideOut 1s ease-in-out forwards;
}

@keyframes editModalSlideIn {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes editModalSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1000px);
        display: none;
    }
}

.editModal-slide-out {
    animation: editModalSlideOut 1s ease-in-out forwards;
}

@keyframes editModalSlideInMobile {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes editModalSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1000px);
        display: none;
    }
}

.contact-detailed-images {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 24px;
    height: 24px;
    color: #2A3647;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
}

.contact-detailed-images:hover .edit-img {
    content: url('../img/edit_hover.png');
}

.contact-detailed-images:hover .delete-img {
    content: url('../img/delete_hover.png');
}