.modal {
    position: fixed;
    inset: 0;
    z-index: -10;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    cursor: pointer;
    overflow-x: hidden;
    overflow-y: auto;
    top: -1000%;
    transition: all 0.3s;
    width: 100%;
    height: 100%;
    min-width: 350px;
		justify-content: center;
		align-items: center;
    opacity: 0;
    visibility: hidden;
}
.modal.show {
    top: 0;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
}

.modal__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background-color: #F3F3F3;
    width: 700px;
    padding: 16px 32px;
    border-radius: 20px;
    cursor: default;
    max-height: 85vh;
    overflow: auto;
		position: relative;
}

.modal__container::-webkit-scrollbar {
    width: 5px;
}

.modal__container::-webkit-scrollbar:horizontal {
    height: 5px;
}

.modal__container::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: lightgray;
    border-radius: 5px;
}

.modal__header {
    display: flex;
}

.modal__title {
    font-weight: 400;
    font-size: 36px;
    line-height: 120%;
    max-width: 500px;
    font-family: "Plovdiv Display", sans-serif;
		padding-right: 50px;
}

.modal__close {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'><path d='M1 1L17 17M17 1L1 17' stroke='%23302F2E' stroke-width='1.2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
}

@media(max-width: 600px) {
    .modal__container {
        gap: 20px;
        padding: 20px;
    }
    .modal__title {
        max-width: 90%;
    }
    .modal__close {
        position: absolute;
        right: 16px;
        top: 10px;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
