body {
    min-width: 325px !important;
}

.download-modal-wrapper {
    width: 860px !important;
    max-width: 860px !important;
}

.download-modal {
    width: 100%;
    border-radius: 20px;
    padding: 80px;
}

.modal-title-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
}

.download-modal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 40px 0;
}

.download-modal-drive-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.download-modal-list-drive {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 40px 0;
}

.download-modal-item {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.download-modal-img-wrapper {
    display: flex;
    gap: 5px;
}


#fileList {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.file-item {
    display: flex;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    align-items: flex-start;
    color: rgba(108, 117, 125, 1);
}

.file-item:last-child {
    margin-bottom: 20px;
}

.delete-file {
    background: transparent;
    background-image: url('../../../../images/closeGray.svg');
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    border: none;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.delete-file:hover {
    background-image: url('../../../../images/closeGrayHover.svg');
}

.error-file-message-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(220, 50, 50, 1);
    margin: -10px 0 20px;
}

.add-photo-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 130%;
    margin: 0 0 40px;
    align-self: flex-start;
}

.download-modal-file-wrapper {
    padding: 57px 10px;
    width: 100%;
    border: 1px solid rgba(217, 217, 217, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
}

.download-modal-file {
    display: none;
}

.download-modal-file-wrapper:hover {
    border-color: rgba(30, 199, 191, 1);
}

.download-modal-file-wrapper.drag-over {
    border-color: rgba(30, 199, 191, 1);
}

.download-modal-instuction {
    font-size: 14px;
    font-weight: 400;
    color: rgba(108, 117, 125, 1);
    margin: 0;
    text-align: center;
}

.download-modal-format {
    font-size: 14px;
    font-weight: 400;
    color: rgba(122, 122, 122, 1);
    margin: 6px 0 0;
    text-align: center;
}

#documentDownloadModal .policy {
    display: flex;
    gap: 6px;
    align-items: start;
    margin: 30px 0 0;
}

#documentDownloadModal .policy-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    display: flex;
    position: relative;
    align-content: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #dddddd;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
}

#documentDownloadModal .policy-checkbox:checked {
    border: 0;
}

#documentDownloadModal .policy-checkbox:checked::before {
    opacity: 1;
}

#documentDownloadModal .policy-checkbox::before {
    content: "";
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: url("../../../../images/checked.svg") no-repeat center, #49c7c2;
}

#documentDownloadModal .policy-text {
    font-size: 14px;
    color: #8E8E8E;
    font-weight: 400;
    margin: 0;
    width: 90%;
}

#documentDownloadModal .green-link {
    text-decoration: dashed;
}

.download-modal-buttons {
    margin: 40px 0 0;
    display: flex;
    justify-content: space-between;
}

#documentDownloadModal .download-modal-buttons {
    margin-top: 20px;
}

.download-modal-back {
    width: 132px;
    height: 60px;
    text-align: center;
    border: 1px solid rgba(67, 67, 67, 1);
    color: rgba(67, 67, 67, 1);
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    background: transparent;
}

#documentDownloadModal .download-modal-back {
    height: 48px !important;
}

.download-modal-back:disabled {
    opacity: 50%;
}

.download-modal-back:hover:not([disabled]) {
    background: linear-gradient(to right, rgba(44, 170, 164, 1), rgba(2, 103, 133, 1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: 1px solid rgba(30, 199, 191, 1);
}

.none-events {
    pointer-events: none;
}


.download-modal-save {
    width: 132px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-modal-save-text {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.download-modal-save-img {
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

.modal-title-wrapper .document-card-title {
    font-size: 26px;
}

.modal-title-wrapper .document-card-description {
    font-size: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .download-modal-wrapper {
        width: auto !important;
        max-width: 90% !important;
    }

    .download-modal {
        padding: 40px;
    }

    .download-modal-instuction {
        display: none;
    }
}


@media (max-width: 575px) {
    .download-modal {
        padding: 30px 20px;
    }

    .download-modal-wrapper {
        max-width: 100% !important;
    }

    .modal-title-wrapper .document-card-title {
        font-size: 20px;
    }

    .modal-title-wrapper .document-card-description {
        font-size: 16px;
    }

    #addPhotoModal .download-modal-buttons {
        flex-direction: column;
        gap: 20px;
    }

    #addPhotoModal .green-button,
    #addPhotoModal .download-modal-back {
        width: 100% !important;
    }
}
