/**
 * @author:	Tim van Schie
 * @module: mod_webshop2
 * @about: 	webshop-shopping-cart.css - Layout of the webshop shoppingcart (checkout process)
 */

/*
	Defaults
	--------------------------------------------------
*/

a img {
	border: 0;
}

.price .regular {
	text-decoration: line-through;
}

#art_70041 h2 {

	font-size: 32px;
}

/**
 * input fields
 */

.webshop-shopping-cart .proFormText,
.webshop-shopping-cart select,
.webshop-shopping-cart textarea,
.webshop-shopping-cart input,
.webshop-shopping-cart .product-quantity {
	line-height: 1em;
}


/**
 * Buttons
 */

a.button-delete {
	display: block;
	height: 32px;
	width: 32px;
	float: right;
	text-indent: -999em;
	border-radius: .2em;
	background: #f1f1f1 url(../img/bg-webshop-sprite.png) no-repeat 11px -668px;
}

a.button-delete:hover {
	background-color: #ccc;
}

#shopping-cart-buttons #shopping-cart-buttons_next,
#shopping-cart-buttons .webshop-back-to-shop {
	float: right;
}

.webshop-back-to-shop {
	margin-right: .5em;
	padding: .5em 1em .5em 2em;
	border: 2px solid #ae1421;
	font-weight: bold;
	line-height: 1.5;
	text-decoration: none;
	background: transparent url(../img/bg-webshop-sprite.png) no-repeat 10px -1005px;
}

#shopping-cart-buttons_next {
	margin-right: 0;
	transition: background-color .1s linear;
}

#shopping-cart-buttons_previous .inner-button,
#shopping-cart-buttons_next .inner-button {
	background: transparent url(../img/bg-webshop-sprite.png) no-repeat 100% -857px;
	padding-right: 15px;
}

#shopping-cart-buttons_previous span.inner-button {
	padding-left: 15px;
	padding-right: 0;
	background-position: 0 -1017px;
}

#shopping-cart-buttons_previous {
	color: #ae1421;
	background-color: #fff;
}

#shopping-cart-buttons_previous .inner-button,
#shopping-cart-buttons_next .inner-button {
	background: transparent url(../img/bg-webshop-sprite.png) no-repeat 100% -857px;
}

#shopping-cart-buttons_next:hover .inner-button {
	color: #ae1421;
	background-position: 100% -896px;
}

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

.shopping-cart-meta-actions {
	display: inline-block;
	margin: 0 0 12px;
	list-style: none;
	border: 2px solid #dbdbdb;
	border-radius: 3px;
	background-color: #f1f1f1;
}

.shopping-cart-meta-actions li {
	display: block;
	float: left;
	border-right: 2px solid #dbdbdb;
}

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

.shopping-cart-meta-actions a[href*="pdfcatalogus/pdf"],
.shopping-cart-meta-actions a[onclick*="pdfcatalogus/mail"],
.shopping-cart-meta-actions a[href*="/bestellen"] {
	display: inline-block;
	height: 12px;
	padding: 20px 10px 20px 31px;
	font-size: 10px;
	line-height: 12px;
	font-weight: bold;
	color: #2a336b;
	background: #f1f1f1 url(../img/bg-webshop-sprite.png) no-repeat 13px 20px;
	-webkit-transition: background-color .3s ease;
	-moz-transition: background-color .3s ease;
	-ms-transition: background-color .3s ease;
	-o-transition: background-color .3s ease;
	transition: background-color .3s ease;
}

.shopping-cart-meta-actions a[onclick*="pdfcatalogus/mail"] {
	padding-left: 34px;
	background-position: 10px -1090px;
}

.shopping-cart-meta-actions a[href*="/bestellen"] {
	background-position: 10px -1140px;
}

.shopping-cart-meta-actions a:hover {
	text-decoration: none;
	background-color: #fff;
}

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

#s-page-products legend {
	display: none;
}

#s-page-products + div:not(.submit) {
	margin: 0 0 2em;
	padding: 1em;
	background-color: #f1f1f1;
}

#s-page-products + div:not(.submit) p {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	#s-page-products + div:not(.submit) {
		overflow: visible;
		position: relative;
	}
}

/**
 * Shopping cart - extra info block about shipping costs and delivery
 */

.shoppingcart-extra-order-info {
	font-weight: bold;
}

