html[theme=light] {
    .modal {
        background-color: #fff;
    }

    .modal-mdo {
        .button {
            &.button--outline {
                background-color: transparent;
                border-color: var(--color-active);

                &:hover {
                    background-color: var(--color-active);
                }
            }
        }
    }
}

.modal {
    background-color: var(--leads-column-bg);
    font-family: "Poppins", sans-serif;
    border-radius: 12px;
    width: 100%;
    max-width: 488px;
    padding: 20px;
}

.modal-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--table-border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--leads-text-color);
}

.modal-body {
    padding: 20px 0;
}

.modal-description {
    color: var(--color-text);
}

.text-center,
.modal-description--center {
    text-align: center;
}

.modal-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 14px;
    color: var(--color-text);
}

.modal-close {
    width: 24px;
    aspect-ratio: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-icon);
    background: transparent;
    border: 0;
    padding: 0;
    transition: color 0.2s, transform 0.3s;

    &::before,
    &::after {
        content: "";
        position: absolute;
        width: 16.97px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        top: 50%;
        left: 50%;
        transform-origin: center;
    }

    &::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    &::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    &:hover {
        color: var(--leads-text-color);
        transform: rotate(90deg);
    }
}

.modal-text {
    font-size: 14px;
}

.modal-footer {
    padding-top: 20px;
    border-top: 1px solid var(--table-border-color);

    & .modal-actions {
        padding: 0;
    }
}

.modal-actions {
    display: flex;
    gap: 12px;

    &>* {
        flex: 1;
    }
}

@media (max-width: 767.98px) {
    .modal {
        max-width: calc(100% - 32px);
    }
}

/* jQuery UI dialog close button: reuse modal-close cross + hover animation */
.ui-dialog {
    .ui-widget-header {
        .ui-dialog-titlebar-close {
            width: 24px;
            height: 24px;
            margin: 0;
            right: 24px;
            translate: 0 -50%;
            position: absolute;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 0;
            color: var(--color-icon);
            background: transparent;
            transition: color 0.2s, transform 0.3s;

            & .ui-icon {
                display: none;
            }

            &::before,
            &::after {
                content: "";
                position: absolute;
                width: 16.97px;
                height: 2px;
                border-radius: 999px;
                background: currentColor;
                top: 50%;
                left: 50%;
                transform-origin: center;
            }

            &::before {
                transform: translate(-50%, -50%) rotate(45deg);
            }

            &::after {
                transform: translate(-50%, -50%) rotate(-45deg);
            }

            &:hover,
            &:focus-visible {
                transform: rotate(90deg);
            }
        }
    }
}

.signIn-modal-active {
    .ui-dialog {
        .ui-widget-header {
            .ui-dialog-titlebar-close {
                filter: none;
            }
        }
    }
}



/* Modal MDO */

.modal-mdo {
    max-width: 488px;
    width: 100%;

    .modal-close {
        position: absolute;
        right: 24px;
        top: 50%;
        translate: 0 -50%;
        font-size: 0;

        &:hover {
            color: var(--color-icon);
        }
    }


}

.modal-mdo-header {
    height: 79px;
    background-color: #0C0D11;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    border-radius: var(--rounded-xl) var(--rounded-xl) 0 0;
}

.modal-mdo-icon {

    img {
        width: 129px;
    }
}

.modal-mdo-title {
    font-weight: 600;
    font-size: 22px;
    text-align: center;
    color: #2E2E2E;

    &:not(:last-child) {
        margin-bottom: 20px;
    }
}

.modal-mdo-body {
    padding: 40px;
    background-color: #E7E8EC;
    border-radius: 0 0 var(--rounded-xl) var(--rounded-xl);
}

.modal-mdo-text {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;

    color: #2E2E2E;

    &:not(:last-child) {
        margin-bottom: 20px;
    }

    span {
        font-weight: 500;
    }

    .btn-link {
        text-decoration: underline;
        font-weight: 500;
        text-underline-offset: 3px;

        &:hover {
            text-decoration: none;
        }
    }
}

.modal-mdo-bottom{
    margin-top: 45px;
}
.modal-mdo-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;

    &>* {
        flex: 1;
    }
}

.button-outline {}

.button {}