/*
Theme Name:     Melli.fi teema
Theme URI:      n/a
Template:       kadence
Author:         Mainostoimisto Sitrusmedia Oy
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
.kt-inside-inner-col> .wp-block-cover {
    height: auto;
}

/* Ostoskorista turha teksti pois */
.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-destination {
    display: none;
}

/* Etusivun tuotekaruselli */
.kb-splide .splide__arrow {
    align-items: center;
    top: 30% !important;
}

.kb-splide .splide__arrow--next {
    right: -2em !important;
}

.kb-splide .splide__arrow--prev {
    left: -2em !important;
}

/* Verkkokaupan lisää ostoskoriin ja valitse vaihtoehdoista painikkeet pois kauppa ja osastosivuilta */
.woocommerce ul.products.woo-archive-btn-button .product-action-wrap .button:not(.kb-button) {
    display: none;
}

/* Lisää ostoskoriin -painikkeen muokkaukset */
.kadence-cart-button-medium-large.woocommerce div.product .button.single_add_to_cart_button {
    font-size: 100%;
}

/* Omnibus */
.iworks-omnibus {
    font-size: 12px;
	  margin-top: -10px;
	  padding-top: 0px;
}


/* Mini cart */
#cart-drawer.popup-drawer .drawer-header {
    justify-content: center;
    align-items: center;
  	background-color: #ffffff;
}

.kadence-mini-cart-shipping {
    text-align: center;
    padding: 0 1.5em 1.5em;
    margin: -1em -1.5em 1em;
    background-color: #ffffff;
}

/* Tuotesivun kiinteä yläosan Lisää ostoskoriin osio */
.kadence-sticky-add-to-cart-content {
    display: flex;
    min-height: 80px;
}

/* Set a minimum height for the product titles to align the Add to Cart buttons 
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 100px;
}
*/


/* Kategorioiden number count pois */
.products .product-category .count{
display: none; }

/* Top navigation */
.mobile-html {
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--global-palette9);
    text-align: center;
}

/* Mobiilissa tuotelistaus kahdessa sarakkeessa */
.woocommerce ul.products li.product .entry-content-wrap {
    padding: 1rem 0rem 1.5rem;
}

/* Etsi-valikko mobiilissa */
@media only screen and ( max-width:540px ) {
.site-header-section>.site-header-item:last-child {
    margin-right: 10px;
}
	
/* ALE painikkeen muokkaus */
.onsale {
    background-color: #ff0000;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    z-index: 10;
}
	
/* WooCommerce toimitustapojen ja maksutapojen radio-painikkeiden asettelu mobiilissa */
@media screen and (max-width: 400px) {
    ul.woocommerce-shipping-methods li {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Varmista että radio-painike on vasemmassa reunassa toimitustavoille */
    ul.woocommerce-shipping-methods li input[type="radio"] {
        margin: 3px 10px 0 0;
    }

    /* Aseta toimitustavan teksti radio-painikkeen oikealle puolelle */
    ul.woocommerce-shipping-methods li label {
        flex: 1;
        margin: 0;
    }

    /* Fonttikoon asettaminen toimitustavoille */
    .woocommerce ul#shipping_method {
        list-style: none outside;
        margin: 0;
        padding: 0;
        font-size: 16px;
    }

    /* Maksutapojen asettelu (korjaa Paytrailin otsikko) */
    ul.wc_payment_methods li {
        display: block;
        margin-bottom: 15px;
    }

    /* Maksutapojen radio-painikkeiden asettelu */
    ul.wc_payment_methods li input[type="radio"] {
        margin-right: 10px;
    }

    /* Maksutapojen otsikon säilyttäminen */
    ul.wc_payment_methods li label {
        display: inline;
        margin: 0;
    }
}

/* Sivupalkki mobiilissa ylimmäksi */
@media (max-width: 768px) {
    .content-container {
        display: flex;
        flex-direction: column;
    }
    #secondary {
        order: -1;
    }
    #primary {
        order: 0;
    }
}

/* Husky mobile moden säädöt */
.wpf-mobile-btn .wpf-close svg {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.wpf-mobile-btn .wpf-icon {
    position: relative;
    margin-right: 40px;
}
	
/* Tuotesivun muunnelmien muutokset
label.no-stock {
    position: relative;
	  opacity: 0.7;
}

label.no-stock::after {
    content: '';
    width: 90%;
    position: absolute;
    border-top: 2px solid #000;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
}
