/**
 * #webshop-shopping-cart-snippet (quickview)
 */

.shopping-cart-compact {
    font-size: .6em;
}

.shopping-cart-compact a {
    display: block;
    padding: 0.2em 1em 0.2em 0.7em;
    text-decoration: blink;
    background-color: #f0910c;
    box-shadow: inset 0px -3px 0px rgba(0,0,0,0.2);
    border-radius: 0.2em;
}

.shopping-cart-compact .icon-cart {
    font-size: 2em;
    transition: color .1s linear;
    color: #fff;
}

.shopping-cart-compact .mw-scs-number-of-articles {
    position: relative;
    top: -4px;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.5em;
    text-align: center;
    color: #000;
    background-color: #fff;
}

.shopping-cart-compact .total-price {
    display: none;
    padding-top: 0;
    padding-left: 0;
    font-size: 1.2em;
}


/*
 * =============================
 * @author: 	Peter Slagter
 * @module: 	mod_webshop
 * @about: 		Front-end CSS for shoppingcart
 * =============================
 */

/*
    Defaults
    --------------------------------------------------
*/
a img {
    border: 0;
}

/**
 * input fields
 */

/*.webshop-shopping-cart .proFormText,
.webshop-shopping-cart select,
.webshop-shopping-cart textarea,
.webshop-shopping-cart input,
.webshop-shopping-cart .product-quantity {
    padding: 10px 7px;
    line-height: 1em;
}*/


/* Buttons */
.webshop-shopping-cart a.button {
    display: block;
    height: 16px;
    width: 16px;
    float: left;
    text-indent: -999em;
}

.webshop-shopping-cart a.button-delete {
    display: block;
    height: 16px;
    width: 16px;
    float: left;
    text-indent: -999em;
    border: 1px solid #ccc;
    background: transparent url(../img/bg-webshop-sprite.png) no-repeat 13px -671px;
}

.webshop-shopping-cart a.button-delete:hover {
    background-color: #f2f2f2;
}


#login_button_panel {
    margin-top: 1em;
}
/*.webshop-shopping-cart div.submit button,
.webshop-shopping-cart button,
#content #recalculatePrice {
    padding: 10px 45px;
    border-width: 1px;
    font-size: 18px;
    color: #fff;
}*/

#shopping-cart-buttons_next {
    margin-right: 0;
}

#shopping-cart-buttons_previous {
    color: #000;
    background-color: #fff;
    border: 1px solid #ccc;
}

/*
    The shopping cart
    --------------------------------------------------
*/

.shopping-cart-meta-actions {
    position: relative;
    display: block;
    margin: 0 0 12px;
    list-style: none;
    border-radius: 6px;
    background-color: #e6e0de;
}

.shopping-cart-meta-actions li {
    display: inline-block;
    *display: inline;
    border-right: 2px solid #e0d8d6;
}

.shopping-cart-meta-actions li:last-child {
    position: absolute;
    top: 0;
    right: 0;
    border-right-width: 0;
}

.shopping-cart-meta-actions a {
    font-size: .85em;
    font-weight: 600;
}

.shopping-cart-meta-actions a {
    display: block;
    padding: 10px;
}

.shopping-cart-meta-actions a:before,
.quotation-sales a:before {
    margin-right: .5em;
    font-weight: normal;
    font-family: "akb";
}

.shopping-cart-meta-actions a[href*="pdfcatalogus/pdf"]:before {
    content: "\e815";
}

.shopping-cart-meta-actions a[onclick*="pdfcatalogus/mail"]:before {
    content: "\e800";
}

.shopping-cart-meta-actions a[href*="/bestellen"]:before {
    content: "\e811";
}

.quotation-sales a:before {
    content: "\e816";
}

.webshop-shopping-cart {
    position: relative;
}

#s-page-products legend {
    padding-top: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

#s-page-products p {
    margin-bottom: 5em;
}

table.shoppingcart {
    width: 100%;
    margin: 0 0 2em 0;
    border-collapse: collapse;
    background: #fff;
}

