/*
 * Page header
 */
.page-header {
    position: relative;
    background-color: #262626;
    color: #ffc100;
    text-align: center;
    margin: 0;
    padding: 0;
    border: 0;
    height: 60px;
    transition: height .3s;
    overflow: hidden;
}
.page-header.is-empty {
    height: 32px;
}

/* Back btn */
.page-header .back-btn {
    position: absolute;
    left: 20px;
    top: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: none;
}
.page-header .back-btn svg {
    position: absolute;
    left: 0;
    top: 0;
    right: 1px;
    bottom: 0;
    width: 13px;
    height: 10px;
    margin: auto;
    padding: 1px;
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}
.page-header .back-btn path {
    fill: #000;
}
.page-header .back-btn .lbl {
    display: none;
}

/* Step indication */
.page-header .step-indication {
    padding: 0 10px;
}
.page-header .step-indication .column-headlines,
.page-header .step-indication .arrow-btn {
    display: none;
}
.page-header .step-indication ol {
    padding: 0;
    margin: 0 auto;
}
.page-header .step-indication ol li {
    display: inline-block;
    text-transform: uppercase;
    /* 1px more for aesthetic reasons */
    line-height: 57px;
    font-weight: 300;
    font-size: 14px;
    color: #7f7f7f;
    position: relative;
    padding: 0 15px 0 35px;
}
.page-header .step-indication ol li:before {
    content: "";
    height: 1px;
    width: 20px;
    position: absolute;
    bottom: 28px;
    left: 0;
    display: block;
    background: #b3b3b3;
}
.page-header .step-indication ol li:first-child {
    padding: 0 15px 0 0;
}
.page-header .step-indication ol li:first-child:before {
    content: "";
    height: 0;
}
.page-header .step-indication ol li:last-child {
    padding: 0 0 0 35px;
}
.page-header .step-indication ol li.active {
    color: #ffc100;
}
.page-header .step-indication .indication-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 370px;
    height: 10px;
    background-color: #ffc100;
    transform: translateX(1px);
    -webkit-transform: translateX(1px);
    transition-property: width, transform;
    /* also update js timeout duration when changing, see component comments */
    transition-duration: .3s;
}
.page-header .step-indication .indication-bar.is-wide {
    width: 742px;
}
.page-header .step-indication .indication-bar.no-transitions {
    transition: none;
}
.page-header .step-indication.is-first-active.is-last-active .indication-bar {
    display: none;
}

/* info bar */
.page-header .info-bar {
    color: #262626;
    height: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 17px;
    text-align: left;
    background-color: #ffdf7f;
    transition: height .3s;
}
.page-header .info-bar li {
    line-height: inherit;
}
.page-header .info-bar-inner {
    position: relative;
    max-width: 1500px;
    padding: 8px 20px;
    box-sizing: border-box;
}
.page-header .info-bar-inner ul {
    list-style: none;
    margin-left: 0;
}
.page-header .info-bar.is-error {
    color: #fff;
    background-color: #b90919;
}

/* page header empty */
.page-header.is-empty + .page-content .column-wrap,
.page-header.is-empty + form .column-wrap {
    top: 32px;
}
/* info bar visible, page header has content */
.is-info-bar-visible .page-header {
    /* info-bar + step-indication */
    height: 157px;
}
.is-info-bar-visible .page-content .column-wrap,
.is-info-bar-visible form .column-wrap {
    top: 157px;
}
.is-info-bar-visible .page-header .info-bar {
    height: 100px;
}