.shoppingcart-extra-order-info p {
	margin-bottom: 14px;
	display: inline-block;
	vertical-align: top;
	width: 50%;
}

.shoppingcart-extra-order-info p + p {
	text-align: right;
}

/** Don't show this block on the confirm-page */
#s-page-confirm-products .shoppingcart-extra-order-info {
	display: none;
}

/** Don't show this block a second time on the same page */
table + .shoppingcart-extra-order-info {
	display: none;
}

/**
 * Shopping cart table
 */

table.shoppingcart {
	width: 100%;
	margin: 0 0 1em 0;
	border-collapse: collapse;
}

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

table.shoppingcart caption {
	padding: .5em;
	color: #fff;
	background-color: #ae1421;
	font-weight: bold;
}

table.shoppingcart thead {
	background-color: #f2f2f2
}

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

.sub-total-price .price {
	display: inline-block;
}

/* Table headers */
table.shoppingcart th {
	font-size: .9em;
	font-weight: bold;
}

table.shoppingcart th.description {
	width: 450px;
}

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

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

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

table.shoppingcart tbody {
	border-bottom: 1px solid #929292;
}

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

/* Product description */
td.product-description span {
	display: block;
	color: #444;
}

.productDescription__promotionTitle {
	font-weight: bold;
}

.productDescription__productTitle {
	font-size: 90%;
}

/* Product amount */
#shopping-cart .webshop-shopping-cart input.product-quantity,
#shopping-cart input.product-quantity {
	width: 50px;
	font-weight: bold;
	text-align: center;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.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;
}

/**
 * Column width's
 */

@media (min-width: 768px) {
	.shoppingcart .scr,
	.shoppingcart .sc-product-image {
		width: 60px;
	}

	.shoppingcart .number-of-products {
		width: 55px;
	}

	.shoppingcart .sc-times {
		width: 40px;
	}

	.shoppingcart .price {
		width: 180px;
		text-align: right;
	}

	.shoppingcart .sc-buttons {
		width: 50px;
	}
}

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

table.shoppingcart td.sc-buttons {
	max-width: 30px;
}

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

table.shoppingcart tfoot {
	display: none;
}

table.shoppingcart.last tfoot {
	position: relative;
	display: table-footer-group;
}

table.shoppingcart.last tfoot tr {
    border-bottom: 1px solid #f2f2f2;
}

table.shoppingcart.last tfoot .total-price,
table.shoppingcart.last tfoot .total-price-vat {
    border: 0;
}

table.shoppingcart.last tfoot .total-price-vat {
    font-style: italic;
}

/* Total price */
tr.totals td.price {
	font-weight: bold;
}

tr.totals.total-price-vat td.price,
tr.total-price-deposit td.price,
tr.total-price-shipping-fee td.price,
tr.total-price-coupon-code td.price {
	font-weight: normal;
}

table.shoppingcart tr.total-price td {
	white-space: nowrap;
	font-size: 18px;
	font-weight: 700;
}

table.shoppingcart tr.total-price .price {
	color: #ae1421;
}

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

.total-price-coupon-code td {
    color: green;
}

/**
 * Total price summary
 */

table.shoppingcart.last tfoot .total-price-category {
	display: none;
}

/**
 * gift-coupon
 */

tr.totals.total-price-vat td:first-child {
	padding-top: 2px;
	padding-bottom: 2px;
	margin: 0;
}

#gift-coupon {
	padding-bottom: 0;
	margin-bottom: 0;
	font-size: 1rem;
	overflow: visible;
}

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

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

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

#gift-coupon button {
	margin-bottom: 0;
	line-height: 19px;
	vertical-align: bottom;
	background-color: #ae1421;
}

#gift-coupon button:hover {
	background-color: transparent;
}

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

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

form.has-pages fieldset {
	margin: 0;
	padding: 5px 0;
	border-width: 0;
	background-color: #fff;
}

/* form with pages: breadcrumbs */
form.has-pages ul.form-bc {
	height: auto;
	margin: 0 0 10px;
	border-top: 1px solid #cacaca;
	border-bottom: 1px solid #cacaca;
	background-color: #fff;
}

form.has-pages ul.form-bc li {
	padding-right: 20px;
	background: #fff url(../img/bg-webshop-sprite.png) no-repeat 100% -500px;
}

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

