/**
 * checkout.css
 *
 * The style of the file is used on multiple pages.
 * Most checkout steps and pages contain the same elements, which are defined in this file.
 *
 * Index
 * - CHECKOUT
 *   - DATA
 *   - COLUMNS
 *   - PREVIEW
 *   - PAYMENT
 *   - NOTES
 *   - SEAL
 *   - STEPS
 * - QUICKBASKET
 *   - MAGAZINE
 *   - BONUS
 *   - HINTS
 *   - EXTRAPIC
 *   - AFFILIATE
 * - GREETINGCARD
 *   - PREVIEW
 *   - BOX
 *
 * Media
 * - MOBILE (only, fix small device)
 * - TABLET
 * - DESKTOP
 */

/* ------------------------------------ *
 * #CHECKOUT
 * ------------------------------------ */
.checkout {

}
.checkout-back {
    position: absolute;
    right: 0;
    bottom: 4px;
    font-family: Amble;
    font-size: 1rem;
    text-align: right;
}

/* Final Order Page */
.checkout-agb {
    margin: 25px 0;
    font-size: 1.1em;
}
.checkout-agb .input-control > input {
    margin-top: 3px;
}

/* Thankyou: Page */
.thankyou-wrapper {
    margin: 20px 0;
}

/* Placeholder Element for grey background */
.order-selection {

}


/* #CHECKOUT-DATA - grouping of user input data */
.checkout-data {
    margin: 20px 0;
}
.checkout-data.checkout-data-billing {

}
.checkout-data.checkout-data-shipping {
    margin-top: 40px;
}



/* #CHECKOUT-COLUMNS */
.checkout-columns {

}
.checkout-columns > div {

}
.checkout-discount {
    margin: 10px 0 15px;
    color: rgb(131, 192, 41);
}


.checkout-column {
    margin: 15px 0;
}
.checkout-column-highlight {
    margin: 20px 0;
}
.forms .checkout-column-highlight {
    margin: 20px 0;
}
.checkout-column-highlight span {
    display: inline-block;
    margin: 5px 0;
}



/* #CHECKOUT-PREVIEW */
.checkout-preview {
    margin: 0 0 10px;
}
.checkout-preview {

}
.checkout-preview img {
    display: none;
}



/* #CHECKOUT-PAYMENT */
.payment-fields {

}
.payment-fields > * {
    display: none;
}



/* #CHECKOUT-NOTES */
.checkout-notes {
    margin: 0 0 20px;
}
.checkout-notes p {
    margin: 0;
}



/* #CHECKOUT-SEAL */
.checkout-seal {
    margin: 20px 0;
}
.checkout-seal a {
    display: inline-block;
    margin: 0 10px 5px 0;
}
.checkout-seal img {
    display: block;
}
.checkout-seal p {
    display: block;
    margin: 0;
    font-size: 0.9em;
}



/* #CHECKOUT-STEPS */
.checkout-steps {
    display: flex;
    margin: 0 0 20px;
    padding: 14px 0 11px;
    width: 100%;
    justify-content: space-around;
    background: rgb(1, 93, 168);
}
.checkout-step {
    position: relative;
}
.checkout-step:before {
    content: '\f0d7';
    font-family: FontAwesome;
    position: absolute;
    bottom: -38px;
    left: 4px;
    font-size: 40px;
    color: rgb(1, 93, 168);
    opacity: 0;
}
.checkout-step a {
    display: block;
    text-decoration: none;
    white-space: nowrap;
}
.checkout-step-counter {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    float: left;
    width: 1.5em;
    height: 1.5em;
    top: -2px;
    right: -3px;
    text-align: center;
    color: rgb(1, 93, 168);
    background: radial-gradient(ellipse at center, rgb(255, 255, 255), rgb(255, 255, 255) 65%, transparent 70%);
}
.checkout-step-name {
    padding: 0 0 0 8px;
    color: rgb(255, 255, 255);
}
.checkout-step-name:after {
    content: '\f00c';
    font-family: FontAwesome;
    padding: 0 0 0 3px;
    color: rgb(131, 192, 41);
    opacity: 0;
}


.checkout-step.checkout-step-done .checkout-step-name:after {
    opacity: 1;
}
.checkout-step.checkout-step-active .checkout-step-name {
    font-family: AmbleBold;
}
.checkout-step.checkout-step-active:before {
    opacity: 1;
}

.checkout-step img {
    display: none;
    position: absolute;
    left: 255px;
    top: -13px;
    width: 60px;
}





/* ------------------------------------ *
 * #QUICKBASKET
 * ------------------------------------ */
.quickbasket {
    position: relative;
    margin: 0 0 30px;
}

.button-container-quickorder {

}
.button-container-quickorder .button {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
}



/* #QUICKBASKET-MAGAZINE */
.basketmagazine {
    overflow: hidden;

    display: flex;
    flex-wrap: wrap;
}

