/*
Theme Name: ms_membrasin

WooCommerce styles override
*/

/**
 * Shop tables
 */

div.shop_table_responsive .cart_item > div, div.shop_table_responsive .order-items > .order > div, div.shop_table_responsive .download-item > div {
	display: block;
	text-align: right;
	clear: both;
}

div.shop_table_responsive .cart_item > div::before, div.shop_table_responsive .order-items > .order > div::before, div.shop_table_responsive .download-item > div::before {
	content: attr(data-title) ": ";
	float: left;
	font-weight: bold;
	margin-right: 10px;
}

div.shop_table_responsive .cart_item > div.product-thumbnail::before,
div.shop_table_responsive .cart_item > div.product-remove::before,
div.shop_table_responsive .cart_item > div.actions::before,
div.shop_table_responsive .cart_item > div.download-actions::before {
	display: none;
}

div.shop_table_responsive .cart_item > div.download-actions .button {
	display: block;
	text-align: center;
}

@media screen and (min-width: 768px) {

	div.shop_table_responsive .cart_item > div, div.shop_table_responsive .order-items > .order > div, div.shop_table_responsive .download-item > div {
		text-align: left;
	}

	div.shop_table_responsive .cart_item > div::before, div.shop_table_responsive .order-items > .order > div::before, div.shop_table_responsive .download-item > div::before {
		display: none;
	}
}

/**
 * Products
 */
ul.products {
	margin: 0;
	padding: 0;
}

ul.products li.product {
	list-style: none;
	position: relative;
	margin-bottom: 2em;
}

ul.products li.product img {
	display: block;
}

ul.products li.product .button {
	display: block;
}

@media screen and (min-width: 48em) {

	ul.products li.product {
		width: 30.79667%;
		float: left;
		margin-right: 3.8%;
	}

	ul.products li.product.first {
		clear: both;
	}

	ul.products li.product.last {
		margin-right: 0;
	}

	ul.products.columns-1 li.product {
		float: none;
		width: 100%;
	}

	ul.products.columns-2 li.product {
		width: 48.1%;
	}

	ul.products.columns-3 li.product {
		width: 30.79667%;
	}

	ul.products.columns-4 li.product {
		width: 22.15%;
	}

	ul.products.columns-5 li.product {
		width: 16.96%;
	}

	ul.products.columns-6 li.product {
		width: 13.49333%;
	}
}

/**
 * Single product
 */
.single-product div.product {
	position: relative;
}

.single-product div.product .woocommerce-product-gallery {
	position: relative;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 2em;
	right: 1em;
	display: block;
	z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 1em;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	margin: 0;
	padding: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	float: left;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: 0.5;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
	width: 48.1%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
	width: 30.79667%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 22.15%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
	width: 16.96%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
	clear: both;
}

.stock:empty::before {
	display: none;
}

.stock.in-stock {
	color: #0f834d;
}

.stock.out-of-stock {
	color: #e2401c;
}

/**
 * Checkout
 */

.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1,.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
	max-width: unset;
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
	position: relative;
	margin: 0;
	padding: 0;
}

.site-header-cart .cart-contents {
	text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
	display: none;
}

.site-header-cart .product_list_widget {
	margin: 0;
	padding: 0;
}

/**
 * Star rating
 */
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	width: 101px;
	font-family: star;
	font-weight: 400;
}

.single .summary .star-rating { display: inline-block; }
.single .summary .woocommerce-review-link { margin-left: 15px; font-size: 16px; position: relative; top: -8px; }
.single .summary .woocommerce-product-rating .summary-review-count { margin-left: 3px; font-size: 16px; position: relative; top: -8px; }

.star-rating::before {
	content: "\53\A0\53\A0\53\A0\53\A0\53";
	opacity: 0.75;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	text-transform: lowercase;
	font-weight: 400;
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
	font-weight: 400;
}

