.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1001;
    min-width: 300px;
    max-width: 90vw;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
    padding: 12px 12px 32px;

    box-shadow:
        0 4px 4px 0 rgba(0, 0, 0, 0.25),
        3px 4px 4px 0 rgba(0, 0, 0, 0.71);
    background: #e9e9e9;
    border: 3px solid #a7a7a7;
    border-radius: 2px;
    width: 546px;
}

.modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    background: none;
    border: none;
    cursor: url('/public/cursors/pointer.cur'), auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    position: absolute;
    top: 26px;
    right: 26px;
    width: fit-content;
}

.modal-close:hover {
    opacity: 0.8;
}

.modal-close svg {
    width: 52px;
    height: 52px;
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #dcdcdc;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #9e62fe;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #8a4fe6;
}

.modal-content {
    line-height: 1.6;
    color: #374151;
}

@media (max-width: 768px) {
    .modal {
        width: 95vw;
        max-width: 95vw;
        padding: 12px;
        /*margin: 20px;*/
    }

    .modal-close {
        top: 16px;
        right: 16px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2px;
    width: 100%;
    padding: 12px;
    box-shadow: inset 0 0 6px 1px rgba(0, 0, 0, 0.55);
    background: #34175a;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 36px;
    line-height: 90%;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;

    white-space: break-spaces;
}

.modal-close {
    position: relative;
    top: 0;
    right: 0;
}

@media (max-width: 520px) {
    .modal-header {
        font-size: 24px;
    }
}

@media (max-width: 380px) {
    .modal-header {
        font-size: 20px;
    }
}
