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

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

/**
 * input fields
 */

/* 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: 32px;
    width: 32px;
    float: left;
    text-indent: -999em;
	background: transparent url(../img/bg-webshop-sprite.png) no-repeat 11px -668px;
}

.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 .inner-button,
#shopping-cart-buttons_next .inner-button {
	background: transparent url(../img/bg-webshop-sprite.png) no-repeat 100% -852px;
	padding-right: 15px;
}

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

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

#shopping-cart-buttons_previous:hover .inner-button {
	color: #cc3242;
}

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

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

/*
	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;
	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;
	color: #29336b;
}

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

table.shoppingcart thead th {
	background-color: #f1f1f1;
}

/* Caption */
table.shoppingcart caption {
	margin: 0;
	padding: 10px 15px;
	border-bottom: 2px solid #d9d0cd;
	border-radius: 6px 6px 0 0;
	color: #2A346C;
	font-weight: 600;
	background-color: #E6E0DE;
}

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

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

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

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

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

table.shoppingcart th.buttons {
	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: #f1f1f1;
}

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 */
td.product-description {
	color: #5d9cec;
}

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

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

.price-per-piece .regular {
	font-size: 12px;
	text-decoration: line-through;
}

.price-per-piece .action {
	float: left;
	margin-right: 5px;
}

/** 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;
	font-size: 12px;
	border-top: 1px solid #D5D5CB;
}

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

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

/**
 * Total price summary
 */

table.shoppingcart.last tfoot {
	border-top: 20px solid #f1edee;
}

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

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

table.shoppingcart tfoot tr td:first-child {
	border-top-width: 0;
}

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

/**
 * gift-coupon
 */

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

#gift-coupon {
	padding-bottom: 0;
	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: 9px;
	padding-bottom: 9px;
}

#gift-coupon button {
	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 {
	height: auto;
	margin: 0 0 10px;
	border: 2px solid #e6e0de;
	border-radius: 3px;
	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;
	border-right: 2px solid #dcdcdc;
	background-image: none;
}

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

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

form.has-pages ul.form-bc li span,
form.has-pages ul.form-bc li.last span {
	padding: 10px 30px 10px 10px;
	height: 32px;
	line-height: 32px;
	color: #c4ba98;
	background: transparent url(../img/bg-webshop-sprite.png) no-repeat 100% -340px;
}

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

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

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

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

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

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

#s-page-details-address:after {
	content: "";
	border-top: 2px solid #dcdcdc;
	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;
	margin-top: 25px;
	width: 48%;
	vertical-align: top;
}

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

#shopping-cart div.fieldinput div.fieldinput {
	display: inline-block;
	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: #29336b;
}

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

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

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

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

/*
	Order history
	--------------------------------------------------
*/
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 {
	text-align: right;
	white-space: nowrap;
}

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

/**
 * .webshop compact shopping cart
 */

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

.shopping-cart-compact h3 {
	position: absolute;
	left: -999em;
}

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

.mw-scs-number-of-articles {
	display: inline-block;
	min-width: calc(24px - .8em);
	height: 24px;
	margin-left: 2px;
	padding: 0 .4rem;
	border-radius: 50%;
	font: normal 16px/24px monospace;
	text-align: center;
	color: #fff;
	background-color: #ed5564;
}

.shopping-cart-compact .total-price {
	color: #87b625;
	font-weight: bold;
}

@media (min-width: 1000px) {
	.site-quicklinks .mw-scs-number-of-articles {
		position: absolute;
		top: -8px;
		right: -10px;
	}

	.site-quicklinks .shopping-cart-compact a {
		display: block;
		color: #2D4667;
	}
}

/** IE versions that don't support media queries */
.ie7 .mw-scs-number-of-articles,
.ie8 .mw-scs-number-of-articles {
	position: absolute;
	top: -5px;
	right: -5px;
}

.ie7 .shopping-cart-compact a,
.ie8 .shopping-cart-compact a {
	padding-left: 30px;
	background-position: 13px 0;
}

/**
 * paymentMethod
 */

#paymentMethod li {
	position: relative;
	display: inline-block;
	width: 30%;
	margin-right: 20px;
	border-radius: 3px;
	border: 2px solid #dcdcdc;
	background-color: #f1f1f1;
}

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

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

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

.payment-description {
	display: block;
	padding: 20px;
	min-height: 290px;
	line-height: 1.6em;
	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 caption a {
	display: block;
	padding-left: 35px;
	font-size: 14px;
	font-weight: 300;
	text-decoration: none;
	color: #2a346c;
	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;
}

/**
 * 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: 568px) {
	#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 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.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 .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-delete {
		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;
		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;
		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;
	}

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

}

/*
	Webshop product search
	--------------------------------------------------
*/

/**
 * #webshop-search
 */

#webshop-product-search-sidebar {
	height: 41px;
	border: 2px solid #fff;
	border-radius: 6px;
	background: #f1eded;
}

#webshop-product-search-sidebar fieldset {
	position: relative;
	margin-bottom: 0;
}

#webshop-product-search-sidebar fieldset:before {
	position: absolute;
	left: 10px;
	top: 0;
	margin-right: 10px;
	font: normal 1.4em/32px "akb", sans-serif;
	content: "\e812";
	color: #5D9CEC;
}

#webshop-product-search-sidebar label {
	position: absolute;
	left: -999em;
}

#webshop-product-search-sidebar input {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	padding: 8px 110px 8px 40px;
	border: 0;
	background: #f1eded;
}

#webshop-product-search-sidebar button {
	position: absolute;
	top: 0;
	right: 0;
	height: 41px;
	width: 100px;
	padding: 0;
	border-radius: 0 4px 4px 0;
	font-family: "allerbold", sans-serif;
	color: #fff;
	background: #ED5564;
}
