.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    padding: 16px;
    z-index: 1001;

    &--open {
        display: block;
    }

    &-content {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 640px;
        width: 100%;
        border-radius: 24px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        background-color: #fff;

        :global(html.dark) & {
            background-color: #1e1f22;
        }
    }

    &-header {
        padding: 1rem;
        font-size: 18px;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
    }

    &-close-button {
        cursor: pointer;
        width: 24px;
        height: 24px;
    }

    &-body {
        padding: 1rem;
    }

    &-footer {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}