.basketmagazine-image {
    max-width: 155px;
    flex: 1 1 43%;
}
.basketmagazine-image img {
    display: block;
    width: 100%;
}
.basketmagazine-overlayicon {
    display: none;
    position: absolute;
    top: 140px;
    left: 140px;
    width: auto;
    max-height: 80px;
}

.basketmagazine-spacer {
    max-width: 15px;
    height: 1px;
    flex: 0 0 4%;
}

.basketmagazine-overview {
    flex: 1 1 53%;
}
.basketmagazine-overview h3 {
    display: inline-block;
    margin: 0 0 8px;
}
.basketmagazine-overview > div {
    display: inline-block;
    width: 100%;
}
.basketmagazine-overview > div > span {

}
.basketmagazine-overview > div > p {
    margin: 0 0 8px;
}
.basketmagazine-discount {
    color: rgb(131, 192, 41);
}



/* #QUICKBASKET-BONUS */
.basketbonus {
    display: flex;
    align-items: center;
    max-width: 550px;
    justify-content: flex-start;;
}
.basketbonus-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 15px 0;
    padding: 15px 15px 15px 40px;
    border-radius: 2px;
    background: rgb(131, 192, 41);
    color: rgb(255, 255, 255);
    width: 50%;
}
.basketbonus-box:before {
    content: '\f067';
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    top: 0;
    left: 12px;
    font-family: FontAwesome;
    font-size: 1.3em;
}
.basketbonus-box:after {
    content: ' ';
    position: absolute;
    width: 11px;
    height: 100%;
    top: 0;
    right: -11px;
    background: url(../../img/basketArrow.png) no-repeat center center transparent;
}
.basketbonus-image {
    width: 34%;
    max-width: 170px;
    margin: 0 0 0 15px;
}
.basketbonus-image img {
    display: block;
    width: 100%;
}

/* #QUICKBASKET-BONUS: with no article afterwards */
.basketbonus-noimage {
    max-width: 370px;
}
.basketbonus-noimage .basketbonus-box {
    width: 100%;
}
.basketbonus-noimage .basketbonus-box:after {
    content: none;
}



/* #QUICKBASKET-HINTS */
.quickbasket-hints {
    flex: 0 0 100%;
    margin: 15px 0;
    font-size: 0.84em;
}



/* #QUICKBASKET-EXTRAPIC */
.quickbasket-extrapic {
    display: block;
    margin: 15px auto;
    max-width: 100%;

    flex: 1 1 auto;
}
.quickbasket-extrapic img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}



/* #QUICKBASKET-AFFILIATE */
.quickbasket-affiliate {
    position: relative;
    max-width: 200px;
    margin: 15px 0;
    font-size: 0.9em;
}
.quickbasket-affiliate span {
    
}
.quickbasket-affiliate img {
    display: block;
    max-width: 100%;
}





/* ------------------------------------ *
 * #GREETINGCARD
 * ------------------------------------ */

/* #GREETINGCARD-PREVIEW */
.greetingcard-preview {
    position: relative;
    margin: 80px auto 30px;
    padding: 65px 10px 15px;
    background: rgb(131, 192, 41);
    color: rgb(255, 255, 255);
    max-width: 400px;
}
.greetingcard-preview > div {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    margin: 0 auto;
}
.greetingcard-preview img {
    display: block;
    margin: 0 auto;
}
.greetingcard-preview h3 {
    margin: 0 0 15px;
}
.greetingcard-preview p {
    margin: 0;
}



/* #GREETINGCARD-BOX */
.greetingcard-box {
    padding: 15px 0;
}
.greetingcard-box h3 {
    margin: 15px 0;
}
.greetingcard-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.greetingcard-item {
    margin: 15px 10px;
}
.greetingcard-item a {
    display: block;
}
.greetingcard-item img {
    display: block;
    max-width: 140px;
    margin: 0 auto;
}
.greetingcard-item span {
    display: block;
    font-size: 0.9em;
    text-align: center;
    margin: 5px 0 0;
}





/* #MOBILE: only mobile - small device fixes */
@media screen and (max-width: 320px) {
    /* #CHECKOUT-STEPS */
    .checkout-step-counter {
        display: none;
    }
    .checkout-step-active .checkout-step-counter {
        display: flex;
    }
}





/* #TABLET */
@media screen and (min-width: 640px) {
    /* #QUICKBASKET-MAGAZINE */
    .basketmagazine {
        flex-wrap: nowrap;
    }



    /* #QUICKBASKET-EXTRAPIC */
    .quickbasket-extrapic {
        max-width: 240px;
        margin: 0;
    }



    /* #CHECKOUT */
    .main-content > .services {
        display: none;
    }



    /* #CHECKOUT-PREVIEW */
    .checkout-preview {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }
    .checkout-preview img {
        display: block;
        max-width: 60px;
        margin: 0 15px 0 5px;
    }



    /* #CHECKOUT-STEPS */
    .checkout-steps {
        flex: 0 0 100%;
        margin: 0 -10px 35px;
        padding-right: 10px;
        padding-left: 10px;
    }
}