table.shoppingcart td,
table.shoppingcart th {
    padding: 8px 10px;
    vertical-align: middle;
}

/* Caption */
table.shoppingcart caption {
    margin: 0;
    padding: 10px 15px;
    border-bottom: 1px solid #ccc;
}

.shoppingcart .sub-total-price {
    float: right;
    font-size: 14px;
}

.sub-total-price .price {
    display: inline-block;
    *display: inline;
    font-weight: bold;
    color: #87b726;
}

form .product-price {
    display: inline-block;
    *display: inline;
    width: auto;
    font-size: 15px;
    font-weight: bold;
    color: #87b726;
}

/* Table headers */
table.shoppingcart th {
    font-weight: 600;
}

@media (min-width: 768px) {
    th.sc-product-image {
        width: 160px;
    }
}
.ieOld th.sc-product-image {
    width: 160px;
}

.vgm-ws-artnr {
    width: 100px;
}

th.number-of-products {
    width: 200px;
}

.shoppingcart--wholesale th.number-of-products {
    width: 70px;
}

table.shoppingcart th.buttons {
    width: 100px;
    font-size: 1px; /* Prevent unnecessary space of indented text */
    color: #f1f1f1;
}

/* Rows */
table.shoppingcart tbody {
    border-bottom: 2px solid #dcdcdc;
}

.shoppingcart tbody tr:nth-child(2n) {
    background-color: #f3f3ee;
}

.shoppingcart tbody tr:nth-child(2n) a.button-delete:hover {
    background-color: #fff;
}

table.shoppingcart tr.even td {
    background-color: #fff;
}

table.shoppingcart tr.first td,
table.shoppingcart tr.totals td {
    border-top: 0;
}

/* shopping cart product image */
.shoppingcart .sc-product-image img {
    max-width: 60px;
}

/* Product description */
.ie8 .webshop-shopping-cart input.product-quantity,
.ie8 input.product-quantity,
.ie9 .webshop-shopping-cart input.product-quantity,
.ie9 input.product-quantity {
    padding-top: 0;
    padding-bottom: 0;
}

/*table.shoppingcart .number-of-products,
table.shoppingcart .sc-times,
table.shoppingcart .sc-is {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}*/

.webshop-shopping-cart input.product-quantity, input.product-quantity {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 2.5em;
    padding: 4px 2px;
    line-height: 19px;
    font-size: .95em;
    font-weight: 500;
    text-align: center;
}

.ie8 .webshop-shopping-cart .number-of-products input,
.ie9 .webshop-shopping-cart .number-of-products input {
    padding-top: 4px;
    padding-bottom: 4px;
}

/** hide subtotals, because they are already displayed at another place */
tfoot .total-price-category {
    display: none;
}

/* Total price */
tr.totals td.price {
    color: #87b726;
    font-weight: 600;
}

table.shoppingcart tr.total-price td,
table.shoppingcart tr.total-price th {
    padding-top: 10px;
    border-top: 1px solid #D5D5CB;
}

table.shoppingcart tr.total-price td {
    font-size: 18px;
    font-weight: 500;
}

.webshop-coupon-question a {
    font-size: 12px;
}

/**
 * Total price summary
 */

.total-price-category th,
.total-price-category td {
    font-size: 16px;
}

.vgm-ws-price,
td.totalprice {
    width: 200px;
}

table.shoppingcart tfoot tr:nth-child(2n + 1) td {
    border-width: 0;
    background-color: #f3f3ee;
}

table.shoppingcart tfoot tr:nth-child(2n + 1) td:first-child {
    border-bottom-width: 0;
}

/**
 * gift-coupon
 */

.total-price-vat {
    font-size: .8em;
}

tr.totals.total-price-vat td:first-child {
    padding-top: 2px;
    padding-bottom: 2px;
    margin: 0;
    border-color: #fff !important;
    border-bottom: 0;
    border-collapse: collapse;
}