form.has-pages ul.form-bc li.current-page {
	background-position: 100% -440px;
	background-color: #f1f1f1;
}

form.has-pages ul.form-bc li.processed-page {
	background-position: 100% -560px;
	background-color: #f1f1f1;
}

form.has-pages ul.form-bc li span,
form.has-pages ul.form-bc li.last span {
	padding: 10px 30px 10px 10px;
	line-height: 32px;
}

/** Login or register page */
#lc_login input {
	width: 80%;
}

#rc_nologin #login_button_panel {
	margin-top: 1em;
	text-align: left;
}

/* form with pages: processed page */
form.has-pages ul.form-bc li.processed-page span {
	background: transparent url(../img/bg-webshop-sprite.png) no-repeat 100% -380px;
}

/* clear shopping-cart button */
div.clear-shopping-cart {
	display: none;
}

.webshop-back-to-shop {
	display: inline-block;

}

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

.form-column-container td {
	width: 50%;
}

#shopping-cart #s-page-details,
#shopping-cart #s-page-details-address,
#shopping-cart #s-extra-fields {
	display: inline-block;
	margin-top: 25px;
	width: 48%;
	vertical-align: top;
}

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

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

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

label[for='invoice_address'] {
	display: none !important;
}

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

#s-page-confirm-products label,
#s-page-confirm-your-details label,
#s-page-delivery-information label,
#s-page-confirm-address label,
#s-page-payment-methods label {
	font-weight: bold;
}

#s-page-confirm-address .first > label {
	display: none;
}

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

#shopping-cart #s-page-details legend,
#shopping-cart #s-page-details-address legend,
#shopping-cart legend {
	margin-bottom: 0;
	font-size: 18px;
	font-weight: bold;
	color: #29336b;
}

#shopping-cart legend {
	padding-bottom: 16px;
}

#shopping-cart #s-page-details legend {
	padding-bottom: 16px;
}

/**
 * Webshop order history
 */

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

.webshop-order-history th:last-child,
.webshop-order-history td:last-child {
	display: none;
}

.webshop-order-history #iList2 td:nth-child(even) {
	font-weight: bold;
	background-color: #fff;
}

.webshop-order-history th:nth-child(4),
.webshop-order-history th:nth-child(6),
.webshop-order-history .webshop-order-total-price {
	text-align: right;
}

@media screen and (max-width: 650px) {
	.webshop-order-history #iList1 {
		margin-bottom: 0;
	}

	.webshop-order-history #iList2 tr {
		margin: 0;
		padding: 0;
		border-bottom: none;
	}

	.webshop-order-history #iList2 td {
		float: left;
		box-sizing: border-box;
		padding-left: 7px;
		width: 50% !important;
	}

	.webshop-order-history #iList2 td:last-child {
		display: none;
	}
}

@media screen and (min-width: 650px) {
	.webshop-order-history #iList1 {
		border-bottom: 0;
	}

	#section_one,
	#section_two {
		display: inline-block;
		vertical-align: top;
		width: 48%;
	}

	.webshop-order-history tbody tr {
		border-bottom: 1px solid #f2f2f2;
	}

	.webshop-order-history tbody .last {
		border-bottom: 0;
	}
}

/**
 * paymentMethod
 */

#paymentMethod li {
	position: relative;
	width: 100%;
    padding-bottom: 110px;
	margin-bottom: 1em;
	border-radius: 3px;
	border: 2px solid #dcdcdc;
	box-sizing: border-box;
	background-color: #f2f5f5;
}

#paymentMethod li input {
	margin: 1.6em 10px 20px 20px;
}

#paymentMethod li label {
	display: inline-block;
	padding: 20px 20px 20px 0;
	font-size: 15px;
	font-weight: bold;
	color: #2a336b;
	cursor: pointer;
}

#paymentMethod .payment-description {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 110px;
}

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

#paymentMethod .payment-description img {
    height: 70px;
    width: auto;
}

@media screen and (min-width: 500px) {
    #paymentMethod {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    #paymentMethod li {
        display: inline-block;
        width: calc(50% - 20px);
        margin-right: 20px;
        vertical-align: top;
    }

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

@media screen and (min-width: 650px) {
    #paymentMethod li {
        width: calc(50% - 20px);
    }

    #paymentMethod li:nth-child(2n + 2) {
        margin-right: 20px;
    }

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