/* #DESKTOP */
@media screen and (min-width: 1024px) {
    /* #PRODUCT-LIST - extra order pages (4) articles */
    .order-selection .product-list li {
        flex-basis: 25%;
    }
    .order-selection .product-list li:nth-child(3n+1):last-child {
        margin-right: 0;
    }
    .order-selection .product-list li:nth-child(4n+1):last-child {
        margin-right: 75%;
    }
    .order-selection .product-list li:nth-child(4n+2):last-child {
        margin-right: 50%;
    }
    .order-selection .product-list li:nth-child(4n+3):last-child {
        margin-right: 25%;
    }



    /* #PRODUCT-LIST-LANDING */
    .order-selection .product-list-landingpage {
        flex-wrap: nowrap;
    }
    .order-selection .product-list-landingpage li {
        flex-basis: auto;
    }
    .order-selection .product-list-landingpage a > h3 {
        white-space: pre-line;
    }

    .order-selection .product-list-landingpage li:nth-child(4n+1):last-child {
        margin-right: 0;
    }
    .order-selection .product-list-landingpage li:nth-child(4n+2):last-child {
        margin-right: 0;
    }
    .order-selection .product-list-landingpage li:nth-child(4n+3):last-child {
        margin-right: 0;
    }




    /* #QUICKBASKET */
    .quickbasket {
        margin: 0;
    }


    /* #QUICKBASKET-EXTRAPIC */
    .quickbasket-extrapic {
        max-width: 410px;
        max-height: 260px;
    }
    .quickbasket-extrapic img {
        margin: 0 0 0 auto;
    }



    /* #QUICKBASKET-AFFILIATE */
    .quickbasket-affiliate {
        position: absolute;
        top: -5px;
        right: 0;
        margin: 0;
        max-width: 100%;
    }
    .quickbasket-affiliate span {
        display: block;
        float: left;
        margin: 2px 2px 0 0;
    }
    .quickbasket-affiliate img {
        float: left;
        max-height: 60px;
    }

    .quickbasket:after,
    .order-selection:after {
        content: ' ';
        height: 30px;
        width: 1024px;
        display: block;
        margin: 30px -15px 0;
        background: rgb(243, 243, 243);
    }
    .order-selection:after {
        margin-top: 15px;
    }





    /* #CHECKOUT */
    .order-affiliate-present {
        min-height: 50px;
    }
    .checkout-back {
        position: relative;
        display: block;
        text-align: left;
        margin: 5px 0 0;
    }



    /* #CHECKOUT-DATA */
    .checkout-data.checkout-data-shipping {
        margin: 0;
    }



    /* #CHECKOUT-ADDRESS */
    .order-address-container {
        display: flex;
        margin: 0 0 30px;
    }
    .order-address-container > div {
        flex: 0 0 50%;
        box-sizing: border-box;
        margin: 0;
    }
    .order-address-container > div:nth-child(1) {
        padding-right: 30px;
    }
    .order-address-container > div:nth-child(2) {
        padding-left: 30px;
        border-left: 1px solid rgb(224, 224, 224);
    }



    /* #CHECKOUT-PREVIEW */
    .checkout-preview {
        height: 90px;
    }



    /* #CHECKOUT-SEAL */
    .checkout-seal {
        display: flex;
        justify-content: flex-start;
        margin: 30px 0 15px;
    }
    .checkout-seal p {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }



    /* #CHECKOUT-STEPS */
    .checkout-steps {
        margin: -15px -15px 25px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .checkout-steps {
        padding: 0;
        width: 1024px;
        flex: none;
    }
    .checkout-step {
        flex: 0 0 33%;
        height: 100%;
        padding: 15px;
        box-sizing: border-box;
        text-align: center;
    }
    .checkout-step:before {
        bottom: -27px;
        left: 19px;
    }
    .checkout-step:nth-child(-n+2):after {
        content: ' ';
        position: absolute;
        display: block;
        top: 7px;
        right: 0;
        height: 38px;
        border-right: 2px solid white;
    }
    .checkout-step img {
        display: block;
    }





    /* #GREETINGCARD-PREVIEW */
    .greetingcard-preview {
        padding: 15px 10px 15px 160px;
    }
    .greetingcard-preview > div {
        top: 0;
        left: -15px;
        height: 100%;
        width: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }



    /* #GREETINGCARD-BOX */
    .greetingcard-box {
        max-width: 680px;
        margin: 30px 0 30px -15px;
        padding: 15px 0 10px 15px;
        background: rgb(243, 243, 243);
    }
    .greetingcard-box h3 {
        margin: 0;
    }
    .greetingcard-list {
        flex-wrap: nowrap;
        width: 680px;
    }
    .greetingcard-item:first-child {
        margin-left: 0;
    }
    .greetingcard-item img {
        margin: 0;
    }
    .greetingcard-item span {
        white-space: nowrap;
        text-align: left;
    }
}