#gift-coupon {
    font-size: 13px;
    padding-bottom: .3em;
    margin-bottom: 0;
    overflow: visible;
}

#gift-coupon label {
    width: 8em;
}

#shopping-cart #gift-coupon div.fieldinput {
    clear: none;
}

#gift-coupon .w-medium {
    width: 10em;
    padding-top: 3px;
    padding-bottom: 3px;
}

#gift-coupon button {
    margin-top: .3em;
    margin-bottom: 0;
    line-height: 19px;
    vertical-align: bottom;
    background-color: #c4ba98;
}

/*
    Form has pages
    --------------------------------------------------
*/

/* form with pages */
form.has-pages {
    height: 100%;
    border-width: 0;
    overflow: hidden;
}

form.has-pages fieldset {
    margin: 8px 0 0 0;
    padding: 0;
    border-width: 0;
}

/* form with pages: breadcrumbs */
form.has-pages ul.form-bc {
    display: none;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #ebebd5;
}

form.has-pages ul.form-bc li {
    padding-right: 20px;
    background: transparent;
}

form.has-pages ul.form-bc li.last {
    padding-right: 5px;
}

form.has-pages ul.form-bc li.current-page {
    color: #000;
}

form.has-pages ul.form-bc li.processed-page {
    color: #000;
}

form.has-pages ul.form-bc li span,
form.has-pages ul.form-bc li.last span {
    float: none;
    padding: 1em 1em 1em .5em;
}

/* form with pages: processed page */

/* clear shopping-cart button */
div.clear-shopping-cart {
    display: none;
    float: left;
    clear: none;
    width: auto;
}

div.clear-shopping-cart div.fieldinput {
    margin: 0 0 0 10px;
}

a.webshop-back-to-shop {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    padding-left: 9px;
    font-size: 14px;
    font-weight: bold;
}

form.has-pages div.submit {
    margin: 0 10px 10px;
    clear: none;
}

#s-page-details-address:after {
    content: "";
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
}

button#clear-shopping-cart {
    padding: 0;
    border-width: 0;
    line-height: 1em;
    font-size: 12px;
    font-weight: bold;
    color: #b3211e;
    background: transparent;
}

button#clear-shopping-cart {
    text-decoration: underline;
}

#shopping-cart #s-page-details,
#shopping-cart #s-page-details-address {
    display: inline-block;
    *display: inline;
    width: 50%;
    vertical-align: top;
}

#shopping-cart div.fieldinput {
    display: block;
    clear: both;
    margin-left: 0;
}

#shopping-cart div.fieldinput div.fieldinput {
    display: inline-block;
    *display: inline;
    clear: none;
}

#s-page-details-address label.field {
    display: block;
}

#s-page-details-address div.field > label {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: bold;
    color: #000;
}

#s-page-confirm-products,
#s-page-confirm-your-details,
#s-page-confirm-address {
    font-weight: 600;
    color: #000;
}

#s-page-confirm-products label,
#s-page-confirm-your-details label,
#s-page-confirm-address  label {
    font-weight: 300;
}

#s-page-confirm-your-details legend {
    display: block;
}

#shopping-cart #s-page-details .w-medium {
    width: 80%;
}

#shopping-cart #remarks {
    height: 5em;
}

#shopping-cart #s-page-details legend,
#shopping-cart #s-page-details-address legend,
#shopping-cart legend {
    margin-bottom: 0;
    font-size: 1.5em;
    color: #000;
}

#s-page-details-address legend {
    padding-bottom: 0;
}

/**
 * Different shipping address checkbox
 */

.fe-address {
    overflow: hidden;
}

.fe-address + .singlecheckbox {
    margin-top: 1em;
}

/**
 * Shipping address freetext field
 */

/*#invoice_address .fea-group-1 {*/
/*    display: none;*/
/*}*/

/*
    Order history
    --------------------------------------------------
*/

.webshop-order-history caption {
    display: none;
}

#section_one,
#section_two {
    float: left;
    width: 50%;
}

#section_one {
    margin-bottom: 2em;
}