@media screen and (min-width: 800px) {
    #paymentMethod li {
        width: calc(25% - 20px);
    }

    #paymentMethod li:nth-child(3n + 3) {
        margin-right: 20px;
    }

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

.payment-description {
	display: block;
	padding: 20px;
	background-color: #fff;
}

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

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

/**
 * order-history
 */

.order-history 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 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;
}

/**
 * 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-meta-actions a[href*="pdfcatalogus/pdf"],
	.shopping-cart-meta-actions a[onclick*="pdfcatalogus/mail"],
	.shopping-cart-meta-actions a[href*="/bestellen"] {
		display: block;
		padding: 10px 10px 10px 35px;
		background-position: 12px 10px;
	}

	.shopping-cart-meta-actions a[onclick*="pdfcatalogus/mail"] {
		background-position: 10px -1100px;
	}

	.shopping-cart-meta-actions a[href*="/bestellen"] {
		background-position: 10px -1150px;
	}

	#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 {
		float: none;
		border-right-width: 0;
	}

	/**
	 * shopping cart steps
	 */

	form.has-pages ul.form-bc li.processed-page,
	form.has-pages ul.form-bc li.current-page {
		background: transparent none;
	}

	form.has-pages ul.form-bc li {
		display: list-item;
		float: none;
		margin-left: 30px;
		padding-right: 0;
		list-style-type: decimal;
		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;
		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.processed-page span {
		background-position: 100% -393px;
	}

	/**
	* Shopping cart - extra info block about shipping costs and delivery
	*/

	.shoppingcart-extra-order-info p {
		display: block;
		width: auto;
	}

	.shoppingcart-extra-order-info p + p {
		text-align: left;
	}

	/**
	 * Shopping cart table
	 */

	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: 1px solid #929292;
	}

	table.shoppingcart td.product-description {
		font-weight: bold;
	}

	table.shoppingcart .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 td.sc-attr-nr,
	table.shoppingcart td.price-per-piece {
		background-color: #f1f1f1;
	}

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

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

	table.shoppingcart td.sc-product-image,
	table.shoppingcart td.product-description,
	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;
		text-align: left;
	}

	table.shoppingcart td.product-description {
		margin-right: 45px;
	}

	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;
		content: attr(data-th)": ";
		font-weight: bold;
		width: 8.5em;
	}

	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;
	}

	table.shoppingcart.last tfoot .total-price td:first-child {
		display: block;
        width: 100%;
	}

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

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

	/**
	 * form elements
	 */

	form.has-pages div.field {
		margin-left: 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%;
	}

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

.price-per-piece .regular {
	text-decoration: line-through;
	color: #888;
}

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

.shoppingcartCompactContainer {
	display: table-cell;
	vertical-align: middle;
	text-align: right;
	min-width: 150px;
}

.shoppingcartCompactContainer .article {
	position: relative;
	margin-bottom: 0;
}

.shopping-cart-compact h3 {
	display: none;
}

.shopping-cart-compact a {
	display: block;
	position: relative;
	margin-right: 10px;
	padding: 0 18px 0 0;
	text-decoration: none;
}

.shopping-cart-compact a:hover .total-price {
	text-decoration: underline;
}

.shopping-cart-compact .icon-cart {
	display: inline-block;
	width: 32px;
	height: 41px;
	font-size: 2.5em;
	transition: transform .2s ease-out;
	background: transparent url(../img/bg-shoppingcartCompact.png) no-repeat 0 0;
	background-size: 100%;
}

.shopping-cart-compact a:hover .icon-cart {
	position: relative;
	transform: scale(1.1);
}

.shopping-cart-compact .mw-scs-number-of-articles {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	min-width: 22px;
	height: 22px;
	padding: 0 .5em;
	border-radius: 2em;
	font-size: .9em;
	line-height: 1.7em;
	text-align: center;
	color: #fff;
	background-color: #505154;
}

.shopping-cart-compact a:hover .mw-scs-number-of-articles {
	background-color: #505154;
	transition: background-color .1s linear;
}

.shopping-cart-compact .total-price {
	display: inline-block;
	vertical-align: text-bottom;
	padding-top: .5em;
	padding-right: .3em;
	font-size: 1.2em;
	color: #505154;
}

@media (min-width: 1024px) {
	.shopping-cart-compact a {
		margin-right: 0;
	}
}
