/*
Theme Name: Medelix

WooCommerce styles override

Shop tables
*/
table.shop_table_responsive thead {
	display: none;
}

table.shop_table_responsive tbody th {
	display: none;
}

table.shop_table_responsive tr td {
	display: block;
	text-align: left;
	clear: both;
}
table.shop_table_responsive tr td.actions{
	text-align:right;
}
.cart_totals table.shop_table_responsive tr td{
	text-align:right;
}
.cart_totals table.shop_table_responsive tbody th{
	text-align:left;
}
.woocommerce-shipping-methods li{
    list-style:none;
}
li > label{margin-left:0.5em;}

table.shop_table_responsive tr td::before {
	content: attr(data-title) ": ";
	float: left;
}

table.shop_table_responsive tr td.product-remove a {
	text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
	display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
	display: none;
}

table.shop_table_responsive tr td.download-actions .button {
	display: block;
	text-align: center;
}

@media screen and (min-width: 48em) {

	table.shop_table_responsive thead {
		display: table-header-group;
	}

	table.shop_table_responsive tbody th {
		display: table-cell;
	}

	table.shop_table_responsive tr td {
		display: table-cell;
	}

	table.shop_table_responsive tr td::before {
		display: none;
	}
}

/**
 * Products
 */
ul.products {
	margin: 0;
	padding: 0 0 4em;
        width:100%;
        display:flex;
        justify-content:space-evenly;
        flex-direction:column;
        position:relative;
        z-index:10;
        align-items:center;
}

ul.products li.product {
	list-style: none;
	position: relative;
	margin-bottom: 2em;
        width:90%;
        max-width:500px;
}
.woocommerce-product-details__short-description{
    text-align:justify;
    color:#404040;
}
.woocommerce-product-details__short-description:after{
    content:"";
    width:100%;
    height:1px;
    background:white;
    display:block;
    margin-bottom:1em;
}
a.woocommerce-loop-product__link .price{
    display:block;
    text-align:center;
}
li.type-product a.add_to_cart_button, .woocommerce-message .button.wc-forward, a.wc-forward, button#place_order{
    position:relative;
    color: #DBB157;
    background: #484d27;
    margin: 1em auto;
    padding: 0.8em 0.5em;
    text-align: center;
    border: 1px solid;
    width: 50%;
    text-decoration: none;
    display: block;
    box-shadow: #dbb157 0px 0px 2px;
    transition: all 0.3s ease-in-out;
}
li.type-product a.add_to_cart_button::after, .woocommerce-message .button.wc-forward::after, a.wc-forward::after{
    content:"";
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top:0;
  left:0;
  opacity: 0;
    box-shadow: #DBB157 0px 0px 12px;
    opacity:0;
    transition: opacity 0.3s ease-in-out;
}
li.type-product a.add_to_cart_button:hover, .woocommerce-message .button.wc-forward:hover, a.wc-forward:hover{
    scale:1.1;
}
li.type-product a.add_to_cart_button:hover::after, .woocommerce-message .button.wc-forward:hover::after, a.wc-forward:hover::after{
    opacity: 1;
}
.cart button{
    color: #DBB157;
    background: #484d27;
    margin:1em auto;
    padding: 0.8em 1em;
    text-align: center;
    border: 1px solid;
    text-decoration: none;
    box-shadow: #dbb157 0px 0px 8px;
    cursor: pointer;
}
.woocommerce-Price-amount{
    font-weight:900;
}
ul.products li.product img {
	display: block;
        margin:0 auto;
}

h2.woocommerce-loop-product__title{
    text-align:center;
}

ul.products li.product .button {
	display: block;
}

ul.wc_payment_methods, ul.wc_payment_methods li{
    list-style: none;
}

@media screen and (min-width: 48em) {

	ul.products li.product.first {
		clear: both;
	}

	ul.products li.product.last {
		margin-right: 0;
	}

}

/**
 * Single product
 */
.single-product div.product {
	position: relative;
        display:flex;
        flex-wrap:wrap;
        max-width:1000px;
        margin:0 auto;
}
.single-product div.product > div.woocommerce-product-gallery, .single-product div.product > div.entry-summary{
    flex:50%;
}
.single-product div.product > div.woocommerce-product-gallery .woocommerce-product-gallery__image img {width:100%;}
.single-product div.product > div.woocommerce-tabs, .single-product div.product > div.related.products{
    flex:100%;
}