#section_two {
    margin-top: 0;
}

#section_three {
    clear: left;
}

div.webshop-order-history table.itemlist {
    width: 100%;
}

div.webshop-order-history table.webshop-order-lines th {
    white-space: nowrap;
}

/*div.webshop-order-history table.itemlist td.webshop-order-line-quantity,
div.webshop-order-history table.itemlist td.webshop-order-product-quantity {
    text-align: center;
}*/

div.webshop-order-history table.itemlist td.webshop-order-line-price,
div.webshop-order-history table.itemlist td.webshop-order-total-price {
    white-space: nowrap;
}

div.webshop-order-history table.itemlist td.webshop-order-total-price {
    padding-right: 10px;
}

/**
 * paymentMethod
 */

#paymentMethod li {
    position: relative;
    float: none;
    display: inline-block;
    *display: inline;
    vertical-align: top;
    width: 48%;
    margin-right: 2%;
    margin-bottom: 2em;
    border-radius: 3px;
    border: 2px solid #dcdcdc;
    background-color: #f1f1f1;
}

@media (min-width: 450px) {
    #paymentMethod li {
        width: 31%;
    }
}
.ieOld #paymentMethod li {
    width: 31%;
}

@media (min-width: 1024px) {
    #paymentMethod li {
        width: 18%;
    }
}

#paymentMethod li:nth-child(5n + 5) {
    margin-right: 0;
}

#paymentMethod li input {
    width: auto;
    margin: 20px 10px 20px 20px;
}

#paymentMethod li label {
    padding: 20px 20px 20px 0;
    font-size: 15px;
    font-weight: bold;
    color: #2a336b;
    cursor: pointer;
    white-space: nowrap;
}

.payment-description {
    display: block;
    padding: 1em;
    line-height: 1.6em;
    background-color: #fff;
}

#s-page-shipping-methods .payment-description {
    display: none;
}

.payment-description p {
    margin-bottom: 0;
}

.payment-description .method-ideal,
.payment-description .method-paypal {
    position: absolute;
    top: 20px;
    right: 15px;
}

.payment-description .method-ideal {
    top: 12px;
}

/**
 *    Shipping method
 */

#shippingMethod {
    overflow: visible;
}

/** clearFix */
#shippingMethod::after {
    content: '';
    display: table;
    clear: both;
}

#shippingMethod li {
    float: none;
}

#shippingMethod li label {
    margin-right: 1em;
    width: auto;
}

#shippingMethod .payment-description {
    position: relative;
    display: inline-block;
    padding: 0;
    width: 250px;
}

#shippingMethod .payment-description::before {
    content: 'i';
    display: inline-block;
    vertical-align: top;
    width: 1.3em;
    border-radius: 50%;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    background-color: #ff3b00;
}

#shippingMethod .payment-description p {
    position: absolute;
    display: none;
    bottom: 2.1em;
    width: 250px;
    margin-bottom: 0;
    padding: 5px 9px;
    border-radius: 3px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #fff;
    background-color: rgba(30, 30, 30, 0.9);
}

#shippingMethod .payment-description--visible p {
    display: block;
}

#shippingMethod .payment-description p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1.5em;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 5px solid rgba(30, 30, 30, 0.9);
}

/**
 * order-history
 */

.order-history caption a {
    display: block;
    padding-left: 35px;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    color: #fff;
    background: transparent url(../img/bg-webshop-sprite.png) no-repeat 0 -717px;
}

.order-history.active caption a {
    background-position: 0 -767px;
}

.reference-id {
    font-weight: 400;
}

.order-history .reference {
    margin-left: 30px;
}

table.order-history tfoot {
    display: table-footer-group;
}

.order-history .shipping-address td {
    padding: 20px 30px;
}

.order-history .shipping-address h3 {
    margin: 0 0 10px;
}

.order-history .order-date {
    padding-left: 30px;
}

.order-history {
    font-weight: 300;
}

.order-history .order-number,
.order-history .order-date span {
    font-weight: 600;
}

