.wsi-modal {
    display: none;

    &.open {
        display: block;
    }

    .overlay {
        position: fixed;
        z-index: 100000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);

        .content {
            display: flex;
            flex-direction: column;
            background-color: #fff;
            border-radius: 12px;
            margin: 10vh auto;
            max-height: 80vh;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px;
            width: 500px;

            .header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 20px;

                .icon {
                    width: 50px;
                    height: 50px;

                    img {
                        width: 100%;
                        height: auto;
                    }
                }

                h2 {
                    font-size: 24px;
                    margin: 0;
                }

                .modal-close {
                    color: #eb5b26;
                    cursor: pointer;
                    font-size: 28px;
                    font-weight: bold;
                }
            }

            .footer {
                display: flex;
                justify-content: end;

                button {
                    margin-left: 10px;
                }
            }

            /* Options version */
            &.options {

                .options {
                    background-color: #f3f3f3;
                    border-radius: 8px;
                    padding: 0 8px;

                    .option {
                        margin: 6px 0;
                    }
                }

                .note {
                    font-style: italic;
                }

                .credits-use {
                    background-color: #eb5b26;
                    border-radius: 4px;
                    color: #fff;
                    padding: 2px 8px 2px 8px;
                }

            }

            /* Progress version */
            &.progress {
                .progress-bar {
                    height: 20px;
                    border-radius: 8px;
                    border: 1px solid #666;
                    overflow: hidden;
                    margin: 0 0 20px 0;
                    padding: 0;

                    .fill {
                        transition: width 0.1s ease;
                        background-color: #eb5b26;
                        height: 100%;
                        width: 50%;
                    }
                }
            }

            /* Preview version */
            &.image-preview {
                width: 90vw;

                .images {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    overflow-y: auto;
                    gap: 20px;
                    padding: 20px;

                    .meta {
                        display: inline-table;
                        width: 50%;
                        font-size: 12px;
                        border: 1px solid #666;
                        padding: 10px;
                    }

                    .image-grid {
                        /* max-width: 50%; */
                        display: flex;
                        flex-wrap: wrap;
                    }

                    .image {
                        outline: 1px dashed;
                        outline-offset: 4px;
                        max-width: 45%;
                        padding: 10px;
                        margin: 10px;
                        height: fit-content;

                        .actual-size.mismatch {
                            color: #d63638;
                            font-weight: bold;
                        }

                        img {
                            width: 100%;
                        }
                    }
                }
            }

        }
    }
}