.lws_wizard {
    font-family: "Gravity";
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: #eeeeee;
    z-index: 65536;
    overflow: auto;
    display: flex;
    justify-content: center;

    .main-container {
        box-sizing: border-box;
        background-color: #ffffff;
        border-radius: 0px;
        padding: 10px;
        min-width: 800px;

        .lws_wizard_hidden_group {
            display: none;
        }
    }

    .form-title-line {
        margin-bottom: 10px;

        &:empty {
            display: none;
        }

        .form-title {
            font-size: 24px;
            height: 40px;
            background-color: #eeeeee;
            box-sizing: border-box;
            display: flex;
            line-height: 38px;

            &:before {
                display: flex;
                width: 40px;
                height: 40px;
                justify-content: center;
                align-items: center;
                background-color: var(--wizard-color, #333);
                font-family: 'lws-icons';
                color: #fff;
                content: '\ea12';
                margin-right: 10px;
            }
        }

        .form-help {
            padding: 10px;
            border-left: 5px solid var(--wizard-color, #333);
            background-color: var(--wizard-color-alpha, #eee);
            font-size: 16px;
            font-weight: 300;
            text-align: justify;
        }
    }

    .action-line {
        margin-top: 20px;
        display: flex;
        justify-content: space-between;

        .button {
            border: none;
            border-radius: 0;
            border-bottom: 5px solid var(--wizard-color, #333);
            display: flex;
            flex-wrap: nowrap;
            background-color: #666;
            box-sizing: border-box;
            color: #fff;
            transition: all 0.3s;
            height: 40px;
            line-height: 35px;
            font-size: 30px;
            padding: 0;
            cursor: pointer;
            position: relative;

            .icon {
                padding: 0 10px;
            }

            &.back {
                align-self: flex-start;

                .label {
                    padding-right: 10px;
                }

                &:hover {
                    background-color: var(--wizard-color, #333);
                }
            }

            &.repeat {
                align-self: flex-end;
                margin-right: 10px;
                background-color: var(--wizard-color-light, #666);
                border-color: var(--wizard-color-lighter, #999);

                .label {
                    padding-left: 10px;
                }

                &:hover {
                    background-color: var(--wizard-color-lighter, #999);
                }
            }

            &.next {
                align-self: flex-end;
                background-color: var(--wizard-color, #666);
                border-color: var(--wizard-color-light, #666);

                .label {
                    padding-left: 10px;
                }

                &:hover {
                    background-color: var(--wizard-color-light, #666);
                }
            }
        }
    }

    .big-container {
        display: flex;
        flex-direction: column;
        padding: 20px;
        margin: 30px 5px 5px 5px;
    }

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

        .logo {
            flex: 0 1 auto;
            text-align: center;
            padding: 10px;

            img {
                height: 80px;
            }
        }

        .title {
            flex: 0 1 auto;
            text-align: center;
            padding: 10px;
            font-size: 30px;
            color: #aaa;
            text-transform: uppercase;
            font-weight: bold;
        }
    }

    .progress-container {
        padding: 20px 0;
        width: 100%;
        flex: 0 1 auto;
        display: grid;
        grid-auto-flow: column;
        grid-column-gap: 2px;

        .item {
            display: flex;
            flex-direction: column;
            text-decoration: none;

            .line {
                height: 5px;
                width: auto;
                background-color: #cccccc;
            }

            .text {
                color: #999999;
                text-align: center;
                text-transform: uppercase;
            }

            &.current {
                .text {
                    color: var(--wizard-color, #333);
                }

                .line {
                    background-color: var(--wizard-color, #333);
                }
            }

            &.done {
                .text {
                    color: var(--wizard-color-dark, #333);
                }

                .line {
                    background-color: var(--wizard-color-dark, #333);
                }
            }
        }
    }

    .cancel-container {
        padding-top: 30px;
        padding-bottom: 4em;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1px;

        .button {
            border: none;
            border-radius: 0;
            border-bottom: 5px solid var(--wizard-color, #333);
            display: flex;
            flex-wrap: nowrap;
            background-color: #666;
            box-sizing: border-box;
            color: #fff;
            transition: all 0.3s;
            height: 30px;
            line-height: 25px;
            padding: 0;
            cursor: pointer;
            position: relative;

            &.cancel {
                justify-self: end;

                .lws_tooltips_wrapper {
                    right: 0px;
                }
            }

            &.leave {
                justify-self: start;
            }

            .icon {
                flex: 0 1 auto;
                padding: 0 5px 0 10px;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .text {
                flex: 0 1 auto;
                padding: 0 10px 0 0;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            &:hover {
                background-color: var(--wizard-color, #333);
                color: #fff;
            }

            .lws_tooltips_button {
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                cursor: pointer;

                &::before {
                    content: none;
                }

                .lws_tooltips_wrapper {
                    position: absolute;
                    top: 32px;
                    font-size: 10px;
                    text-transform: uppercase;
                    padding: 2px 10px;
                    background-color: #333;
                    font-family: "Gravity";
                    color: #fff;
                }
            }
        }
    }

    .form-grid {
        display: grid;
        grid-template-columns: 195px auto;
        //max-width: 800px;
        grid-column-gap: 5px;
        grid-row-gap: 20px;
        padding-bottom: 10px;

        .item-label {
            color: #666;
            font-size: 15px;
            line-height: 32px;
            position: relative;
            padding-right: 20px;

            .toggle-help {
                position: absolute;
                right: 0px;
                top: 5px;
                width: 20px;
                height: 20px;
                background-color: var(--wizard-color-lighter, #999);
                color: #fff;
                font-size: 14px;
                padding: 0;
                line-height: 20px;
                text-align: center;
                cursor: pointer;
                user-select: none;
            }
        }

        .item-help {
            grid-column: 1 / 3;
            display: none;
            background-color: var(--wizard-color-alpha, #eee);
            min-height: 40px;

            &.visible {
                display: flex;
            }

            .icon {
                font-size: 24px;
                display: flex;
                width: 40px;
                justify-content: center;
                align-items: center;
                background-color: var(--wizard-color-lighter, #999);
                color: #fff;
            }

            .text {
                padding: 5px 10px;
                text-align: justify;
            }
        }

        .item-value {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            grid-column-gap: 10px;
            grid-row-gap: 10px;
        }

        &.large {
            grid-template-columns: auto;
            max-width: 100%;

            .item-label {
                display: none;
            }

            .item-value {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
                grid-gap: 10px;
            }
        }

        &.label-only {
            grid-template-columns: auto;
            padding: 5px;

            .item-value {
                display: none;
            }
        }

        &.value-only {
            grid-template-columns: auto;

            .item-label {
                display: none;
            }
        }

        &.border {
            border: 1px solid var(--wizard-color);
            border-left-width: 5px;
            padding: 5px;
        }
    }
}

#wp-admin-bar-lws-wizard-cancel {
    a::before {
        content: "\ea51";
        font-family: "lws-icons" !important;
        font-size: 16px !important;
        line-height: 25px !important;
    }

    .lws_tooltips_button {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        cursor: pointer;

        &::before {
            content: none;
        }

        .lws_tooltips_wrapper {
            position: absolute;
            top: 32px;
            font-size: 10px;
            text-transform: uppercase;
            padding: 2px 10px;
            background-color: #333;
            font-family: "Gravity";
            color: #fff;
            width: max-content;
        }
    }
}