table.order-history td {
    vertical-align: middle;
}

table.order-history td.price {
    font-weight: bold;
    color: #87b726;
}

/**
 * form-columns
 */

.form-column-container td {
    display: block;
}

#lc_login,
#rc_nologin {
    background-color: #f2f2f2;
}

@media (min-width: 568px) {
    .form-column-container td {
        width: 50%;
        display: table-cell;
    }

    #lc_login,
    #rc_nologin {
        border: 1em solid #fff;
        background-color: #f2f2f2;
    }
}

@media (min-width: 768px) {
    #lc_login,
    #rc_nologin {
        border-width: 2em;
    }
}

form.has-pages .form-column-container fieldset {
    margin-top: 2em;
    padding: 1em;
}

table#cc_login + div.submit {
    display: none;
}

fieldset#s_login .field-has-empty-value {
    font-size: .9em;
    text-align: right;
}

form.has-pages .form-column-container input[type='text'],
form.has-pages .form-column-container input[type='password'] {
    width: 98%;
}

#orderSubmitButton {
    margin-bottom: 1em;
}

/**
 * visibility
 */

table.order-history thead,
table.order-history tbody,
table.order-history tfoot {
    display: none;
}

table.order-history.active thead {
    display: table-header-group;
}

table.order-history.active tbody {
    display: table-row-group;
}

table.order-history.active tfoot {
    display: table-footer-group;
}