.star-rating span::before {
	content: "\53\A0\53\A0\53\A0\53\A0\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #6F6F6F;
	font-weight: 400;
}

p.stars a {
	position: relative;
	height: 1em;
	width: 1em;
	text-indent: -999em;
	display: inline-block;
	text-decoration: none;
	margin-right: 1px;
	text-transform: lowercase;
	font-weight: 400;
}

p.stars a::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 1em;
	height: 1em;
	line-height: 1;
	font-family: star;
	content: "\53";
	color: #404040;
	text-indent: 0;
	opacity: 0.75;
	font-weight: 400;
}

p.stars a:hover ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.75;
	text-transform: lowercase;
	font-weight: 400;
}

p.stars:hover a::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
	text-transform: uppercase;
	font-weight: 400;
}

p.stars.selected a.active::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
	text-transform: uppercase;
	font-weight: 400;
}

p.stars.selected a.active ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.75;
	text-transform: lowercase;
	font-weight: 400;
}

p.stars.selected a:not(.active)::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
	text-transform: uppercase;
	font-weight: 400;
}

#reviews .review .star-rating { width: 106px; }

@media (max-width:767px) {
	.star-rating { width: 88px; }
	.single .summary .woocommerce-review-link {font-size: 14px;top: -6px; }
	#reviews .review .star-rating { width: 94px; }
}

@media (max-width:575px) {
	#reviews .review .star-rating, #reviews .review .star-rating::before { width: 79px; }
	#reviews .review .star-rating::before { content: "\53\53\53\53\53"; }
	#reviews .review .star-rating span::before { content: "\53\53\53\53\53"; }
}


/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
/*	padding: 0;*/
	text-align: left;
}

.woocommerce-tabs ul.tabs li {
	display: inline-block;
	margin: 0;
	position: relative;
}
.woocommerce-tabs ul.tabs li i { margin-left: 10px; font-size: 10px; line-height: 10px; vertical-align: super; }
.woocommerce-tabs ul.tabs li:not(.active) { background: #fff!important; }
.woocommerce-tabs ul.tabs li.active i::before { content: '\f078'; }

.woocommerce-tabs ul.tabs li a {
	padding: 30px;
	display: block;
	font-family: 'Troia-R-Regular'; text-transform: uppercase; font-size: 14px; line-height: 18px;
	text-decoration: none!important;
}

.woocommerce-tabs .panel h2:first-of-type {
	margin-bottom: 1em;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
	text-align: right;
}

.woocommerce-password-strength.strong {
	color: #0f834d;
}

.woocommerce-password-strength.short {
	color: #e2401c;
}

.woocommerce-password-strength.bad {
	color: #e2401c;
}

.woocommerce-password-strength.good {
	color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
	box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
	box-shadow: inset 2px 0 0 #e2401c;
}

.required {
	color: #f00;
}

/**
 * Notices
 */
.woocommerce-notices-wrapper {
/*	max-width: 1357px;*/
/*    margin-right: auto;*/
/*    padding: 0 15px;*/
/*    margin-left: auto;*/
	color: #fff;
	margin-bottom: 15px;
	text-align: center;
}
.woocommerce-cart .woocommerce-notices-wrapper, .woocommerce-checkout .woocommerce-notices-wrapper { padding: 0; }
.woocommerce-notices-wrapper a { color: #000; text-decoration: underline; display: block; }
.woocommerce-notices-wrapper a:hover { opacity: 0.8; }
.woocommerce-notices-wrapper ul { list-style: none; padding-left: 0; margin: 0; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	background-color: #feefdd;
	clear: both;
	padding: 20px 15px;
	color: #000;
}

.page-template-default #primary .woocommerce-message a,
.page-template-default #primary .woocommerce-info a,
.page-template-default #primary .woocommerce-noreviews a,
.page-template-default #primary .woocommerce-message a:visited,
.page-template-default #primary .woocommerce-info a:visited,
.page-template-default #primary .woocommerce-noreviews a:visited {
	color: #000;
}

.page-template-default #primary .woocommerce-message a:hover,
.page-template-default #primary .woocommerce-info a:hover,
.page-template-default #primary .woocommerce-error a:hover,
.page-template-default #primary .woocommerce-noreviews a:hover {
	opacity: 0.7;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background-color: transparent;
	color: #000;
	border: 1px solid #000;
}