/* header back btn visible, but page header empty */
.is-header-back-btn-visible .back-btn {
    display: block;
}
.is-header-back-btn-visible .page-header.is-empty {
    height: 60px;
}
.is-header-back-btn-visible .page-header.is-empty + .page-content .column-wrap,
.is-header-back-btn-visible .page-header.is-empty + form .column-wrap {
    top: 60px;
}
/* Info bar visible, but page header empty */
.is-info-bar-visible .page-header.is-empty {
    /* info-bar + page-header */
    height: 132px;
}
.is-info-bar-visible .page-header.is-empty .step-indication ol {
    display: none;
}
.is-info-bar-visible .page-header.is-empty + .page-content .column-wrap,
.is-info-bar-visible .page-header.is-empty + form .column-wrap {
    /* info-bar + page-header */
    top: 132px;
}
.is-info-bar-visible .back-btn {
    top: 110px;
}
/* header back btn & info bar visible, but page header empty */
.is-header-back-btn-visible.is-info-bar-visible .page-header.is-empty {
    /* info-bar + step-indication */
    height: 157px;
}
.is-header-back-btn-visible.is-info-bar-visible .page-header.is-empty + .page-content .column-wrap,
.is-header-back-btn-visible.is-info-bar-visible .page-header.is-empty + form .column-wrap {
    /* info-bar + step-indication */
    top: 157px;
}
/* Multiple bars visible */
.is-multiple-bars-visible .page-header .info-bar {
    position: relative;
    height: 55px;
    line-height: 15px;
    margin-top: 45px;
}
.is-multiple-bars-visible .page-header .info-bar.is-add-on {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 45px;
    line-height: 17px;
    margin-top: 0;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
/* Landscape phone to portrait tablet */
@media ( max-width: 767px ) {
    .page-header {
        margin-left: -20px;
        margin-right: -20px;
    }

    /* whether the page header is empty or not,
     * always set the same height and top, as the column headlines need to be presented
     */
    .page-header,
    .page-header.is-empty {
        height: 50px;
    }
    .page-header.is-empty + .page-content .column-wrap,
    .page-header.is-empty + form .column-wrap {
        top: 50px;
    }
    /* header back btn visible */
    .is-header-back-btn-visible .back-btn {
        display: block;
    }
    .is-header-back-btn-visible .page-header,
    .is-header-back-btn-visible .page-header.is-empty {
        height: 86px;
    }
    .is-header-back-btn-visible .page-content .column-wrap,
    .is-header-back-btn-visible form .column-wrap,
    .is-header-back-btn-visible .page-header.is-empty + .page-content .column-wrap,
    .is-header-back-btn-visible .page-header.is-empty + form .column-wrap {
        /* 37 + 50 */
        top: 86px;
    }
    /* info bar visible */
    .is-info-bar-visible .page-header,
    .is-info-bar-visible .page-header.is-empty {
        height: 186px;
    }
    .is-info-bar-visible .page-header .info-bar {
        height: 136px;
    }
    .is-info-bar-visible .page-content .column-wrap,
    .is-info-bar-visible form .column-wrap,
    .is-info-bar-visible .page-header.is-empty + .page-content .column-wrap,
    .is-info-bar-visible .page-header.is-empty + form .column-wrap {
        /* 100 + 36 + 50 */
        top: 186px;
    }
    /* header back btn & info bar visible, but page header empty */
    .is-header-back-btn-visible.is-info-bar-visible .page-header .info-bar {
        height: 100px;
    }
    .is-header-back-btn-visible.is-info-bar-visible .page-header.is-empty {
        /* 100 + 36 + 50 */
        height: 186px;
    }
    .is-header-back-btn-visible.is-info-bar-visible .page-header.is-empty + .page-content .column-wrap,
    .is-header-back-btn-visible.is-info-bar-visible .page-header.is-empty + form .column-wrap {
        /* 100 + 36 + 50 */
        top: 186px;
    }
    .is-header-back-btn-visible.is-info-bar-visible .page-header.is-empty .info-bar.is-add-on {
        top: 36px;
    }
    /* Multiple bars visible */
    .is-multiple-bars-visible.is-info-bar-visible .page-header.is-empty {
        /* 91 + 60 + 50 */
        height: 201px;
    }
    .is-multiple-bars-visible.is-info-bar-visible .page-content .column-wrap,
    .is-multiple-bars-visible.is-info-bar-visible form .column-wrap,
    .is-multiple-bars-visible.is-info-bar-visible .page-header.is-empty + .page-content .column-wrap,
    .is-multiple-bars-visible.is-info-bar-visible .page-header.is-empty + form .column-wrap {
        /* 91 + 60 + 50 */
        top: 201px;
    }
    .is-multiple-bars-visible .page-header .info-bar {
        height: 91px;
        margin-top: 60px;
    }
    .is-multiple-bars-visible .page-header .info-bar.is-add-on {
        height: 60px;
    }
    /* Multiple bars visible & header back btn, but page header empty */
    .is-multiple-bars-visible.is-header-back-btn-visible .page-header.is-empty .info-bar {
        height: 55px;
    }
    .is-multiple-bars-visible.is-header-back-btn-visible .page-header.is-empty .info-bar.is-add-on {
        height: 60px;
    }

    /* Back btn */
    .page-header .back-btn {
        position: relative;
        width: auto;
        height: 36px;
        line-height: 36px;
        left: auto;
        top: auto;
        border-radius: 0;
        border-bottom: 1px solid #595959;
    }
    .page-header .back-btn svg {
        margin: auto 0;
        left: 16px;
        right: auto;
    }
    .page-header .back-btn .lbl {
        display: block;
    }

    .page-header .step-indication {
        position: relative;
        color: #ffc100;
        font-size: 16px;
        font-weight: bold;
    }
    .page-header .step-indication .column-headlines {
        display: block;
        list-style: none;
        margin: 0;
        /* split-up required because we use jQuery.css to apply the inline transform style */
        transition-property: transform, -webkit-transform;
        transition-duration: .3s, .3s;
    }
    .page-header .step-indication .column-headlines > li {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0 55px;
        /* 1px more for aesthetic reasons */
        line-height: 51px;
        box-sizing: border-box;
    }
    .page-header .step-indication .arrow-btn {
        position: absolute;
        left: 0;
        top: 0;
        width: 50px;
        height: 50px;
        display: block;
        text-align: center;
        border: 0;
        background: none;
        padding: 0;
    }
    .page-header .step-indication.is-first-active .arrow-left,
    .page-header .step-indication.is-last-active .arrow-right {
        display: none;
    }
    .page-header .step-indication .svg-icon-arrow {
        width: 16px;
        height: 10px;
        vertical-align: baseline;
        transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
    }
    .page-header .step-indication .arrow-right {
        left: auto;
        right: 0;
    }
    .page-header .step-indication .arrow-right .svg-icon-arrow {
        transform: rotate(-90deg);
        -webkit-transform: rotate(-90deg);
    }
    .page-header .step-indication .svg-icon-arrow path {
        fill: #fff;
    }
    .page-header .step-indication ol {
        display: none;
    }
    .page-header .step-indication .indication-bar {
        display: none;
    }

    /* info-bar */
    .page-header .info-bar-inner {
        padding: 8px 10px;
    }
}