/*
    Common 
*/

.wizard,
.tabcontrol {
    display: block;
    width: 100%;
    overflow: hidden;
}

.wizard a,
.tabcontrol a {
    outline: 0;
}

.wizard ul,
.tabcontrol ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.wizard ul > li,
.tabcontrol ul > li {
    display: block;
    padding: 0;
}

/* Accessibility */

.wizard > .steps .current-info,
.tabcontrol > .steps .current-info,
.wizard > .content > .title,
.tabcontrol > .content > .title {
    position: absolute;
    inset-inline-start: -999em;
}

/*
      Wizard
  */

.wizard {
    > .steps {
        position: relative;
        display: block;
        width: 100%;
    }

    &.vertical {
        > .steps {
            display: inline;
            float: $float-left;
            width: 30%;
        }

        > .steps > ul > li {
            float: none;
            width: 100%;
        }

        > .content {
            display: inline;
            float: $float-left;
            margin: 0 2.5% 0.5em 2.5%;
            width: 65%;
        }

        > .actions {
            display: inline;
            float: $float-right;
            margin: 0 2.5%;
            width: 95%;
        }

        > .actions > ul > li {
            margin: 0 0 0 1em;
        }
    }

    > {
        .steps {
            .number {
                font-size: 1.429em;
            }

            > ul > li {
                width: 25%;
                float: $float-left;
            }
        }

        .actions > ul > li {
            float: $float-left;
        }
    }

    > {
        .steps {
            a {
                display: block;
                width: auto;
                margin: 0 0.5em 0.5em;
                padding: 1em 1em;
                text-decoration: none;
                -webkit-border-radius: 5px;
                -moz-border-radius: 5px;
                border-radius: 5px;

                &:hover,
                &:active {
                    display: block;
                    width: auto;
                    margin: 0 0.5em 0.5em;
                    padding: 1em 1em;
                    text-decoration: none;
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    border-radius: 5px;
                }
            }

            .disabled a {
                background: #eee;
                color: #aaa;
                cursor: default;

                &:hover,
                &:active {
                    background: #eee;
                    color: #aaa;
                    cursor: default;
                }
            }

            .current a {
                background: #2184be;
                color: #fff;
                cursor: default;

                &:hover,
                &:active {
                    background: #2184be;
                    color: #fff;
                    cursor: default;
                }
            }

            .done a {
                background: #9dc8e2;
                color: #fff;

                &:hover,
                &:active {
                    background: #9dc8e2;
                    color: #fff;
                }
            }

            .error a {
                background: #ff3111;
                color: #fff;

                &:hover,
                &:active {
                    background: #ff3111;
                    color: #fff;
                }
            }
        }

        .content {
            background: #eee;
            display: block;
            margin: 0.5em;
            min-height: 35em;
            overflow: hidden;
            position: relative;
            width: auto;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
        }
    }

    > {
        .content > .body {
            float: $float-left;
            position: absolute;
            width: 95%;
            height: 95%;
            padding: 2.5%;

            ul {
                list-style: disc !important;

                > li {
                    display: list-item;
                }
            }

            > iframe {
                border: 0 none;
                width: 100%;
                height: 100%;
            }

            input {
                display: block;
                border: 1px solid #ccc;

                &[type="checkbox"] {
                    display: inline-block;
                }

                &.error {
                    background: rgb(251, 227, 228);
                    border: 1px solid #fbc2c4;
                    color: #8a1f11;
                }
            }

            label {
                display: inline-block;
                margin-block-end: 0.5em;

                &.error {
                    color: #8a1f11;
                    display: inline-block;
                    margin-inline-start: 1.5em;
                }
            }
        }

        .actions {
            position: relative;
            display: block;
            text-align: end;
            width: 100%;
        }
    }

    > .actions > ul {
        display: inline-block;
        text-align: end;

        > li {
            margin: 0 0.5em;
        }
    }

    > {
        .actions {
            a {
                background: #2184be;
                color: #fff;
                display: block;
                padding: 0.5em 1em;
                text-decoration: none;
                -webkit-border-radius: 5px;
                -moz-border-radius: 5px;
                border-radius: 5px;

                &:hover,
                &:active {
                    background: #2184be;
                    color: #fff;
                    display: block;
                    padding: 0.5em 1em;
                    text-decoration: none;
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    border-radius: 5px;
                }
            }

            .disabled a {
                background: #eee;
                color: #aaa;

                &:hover,
                &:active {
                    background: #eee;
                    color: #aaa;
                }
            }
        }
    }
}

/*
      Tabcontrol
  */

.tabcontrol > {
    .steps {
        position: relative;
        display: block;
        width: 100%;

        > ul {
            position: relative;
            margin: 6px 0 0 0;
            inset-block-start: 1px;
            z-index: 1;

            > li {
                float: $float-left;
                margin: 5px 2px 0 0;
                padding: 1px;
                -webkit-border-start-start-radius: 5px;
                -webkit-border-start-end-radius: 5px;
                -moz-border-radius-topinset-inline-start: 5px;
                -moz-border-radius-topinset-inline-end: 5px;
                border-start-start-radius: 5px;
                border-start-end-radius: 5px;

                &:hover {
                    background: #edecec;
                    border: 1px solid #bbb;
                    padding: 0;
                }

                &.current {
                    background: #fff;
                    border: 1px solid #bbb;
                    border-block-end: 0 none;
                    padding: 0 0 1px 0;
                    margin-block-start: 0;

                    > a {
                        padding: 15px 30px 10px 30px;
                    }
                }

                > a {
                    color: #5f5f5f;
                    display: inline-block;
                    border: 0 none;
                    margin: 0;
                    padding: 10px 30px;
                    text-decoration: none;

                    &:hover {
                        text-decoration: none;
                    }
                }
            }
        }
    }

    .content {
        position: relative;
        display: inline-block;
        width: 100%;
        height: 35em;
        overflow: hidden;
        border-block-start: 1px solid #bbb;
        padding-block-start: 20px;

        > .body {
            float: $float-left;
            position: absolute;
            width: 95%;
            height: 95%;
            padding: 2.5%;

            ul {
                list-style: disc !important;

                > li {
                    display: list-item;
                }
            }
        }
    }
}
