/*
 Theme Name:   Kantosenmetalli Woo
 Template:     kantosenmetalli
*/
/* prevent original theme from overwriting woo's styles */
:root{
    --wp--preset--font-size--medium: 1.5rem;
}
.woocommerce-order-received .col-1, .woocommerce-order-received .col-2, .woocommerce-account .col-1, .woocommerce-account .col-2{
    max-width: none !important;
    padding-right: revert !important;
    padding-left: revert !important;
}
.woocommerce-account{
    line-height: revert !important;
}
.woocommerce-account .woocommerce-form{
    margin: 1em 0 !important;
}
.woocommerce form .password-input, .woocommerce-page form .password-input{
    width: 100%;
}
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title, .woocommerce-account h2 {
    font-size: revert !important;
    line-height: revert !important;
}
/* product page */
.woocommerce-product-gallery img {
    max-height: 600px !important; 
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-page .variations select{
/* 	padding-left: revert; */
	border-radius: 5px;
	border-width: 2px;
	padding-top: revert;
	padding-bottom: revert;
}
.woocommerce-page .wrap, .woocommerce-account .wrap{
	font-size: inherit;
    line-height: revert;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt{
	background: #549580 !important;
/* 	background: linear-gradient(230deg, #549580 0, #308675 100%) !important; */
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #549580;
    font-size: 2em;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
    color: #549580;
}
.woocommerce .quantity .qty {
    line-height: 1.85em;
}
.woocommerce-product-attributes-item.woocommerce-product-attributes-item--dimensions{
    display: none;
}
/* product listing */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
	min-height: 420px
}
.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3{
	line-height: 1.2em
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #549580;
    font-size: 1.2em;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button{
	background-color: #549580;
	color: white;
    width: 100%;
}
.woocommerce-page .products .button{
    position: absolute;
	bottom: 0;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover{
    background-color: #59b396 !important;
    text-decoration: none;
    background-image: none;
    color: white;
}
.woocommerce-account .woocommerce-button{
    margin-top: 1em !important;
}
.woocommerce span.onsale{
	background-color: #549580;
	padding: 0;
}
/* cart */
.wc-block-components-button:not(.is-link){
    background-color: #549580;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease !important;
}
.wc-block-components-button:not(.is-link):hover{
    background-color: #59b396 !important;
}

/* media queries */
/* font sizes */
.woocommerce-page .h1,.woocommerce-page h1, .woocommerce-checkout h1 {
    font-size: 2.25rem
}

@media (max-width: 1200px) {
    .woocommerce-page .h1,.woocommerce-page h1, .woocommerce-checkout h1 {
        font-size:calc(1.35rem + 1.2vw)
    }
}

@media (min-width: 768px) {
    .woocommerce-page .h1,.woocommerce-page h1, .woocommerce-checkout h1 {
        font-size:2.8125rem;
        line-height: 3.1875rem;
    }
}

@media (min-width: 992px) {
    .woocommerce-page .h1,.woocommerce-page h1, .woocommerce-checkout h1 {
        font-size:2.25rem;
        line-height: 3.125rem
    }
}

.woocommerce-page .h2,.woocommerce-page h2, .woocommerce-checkout h2 {
    --wp--preset--font-size--medium: 1.875rem;
    font-size: 1.875rem;
}
.wc-block-components-totals-item__label, .wc-block-components-checkout-order-summary__title-text {
    font-size: 1.5rem;
}

@media (max-width: 1200px) {
    .woocommerce-page .h2,.woocommerce-page h2, .woocommerce-checkout h2 {
        --wp--preset--font-size--medium: calc(1.3125rem + .75vw);
        font-size:calc(1.3125rem + .75vw);
    }
    .woocommerce-checkout h2, .wc-block-components-totals-item__label, .wc-block-components-checkout-order-summary__title-text {
        font-size: calc(1.1125rem + .75vw);
    }
}

@media (min-width: 576px) {
    .woocommerce-page .h2,.woocommerce-page h2, .woocommerce-checkout h2 {
        --wp--preset--font-size--medium: 1.5rem;
        font-size: 1.5rem;
        line-height: 0.875rem;
    }
    .woocommerce-checkout h2, .wc-block-components-totals-item__label, .wc-block-components-checkout-order-summary__title-text {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .woocommerce-page .h2,.woocommerce-page h2 {
        --wp--preset--font-size--medium: 2rem;
        font-size:2rem;
        line-height: 2.5rem
    }
    .woocommerce-checkout h2, .wc-block-components-totals-item__label, .wc-block-components-checkout-order-summary__title-text {
        font-size: 1.2rem;
    }
}

.h3,h3 {
    word-break: break-word;
    font-size: 1.25rem
}

@media (min-width: 768px) {
    .h3,h3 {
        font-size:1.25rem;
        line-height: 1.5rem
    }
}

.woocommerce-column--shipping-address h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}