@import '../_base';
/* merchant page */
$merchant-navigation-height: 60px;

.merchant-signup {
    overflow-y: hidden;

    .header {
        position: relative;
        height: 330px;

        @include tablet {
            //Height for Bigger desktop screens
            @media (min-width: $site-width-medium) and (min-height: 650px) {
                height: 600px;
            }

            //Height for Normal desktop, laptops and ipad 1,2 & mini (landscape)
            @media (min-height: 650px) {
                height: 500px;
            }

            //Height for Ipad (portrait) and bigger desktop screens
            @media (min-height: 1000px) {
                height: 800px;
            }
        }

        .main-img-content {
            position: absolute;
            z-index: 1;
            padding: 85px 40px 0px 40px;
            text-align: center;
            @include tablet {
                position: relative;
                top: 25%;
                padding-left: 0px;
                padding-right: 0px;

                @media (max-height: 1000px) {
                    top: 20%;
                }
                @media (max-height: 650px) {
                    top: 2%;
                }
            }

            h1 {
                font-size: 30px;
                line-height: 35px;
            }
            h2 {
                font-weight: normal;
                font-size: 18px;
                line-height: 25px;
                br {
                    display: none;
                }
                @include tablet {
                    font-size: 24px;
                    line-height: 30px;
                    br {
                        display: inline;
                    }
                }
            }
            * {
                color: $primary-text-color-contrast;
            }
        }
    }
    .header-img,
    .slideshow-img {
        transform: translate3d(0, 0, 0);
        transition: opacity 1s;

        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;

        @include tablet {
            @media (max-height: 650px) {
                background-position: center 25%;
            }
        }

        &.in {
            opacity: 1;
            height: 100%;
        }

        &.out {
            opacity: 0;
            height: 100%;
        }
    }

    ul {
        list-style: none;
        padding: 0px;
    }

    h2 {
        text-align: center;
        font-size: 22px;
    }

    $merchant-navigation-height: 60px;

    .merchant-navigation {
        background-color: $primary-color;
        height: $merchant-navigation-height;
        width: 100%;
        color: $primary-text-color-contrast;

        .container {
            position: relative;
            margin: 0 auto;
            width: 768px;
            @include desktop {
                width: 960px;
            }
            @media (min-width: $site-width-medium) {
                width: 1200px;
            }
        }

        &.fixed {
            position: fixed;
            top: 0;
            z-index: 100;
        }

        ul.nav-items {
            float: left;
            padding: 0px;
            margin: 10px;
            li {
                transition: all 0.1s linear;
                display: inline-block;
                padding: 10px 9px;
                @include desktop {
                    padding: 10px 23px;
                }
                a {
                    outline: 0;
                    color: $primary-text-color-contrast;
                    &:hover {
                        text-decoration: none;
                    }
                }
                &.active {
                    transform: scale(1.2, 1.2);
                    &.join-now,
                    &.testimonials-and-press {
                        transform: scale(1.1, 1.1);
                    }
                }
                &.join-now {
                    border-radius: 2px;
                    border: 1px solid;
                }
            }

            @media (max-width: $site-width-medium) {
                .merchant-number {
                    display: none;
                }
            }
        }
    }

    .merchant-navigation-spacer {
        height: $merchant-navigation-height;
        background-color: $background-main;
        display: none;
        &.fixed {
            display: block;
        }
    }

    .section {
        padding: 40px 0px;
    }

    .overview {
        background-color: $background-main;
        .container {
            max-width: 960px;
            margin: 0 auto;
        }
        ul {
            @include pie-clearfix;
            margin: 0;
            padding: 0;
            text-align: center;
            li {
                display: inline-block;
                text-align: center;
                width: 280px;
                margin: 20px 15px;
                h2 {
                    text-align: center;
                    padding-top: 20px;
                }
                span {
                    line-height: 20px;
                    color: $secondary-text-color;
                }
                .main-icon {
                    color: $primary-color;
                    font-size: 35px;
                    line-height: 35px;
                    &.icon-hand-shake,
                    &.icon-computer-mobile,
                    &.icon-graph {
                        font-size: 40px;
                    }
                }
            }
        }
        .website-mockup {
            background-image: url('/images/merchant-signup/mockup-website.png');
            background-position: center center;
            background-size: contain;
            background-repeat: no-repeat;
            height: 230px;
            @media (min-width: $site-width-small-portrait) {
                height: 400px;
            }
        }
    }

    .services {
        h3 {
            font-weight: normal;
            text-align: center;
            margin: 0px 15px;
            color: $secondary-text-color;
        }

        .container {
            position: relative;
            width: 320px;
            margin: 0 auto;
            @include tablet {
                width: 760px;
            }
            @media (min-width: $site-width-medium) {
                width: 1075px;
            }
        }
        ul {
            @include pie-clearfix;
            text-align: center;
            li {
                box-sizing: border-box;
                display: inline-block;
                width: 250px;
                margin: 20px 10px;
                padding: 5px 10px;
                vertical-align: top;
                text-align: center;
                @include tablet {
                    width: 190px;
                }

                h3 {
                    margin: 40px 0px -20px 0px;
                    color: $secondary-text-color;
                }
            }
        }
    }

    .marketing {
        background-color: $background-main;

        h3 {
            font-weight: normal;
            color: $secondary-text-color;
            text-align: center;
            @media (min-width: $site-width-small-portrait) {
                display: none;
            }
        }

        .slideshow {
            position: relative;
            height: 285px;
        }

        .arrow {
            display: inline-block;
            position: absolute;
            top: 50%;
            font-size: 40px;
            cursor: pointer;

            @media (min-width: $site-width-small-portrait) {
                display: none;
            }
            &.icon-left-arrow-thick {
                left: 0;
                padding-left: 10px;
            }
            &.icon-right-arrow-thick {
                right: 0;
                padding-right: 10px;
            }
        }

        .slideshow-img {
            background-size: contain;
            margin: 0px 50px;
        }

        .slideshow-labels {
            text-align: center;
            color: #aaa;

            li {
                transition: opacity 1s;

                display: inline-block;
                vertical-align: top;
                margin: 10px 5px;
                font-size: 18px;
                line-height: 25px;
                cursor: pointer;

                @media (max-width: $site-width-small-portrait) {
                    margin: 0 5px;
                    padding-top: 20px;
                }

                .name {
                    box-sizing: border-box;
                    width: 140px;
                }

                .bullet {
                    font-size: 60px;
                    @media (min-width: $site-width-small-portrait) {
                        display: none;
                    }
                }

                &.active {
                    color: $secondary-text-color;
                    .icon-checkmark {
                        color: $primary-color;
                    }
                }

                .icon-checkmark {
                    font-size: 20px;
                    &.active {
                        color: $primary-color;
                    }
                }
            }
        }
    }

    .storefront {
        text-align: center;
        .storefront-img {
            width: 100%;
            height: 305px;
            @include tablet {
                height: 650px;
            }
            background-image: url('/images/merchant-signup/storefront.png');
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
            color: $background-main;
            margin-top: -40px;
            .img-text {
                position: relative;
                top: 20px;
                .icon-storefront-logo {
                    font-size: 45px;
                    position: relative;
                    @include tablet {
                        top: 20px;
                    }
                }
                h5 {
                    font-size: 16px;
                    font-weight: normal;
                    position: relative;
                    top: -10px;
                    color: $primary-text-color-contrast;
                    max-width: 100%;
                    @include tablet {
                        top: 36px;
                    }
                }
            }
        }
        .blurbs {
            padding-top: 40px;
            li {
                display: inline-block;
                width: 95%;
                margin: 0px;
                vertical-align: top;
                @include tablet {
                    width: 350px;
                    margin: 0px 10px;
                }
                p {
                    line-height: 20px;
                    color: $secondary-text-color;
                    margin-bottom: 0;
                }
            }
        }
        .checks {
            @include tablet {
                margin-top: 0px;
            }
            li {
                display: inline-block;
                vertical-align: top;
                width: 100%;
                margin: 10px 0px;
                color: $secondary-text-color;
                @include tablet {
                    margin-top: 0px;
                    width: 185px;
                }

                .icon-checkmark {
                    font-size: 20px;
                    color: $primary-color;
                }
            }
        }
    }

    .logistics {
        background-color: $background-main;
        text-align: center;
        .connect-marketing {
            p {
                line-height: 20px;
                color: $secondary-text-color;
                margin: 15px;
            }
            .icon-logistics-logo {
                font-size: 45px;
                color: $primary-color;
                margin-bottom: 30px;
                display: block;
            }
        }
        .connect-checks {
            margin: 20px 0 40px;
            li {
                display: inline-block;
                vertical-align: top;
                width: 100%;
                color: $secondary-text-color;
                @include tablet {
                    width: 220px;
                }

                .icon-checkmark {
                    font-size: 20px;
                    color: $primary-color;
                }
            }
        }
        .connect-flow {
            .icon-container {
                display: inline-block;
                position: relative;
                vertical-align: top;
                @media (min-width: $site-width-medium) {
                    top: 50px;
                }

                .connect-image {
                    box-sizing: border-box;
                    width: 150px;
                    display: inline-block;
                    img {
                        width: 130px;
                        margin: 10px 0;
                        vertical-align: middle;
                    }

                    @include tablet {
                        width: 150px;
                    }
                }

                .connect-arrow {
                    display: block;
                    transform: rotate(90deg);

                    @include tablet {
                        display: inline-block;
                        transform: rotate(0deg);
                    }
                }
            }
            .connect-img-main {
                display: block;
                margin: 0 auto;

                img {
                    width: 200px;
                    margin-left: 50px;
                }

                @media (min-width: $site-width-small-portrait) {
                    display: inline-block;
                    margin: auto;

                    img {
                        width: 150px;
                        margin: auto;
                    }
                }

                @media (min-width: $site-width-medium) {
                    margin-right: 30px;
                    img {
                        width: 275px;
                        margin: auto;
                    }
                }
            }
        }
        .connect-points {
            display: inline-block;
            margin: 25px 0;
            text-align: left;
            li {
                font-weight: bold;
                color: $primary-text-color;
            }
            .point {
                font-weight: normal;
                color: $secondary-text-color;
            }
        }
        .connect-availability {
            color: $secondary-text-color;
            margin-bottom: 25px;
        }
    }

    .testimonials-and-press {
        .testimonials {
            text-align: center;

            .merchant-testimonial {
                box-sizing: border-box;
                display: inline-block;
                margin: 15px 45px 20px 40px;
                @include tablet {
                    width: 295px;
                }

                .quote {
                    position: relative;
                    line-height: 20px;
                    color: $secondary-text-color;

                    .quote-open {
                        display: block;
                        padding-bottom: 5px;
                    }
                    .quote-close {
                        position: absolute;
                        right: 0;
                        bottom: 10px;
                        transform: rotate(180deg);
                    }
                    .merchant-quote {
                        @media (max-width: $site-width-mobile-large) {
                            br {
                                display: none;
                            }
                        }
                    }
                    .merchant-name {
                        font-style: italic;
                    }
                }
            }
        }
        .featured {
            img {
                display: block;
                margin: 15px auto;
                max-width: 650px;
            }
        }
    }

    .join {
        background-color: $background-main;
        iframe {
            width: 90%;
            max-width: 600px;
            height: 600px;
            margin: 0 auto;
            border: 0;
            display: block;
        }
        a {
            color: $primary-color;
            &:hover {
                text-decoration: none;
            }
        }
    }
}
