.gate-modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    transition: opacity .3s ease;
    overflow: hidden;
}

.gate-modal-mask .gate-modal-wrapper {
    background: #fff;
    position: relative;
    width: 100%;
    margin: 0 16px;
}

.classic-dark .gate-modal-mask .gate-modal-wrapper {
    background: #151926;
}

.gate-modal-mask .gate-modal-wrapper-sm {
    max-width: 384px;
    border-radius: 4px;
}

body.is_phone .gate-modal-mask .gate-modal-wrapper {
    max-width: 384px;
    border-radius: 4px;
}

.gate-modal-mask .gate-modal-wrapper-md {
    max-width: 588px;
    border-radius: 8px;
}

.gate-modal-mask .gate-modal-wrapper-lg {
    max-width: 840px;
    border-radius: 8px;
}

.gate-modal-mask .gate-modal-title {
    color: var(--color-text-1);
    font-size: 24px;
    font-weight: 600;
    line-height: 150%;
    padding: 24px 40px 8px;
}

body.is_phone .gate-modal-mask .gate-modal-title, .gate-modal-mask .gate-modal-wrapper-sm .gate-modal-title {
    padding: 24px 24px 8px;
}

.gate-modal-mask .gate-modal-close {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 14px;
    top: 14px;
    cursor: pointer;
}

.gate-modal-mask .gate-modal-close svg path {
    stroke: var(--color-text-3);
}

.gate-modal-mask .gate-modal-content-container {
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

.gate-modal-mask .gate-modal-content {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: var(--color-text-3);
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y:scroll;
}

body.is_phone .gate-modal-mask .gate-modal-content, .gate-modal-mask .gate-modal-wrapper-sm .gate-modal-content {
    padding: 16px 24px;
}

.gate-modal-mask .gate-modal-content a {
    color: var(--color-text-5);
}

.gate-modal-mask .gate-modal-button-container {
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.gate-modal-mask .gate-modal-button-container.asymmetric-button .gate-modal-cancel-button {
    flex: 1;
}

.gate-modal-mask .gate-modal-button-container.asymmetric-button .gate-modal-confirm-button {
    flex: 2;
}

body.is_phone .gate-modal-mask .gate-modal-button-container, .gate-modal-mask .gate-modal-wrapper-sm .gate-modal-button-container {
    padding: 24px;
}

.gate-modal-mask .gate-modal-button-container .gate-modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    padding: 0 24px;
}

.gate-modal-mask .gate-modal-button-container.adapt .gate-modal-button {
    flex: unset;
}

.gate-modal-mask .gate-modal-button-container .gate-modal-cancel-button {
    background-color: var(--color-neutral-1);
    color: var(--color-text-5);
    height: 40px;
    border-radius: 20px;
}

.gate-modal-mask .gate-modal-button-container .gate-modal-cancel-button:hover {
    background-color: var(--color-brand-1);
    color: #fff;
}

.gate-modal-mask .gate-modal-button-container .gate-modal-confirm-button {
    background-color: var(--color-brand-1);
    color: #fff;
    height: 40px;
    border-radius: 20px;
}

.gate-modal-mask .gate-modal-button-container .gate-modal-confirm-button:hover {
    background-color: var(--color-brand-2);
}

@media screen and (max-width:768px) {
    .gate-modal-mask .gate-modal-button-container{
        display: unset;
    }

    .gate-modal-mask .gate-modal-button-container .gate-modal-cancel-button{
        margin-bottom: 16px;
    }
}
