#wsi-bulk-actions {
    margin-right: 24px;

    &.no-credits {
        button.submit {
            opacity: 0.5;
            pointer-events: none;
        }
    }

    .disabled {
        pointer-events: none;
    }

    .credits {
        h4 {
            margin: 0 0 12px 0;
        }

        .cost-display {
            font-size: 16px;
            display: flex;
            justify-content: space-between;
            color: #666;
            margin: 0 0 6px 0;
        }

        .progress-bar {
            margin: 0 0 10px 0;

            .bar::before {
                transition: width 0.2s ease;
            }
        }
    }

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

    .wp-list-table {
        margin: 0 0 20px 0;

        #image-list.disabled {
            opacity: 0.5;
            pointer-events: none;
        }
    }

    .pagination {
        display: flex;
        align-items: center;
        justify-content: center;

        .next,
        .prev {
            margin: 10px;
        }
    }

    .submit .button {
        margin-right: 2px;
    }

    .manage-column {

        &.post,
        &.wsi {
            width: 10%;
        }

        &.check {
            width: 10%;
        }

        &.optimized {
            width: 10%;
        }

        &.column-title {
            width: 25%;
        }
    }

    .image-item {
        pointer-events: none;
        opacity: 0.5;

        &.hidden {
            display: none;
        }

        .wsi-icon {
            display: none;
        }

        &.is-wsi {
            .wsi-icon {
                display: block;
            }
        }

        &.is-valid {
            pointer-events: auto;
            opacity: 1.0;
        }

        .column-alt-text {

            textarea.alt-text {
                width: 100%;
                /* margin-bottom: 6px; */
            }

            .buttons {
                display: flex;
                flex-direction: row;
                justify-content: space-between;

                .lang-tabs {
                    display: flex;

                    .alt-lang {
                        margin: 0 8px 0 0;
                        text-transform: uppercase;
                        cursor: pointer;
                        text-decoration: underline;

                        &.active {
                            text-decoration: none;
                            pointer-events: none;
                            z-index: 100;
                            opacity: 0.8;
                        }
                    }
                }
            }
        }

    }

}

.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: 80vw;

                .images {
                    display: flex;
                    flex-wrap: none;
                    overflow-x: auto;
                    overflow-y: auto;
                    gap: 20px;
                    padding: 20px;
                }
            }

        }
    }
}