@media screen and (max-width: 768px) {
    #shopping-cart legend {
        padding: 20px 0 10px;
    }

    /**
     * shopping cart meta actions
     */

    .shopping-cart-meta-actions {
        display: block;
        margin-bottom: 20px;
    }

    .shopping-cart-meta-actions li {
        display: block;
        float: none;
        border-right-width: 0;
    }

    .shopping-cart-meta-actions li:last-child {
        position: static;
        top: 0;
    }

    li.quotation-sales a {
        display: block;
    }

    /**
     * shopping cart steps
     */
    form.has-pages ul.form-bc {
        padding: .5em 0;
    }

    form.has-pages ul.form-bc li.processed-page span,
    form.has-pages ul.form-bc li.current-page {
        color: #fff;
    }

    form.has-pages ul.form-bc li {
        display: list-item;
        float: none;
        margin-left: 30px;
        padding-right: 0;
        background: transparent none;
    }

    form.has-pages ul.form-bc li.last {
        border-right-width: 0;
    }

    form.has-pages ul.form-bc li span,
    form.has-pages ul.form-bc li.last span {
        display: inline-block;
        *display: inline;
        min-width: 90px;
        float: none;
        height: auto;
        font-size: 13px;
        padding: 7px 28px 7px 0;
        line-height: 1.1em;
    }

    form.has-pages ul.form-bc li span,
    form.has-pages ul.form-bc li.last span {
        background-position: 100% -351px;
    }


    form.has-pages ul.form-bc li.current-page span {
        background-position: 100% -391px;
    }

    form.has-pages ul.form-bc li.processed-page span {
        background-position: 100% -801px;
    }

    /**
     * shopping cart
     */
    table.shoppingcart th,
    .order-history .order-date {
        display: none;
    }

    .order-history .reference {
        margin-left: 10px;
    }

    table.shoppingcart tbody {
        border-bottom-width: 0;
    }

    table.shoppingcart tbody tr {
        position: relative;
        display: block;
        margin-bottom: 1em;
        padding-bottom: .5em;
        border-bottom: 2px solid #dcdcdc;
    }

    table.shoppingcart tbody tr:last-child {
        margin-bottom: 0;
        border-bottom-width: 0;
    }

    table.shoppingcart td.sc-product-image,
    table.shoppingcart .sc-attr-nr,
    table.shoppingcart td.product-description,
    table.shoppingcart td.number-of-products,
    table.shoppingcart td.price-per-piece,
    table.shoppingcart td.price,
    table.shoppingcart td.sc-buttons,
    .shipping-address td {
        display: block;
    }

    .shoppingcart tbody tr:nth-child(2n) {
        background-color: transparent;
    }

    table.shoppingcart .sc-product-image,
    table.shoppingcart td.product-description,
    table.shoppingcart td.price-per-piece {
        background-color: #f1f1f1;
    }

    table.shoppingcart td.sc-buttons {
        padding: 0;
    }

    table.shoppingcart td.sc-buttons a.button {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 3px;
        background-color: #ffffff;
        background-position: 10px -670px;
    }

    table.shoppingcart td.number-of-products,
    table.shoppingcart td.sc-times,
    table.shoppingcart td.packaging-unit,
    table.shoppingcart td.sc-is,
    table.shoppingcart td.sc-number-of-products {
        display: inline-block;
        *display: inline;
        text-align: left;
    }

    table.shoppingcart td.number-of-products {
        padding-left: 10px;
        padding-right: 10px;
    }

    table.shoppingcart .sc-attr-nr:before,
    table.shoppingcart td.number-of-products:before,
    table.shoppingcart td.price-per-piece:before,
    table.shoppingcart td.price:before {
        display: inline-block;
        *display: inline;
        content: attr(data-th)": ";
        font-weight: bold;
        width: 8.5em;
    }

    table.shoppingcart.last tfoot > tr.totals.total-price-category {
        border-top: 2px solid #d9d0cd;
    }

    table.shoppingcart.last tfoot,
    table.shoppingcart.last tfoot tr {
        display: block;
        width: 100%;
    }

    table.shoppingcart.last tfoot td {
        display: block;
        float: left;
        width: 50%;
        box-sizing: border-box;
    }

    table.shoppingcart.last tfoot td:first-child {
        display: none;
    }

    /** Exception: do show the gift cart coupon cell in the last row */
    table.shoppingcart.last tfoot tr:last-child .gift-cart-coupon {
        display: block;
        min-height: 70px;
    }

    table.shoppingcart.last tfoot tr:last-child td {
        background-color: #fff;
    }

    /** Only no border-top on mobile for .vgm-ws-price when it's in the last-row (not always the case) */
    table.shoppingcart.last tfoot tr:last-child .vgm-ws-price {
        border-top: 0;
    }

    table.shoppingcart.last tfoot td.price:before {
        display: none;
    }

    #gift-coupon {
        max-height: none;
    }

    /**
     * form elements
     */

    /*.webshop-shopping-cart div.submit button,
    .webshop-shopping-cart button,
    #content #recalculatePrice {
        line-height: 20px;
        margin-bottom: 0;
        padding: 10px 25px;
    }*/

    form.has-pages div.field {
        margin-left: 0;
    }

    a.webshop-back-to-shop {
        top: -73px;
        right: 0;
    }

    #shopping-cart #s-page-details,
    #shopping-cart #s-page-details-address {
        width: 100%;
    }

    div.address-row input.address-street,
    div.address-row input.address-town {
        width: 8em;
    }

    div.address-row input.address-number {
        width: 3em;
    }

    #s-page-details-address .address-row label {
        float: none;
    }

    #s-page-details-address input.address-field {
        width: 80%;
    }
}

/**
 * .
 * ------------------------------------------------
 */

.productDetails__relatedProducts {
    padding: 0 1em;
}

.productDetails__relatedProducts > h3 {
    padding-left: 1%;
}

.related-product-list li {
    width: 48%;
    margin: 0 1% 1em;
}

.related-product-list li h3 {
    font-size: 1em;
}

.related-product-list .productList__thumb {
    min-height: 0;
}

@media (min-width: 550px) {
    .related-product-list li {
        width: 31%;
    }
}

@media (min-width: 768px) {
    .related-product-list li {
        width: 23%;
    }
}

@media (min-width: 1024px) {
    .related-product-list li {
        width: 18%;
    }
}
.ieOld .related-product-list li {
    width: 18%;
}

@media (min-width: 1200px) {
    .related-product-list li {
        width: 14.5%;
    }
}