.woocommerce-error {
	background-color: transparent;
	list-style: none;
	margin: 0;
	color: #e2401c;
	border: 1px solid #e2401c;
}
.page-template-default #primary .woocommerce-error a,
.page-template-default #primary .woocommerce-error a:visited { color: #e2401c; }

.woocommerce-checkout form.checkout.woocommerce-checkout .woocommerce-error { margin-bottom: 40px; }
.woocommerce-checkout .woocommerce-form-coupon-toggle { margin-top: 30px; }
.woocommerce-checkout .woocommerce-form.woocommerce-form-login.login, .woocommerce-checkout .checkout_coupon.woocommerce-form-coupon { padding-top: 25px; }

@media screen and (min-width: 48em) {

	/**
	 * Header cart
	 */
	.site-header-cart .widget_shopping_cart {
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 999999;
		left: -999em;
		display: block;
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	}

	.site-header-cart:hover .widget_shopping_cart,
	.site-header-cart.focus .widget_shopping_cart {
		left: 0;
		display: block;
	}
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
	margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
	text-align: right;
	line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
	float: left;
}

.widget_price_filter .ui-slider {
	position: relative;
	text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1em;
	height: 1em;
	cursor: ew-resize;
	outline: none;
	background: #4169e1;
	box-sizing: border-box;
	margin-top: -0.25em;
	opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
	margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
	box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	display: block;
	border: 0;
	background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
	height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
	height: 100%;
}

/*** Single product ***/
.single-product div.product .woocommerce-product-gallery { float: none!important; }

/*** Cart & Checkout Bootstrap -tyylit ***/

.title {
	text-transform: uppercase;
	font-weight: bold;
}
	.title > small {
		font-weight: 400;
		text-transform: none;
	}

.separator::before {
	content: "";
    display: block;
    border-bottom: 1px solid black;
}

.woocommerce-cart .form-row, .woocommerce-checkout .form-row, .woocommerce-account .form-row {
	margin-left: unset;
	margin-right: unset;
	display: block;
}

.woocommerce-checkout label > input {
	display: block;
}
	.woocommerce-checkout label > input[type="checkbox"] {
		display: inline-block;
	}

.woocommerce-form__label-for-checkbox, input[type="checkbox"] {
	cursor: pointer;
}

.woocommerce-checkout .woocommerce-button.button.woocommerce-form-login__submit {
	display: block;
}

.woocommerce-cart input[type="text"], .woocommerce-cart input[type="email"], .woocommerce-cart input[type="url"], .woocommerce-cart input[type="password"], .woocommerce-cart input[type="number"], .woocommerce-cart input[type="tel"], .woocommerce-cart textarea, .woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="email"], .woocommerce-checkout input[type="url"], .woocommerce-checkout input[type="password"], .woocommerce-checkout input[type="number"], .woocommerce-checkout input[type="tel"], .woocommerce-checkout textarea, .woocommerce-account input[type="text"], .woocommerce-account input[type="email"], .woocommerce-account input[type="url"], .woocommerce-account input[type="password"], .woocommerce-account input[type="number"], .woocommerce-account input[type="tel"], .woocommerce-account textarea{
	width: 100%;
}
.woocommerce-cart input[name="coupon_code"], .woocommerce-checkout input[name="coupon_code"] {
	max-width: 250px;
}

.woocommerce-cart .cart_totals {
	max-width: 600px;
	margin: 0 auto;
}