.single-product div.product .woocommerce-product-gallery {
	position: relative;
	float: left;
}

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

.woocommerce-terms-and-conditions-wrapper a{
    text-decoration: underline;
}
/**
 * Checkout
 */
@media screen and (min-width: 768px) {

/*	.col2-set .form-row-first {
	
		margin-right: 3.8%;
	}
*/
	.col2-set .form-row-last {
	
		margin-right: 0;
	}
/*
	.col2-set .form-row-first,
	.col2-set .form-row-last {
		width: 48.1%;
	}
*/
}

p.form-row {
	display: flex;
	flex-direction: column;
}
p.form-row input{width:100%;}

.shop_table.order_details{
	text-align:right;
}
.shop_table.order_details th, .shop_table.order_details td {
  padding: 0.5em;
}
	
/**
 * 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;
}

#customer_details{
    display:flex;
    justify-content:space-between;
    flex-direction:column;
}

.shop_table thead {
    text-align:left;
}
.shop_table .cart_item{
    text-align:right;
}
.shop_table tfoot{
    text-align:right;
}

/* turned off on 28.10.2025 - zle to vyzeralo
.shop_table thead th, .shop_table thead td{
    padding:1em;
}
*/

.shop_table tfoot tr.cart-subtotal td, .shop_table tfoot tr.cart-subtotal th{
    padding-top:1em;
}
.shop_table tfoot tr.order-total td, .shop_table tfoot tr.order-total th{
    padding-top:1em;
}

/**
 * Star rating
 */
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	width: 5.3em;
	font-family: star;
	font-weight: 400;
}

.star-rating::before {
	content: "\53\53\53\53\53";
	opacity: 0.25;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #4169e1;
}

p.stars a {
	position: relative;
	height: 1em;
	width: 1em;
	text-indent: -999em;
	display: inline-block;
	text-decoration: none;
	margin-right: 1px;
	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.25;
}

p.stars a:hover ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars:hover a::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
        flex-direction:row;
        display:flex;
        font-size:1.4em;
}

.woocommerce-tabs ul.tabs li {
	display: block;
	margin: 0;
	position: relative;
        margin-right:2em;
        border-bottom:1px solid #484d27;
}

.related.products{
    border-top:1px solid #484d27;
    width:100%;
}

.woocommerce-tabs ul.tabs li a {
	padding: 1em 0 0.3em;
	display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
	margin: 1em 0;
        font-size:2em;
        text-shadow: 2px 2px 0px rgba(73, 78, 39, 0.4);
}

.related.products h2, h1.product_title{
    text-shadow: 2px 2px 0px rgba(73, 78, 39, 0.4);
    font-size:2em;
}

.related.products h2{
    font-size:1.5em;
}

/**
 * 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-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	clear: both;
}

.posted_in{
    display:none;
}

.woocommerce-error {
	background-color: #e2401c;
}

.demo_store {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 1em;
	background-color: #3d9cd2;
	z-index: 9999;
}

@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);
	}
        #customer_details{flex-direction:row;}
	.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%;
}

@media screen and (min-width: 58em){
    ul.products {
        flex-direction:row;
        align-items:stretch;
        flex-wrap:wrap;
        max-width:1100px;
    }
    ul.products:after{
        background-position-x:100%;
    }
    ul.products li.product {
        list-style: none;
        position: relative;
        margin-bottom: 2em;
        width:44%;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
    }
}

p.form-row.form-row-wide{
    display:flex;
    flex-direction:column;
}
.password-input{position:relative;}
button.show-password-input{
	padding:0.5em 1em 0.4em;
	position:absolute;
	right:0;
}
.show-password-input:before {
    content: "Zobraziť heslo";
}
p.form-row .woocommerce-form__label-for-checkbox input, p.form-row .checkbox input{width:auto;}
.woocommerce-notices-wrapper{outline:none;}
input[type="radio"]:checked+label { font-weight: bold; }
#customer_details{
column-gap:2em;}
#customer_details .col-1, #customer_details .col-2{
	flex:1;
}
.onsale{
	position: absolute;
    color: #c17a00;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1px;
}