ul#shipping_method {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#shipping_method > li, #order_review #payment > ul > li { display: block;  position:relative; padding-left:25px; text-align:left; }
#shipping_method > li input, #order_review #payment > ul > li > input { display:block; position:absolute; left:0; top:6px; width: auto; }
#shipping_method label { cursor:pointer; display:block; }

.woocommerce-order-received .woocommerce-order-details {
	margin-bottom: 1.5em;
}

.woocommerce-cart .product-thumbnail img { width: 150px; }
.woocommerce-cart #shipping_method .woocommerce-Price-amount.amount { float: right; }
.woocommerce-cart .order-total .includes_tax { display: block; }

/*** Account Bootstrap ***/
/* Login/Registration */
.woocommerce-account .woocommerce-button.button.woocommerce-form-login__submit {
	display: block;
}

/* Dashboard/My Account */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.account-nav { border-left: 1px solid #000; }

.woocommerce-orders-table__cell-order-actions > a { margin-right: 8px; }
.woocommerce-orders-table__cell-order-actions > a:last-child { margin-right: 0; }

/* Edit Account */
.woocommerce-edit-account fieldset {
	padding: 0;
}

/* View Orders */
.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > section { margin-bottom: 20px; }
.woocommerce-orders-table__cell-order-actions > a { display: block; }

@media (max-width:991px) {
	.woocommerce-MyAccount-navigation ul {
		margin-bottom: 15px;
	}
	
	.account-nav { border-left: none; border-bottom: 1px solid #131C59; margin-bottom: 10px; }
	.woocommerce-MyAccount-navigation-link { display: inline-block; margin-right: 14px; margin-bottom: 10px; line-height: 1; }
}

@media (max-width:767px) {
	.woocommerce-account .order-titles, .woocommerce-account .download-titles {
		display: none;
	}

	.woocommerce-account .order-items .order, .woocommerce-account .download-items .download-item {
		margin-bottom: 15px;
	}
}

@media (min-width:320px) {
	#order_review #shipping_method li { padding-right:55px; }
	#shipping_method li label small { position:absolute; right:0; }
	#order_review #shipping_method li label > span { float:right; }
	#order_review #shipping_method li label:after { content:" "; display:block; clear:both; }
}

.woocommerce-cart-form__cart-item > .col-12 { padding-top:20px; }
.woocommerce-cart-form__cart-item > .col-12.product-thumbnail, .woocommerce-cart-form__quote-item > .col-12.product-thumbnail { padding-top:0px; }

.row.actions { padding: 54px 0 30px!important; }

/* TOIMITUS & MAKSU */

.col-12.cart-subtotal { margin-bottom:20px; }

#shipping_method > li, #order_review #payment > ul > li { display: block; position:relative; padding-left:25px; text-align:left; }
#shipping_method > li input, #order_review #payment > ul > li > input { display:block; position:absolute; left:0; top:2px; width: auto; }
#shipping_method > li label, #order_review #payment > ul > li > label { display:block; }

#shipping_method li { padding-right:60px; }
#shipping_method li label > span { display:block; position:absolute; right:0; top:0; }
#shipping_method li label:after { content:" "; display:block; clear:both; }

@media(min-width:1200px) {
	#shipping_method { margin-top:0; padding-left: 0px; }
}

@media(max-width:991px) {
	#shipping_method > li > label { font-size:14px; }
}

/*** Muut tyylit ***/
.pswp__bg { background: rgba(0, 0, 0, 0.8); }
.pswp__caption { display: none; }

#customer_details .woocommerce-billing-fields > h3:first-of-type::before { content: '1. '; }
#order_review_heading::before { content: '2. '; }
#carrier-agent-heading::before { content: '3. Valitse '; }

/*Media queries*/
@media (max-width:767px) {
	.woocommerce-tabs ul.tabs li a { padding: 18px; font-size: 12px; line-height: 16px; }
}
@media (max-width:575px) {
	.woocommerce-tabs ul.tabs { padding: 0; }
}
