/**
 * Theme Name: Noonknit 2026
 * Template:   hello-elementor
 */


/* ==========================================================================
   General
   ========================================================================== */

h1, h2, h3{
	word-break: break-word!important;
}

/* ==========================================================================
   1. Buttons (Alt / Primary)
   ========================================================================== */

.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-color: var(--e-global-color-primary)!important;
	border-radius: 50px;
}

.woocommerce ul.products li.product .button {
	background: var(--e-global-color-primary);
	border-color: var(--e-global-color-primary);
	color: var(--e-global-color-3a3e56b);
	text-align: center;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	font-weight: 600;
}

.woocommerce ul.products li.product .button:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
	background: var(--e-global-color-secondary);
	border-color: var(--e-global-color-secondary);
	color: var(--e-global-color-3a3e56b);
}

/* ==========================================================================
   2. Buttons (Standard)
   ========================================================================== */

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.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 {
	border-radius: 50px;
	color: var(--e-global-color-text);
	background-color: var(--e-global-color-3a3e56b);
	border: 2px solid;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, 
.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:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.disabled:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.disabled:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.disabled:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.disabled:hover {
	background-color: var(--e-global-color-secondary);
	color: var(--e-global-color-3a3e56b);
}

/* ==========================================================================
   3. Tables & Cart
   ========================================================================== */

table td, table th {
	border: none!important;
}

table tbody>tr:nth-child(odd)>td, 
table tbody>tr:nth-child(odd)>th,
table tbody tr:hover>td, 
table tbody tr:hover>th {
	background-color: rgba(209, 106, 76, 0.05)!important;
}

table tbody>tr:nth-child(even):hover>td, 
table tbody>tr:nth-child(even):hover>th {
	background-color: rgba(209, 106, 76, 0)!important;
}

.woocommerce-cart-form a {
	color: var(--e-global-color-secondary);
}

.elementor-widget-woocommerce-cart .woocommerce table.cart td,
.cart-subtotal td, 
.order-total td,
.woocommerce-table td {
	padding: 1rem!important;
}

#coupon_code { width: 50%; }
#terms_description { font-size: 1rem; }

table.variations tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th, table tbody tr:hover>td, table tbody tr:hover>th{ background-color: var(--e-global-color-d1ef748)!important;}

/* ==========================================================================
   4. My Account Navigation
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
	background-color: var(--e-global-color-03d1e10);
	padding: 2rem;
	border-radius: 1rem;
	width: 25%;
}

.woocommerce-MyAccount-navigation ul {
	padding: 0!important;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 1rem;
}

.woocommerce-MyAccount-navigation ul li::marker {
	color: transparent;
}

.woocommerce-MyAccount-navigation ul li a {
	color: var(--e-global-color-text);
	padding: 0.7rem 1rem;
	border-radius: 0.5rem;
	display: block;
}

.woocommerce-MyAccount-navigation ul li a:hover {
	background-color: var(--e-global-color-primary);
	color: var(--e-global-color-3a3e56b);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content{
	width: 72%;
}

.woocommerce-MyAccount-content a,
.woocommerce-LostPassword a,
a.added_to_cart{
	color: var(--e-global-color-primary);
}

.woocommerce-MyAccount-content a:hover {
	text-decoration: underline;
	color: var(--e-global-color-secondary);
}

.woocommerce table.my_account_orders td, 
.woocommerce table.my_account_orders th {
	padding: 1rem;
}

/* ==========================================================================
   5. Notices & Messages
   ========================================================================== */

.woocommerce-error, 
.woocommerce-info, 
.woocommerce-message {
	background-color: var(--e-global-color-03d1e10);
	color: var(--e-global-color-text);
	border-top: 3px solid var(--e-global-color-primary);
	border-radius: 1rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.woocommerce-error a, .woocommerce-info a, .woocommerce-message a {
	color: var(--e-global-color-text);
	text-decoration: underline!important;
}

.woocommerce-error a:hover, .woocommerce-info a:hover, .woocommerce-message a:hover {
	color: var(--e-global-color-secondary);
}

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
	color: var(--e-global-color-primary);
}

.reset_variations{
	font-size: 1rem!important;
	color: var(--e-global-color-primary);
}

.woocommerce div.product p.stock{
	font-size: 1.25rem!important;
	font-weight: 600;
	color: var(--e-global-color-primary);
}

/* ==========================================================================
   6. Checkout & Addresses
   ========================================================================== */

.woocommerce-Addresses {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.woocommerce-Address { width: 100%!important; }

.woocommerce .col2-set::after, 
.woocommerce .col2-set::before, 
.woocommerce-page .col2-set::after, 
.woocommerce-page .col2-set::before {
	display: none;
}

.woocommerce-EditAccountForm fieldset { margin: 3rem 0; }
.wc-proceed-to-checkout { gap: 1.5rem; }
#customer_details div { padding: 0!important; }

.elementor-widget-woocommerce-checkout-page .woocommerce .e-woocommerce-login-section{
	padding: 1rem 0!important;
}

.woocommerce form .form-row.create-account::after{
	content:'Luomalla käyttäjätunnuksen verkkokauppaan kaikki tekemäsi tilaukset tallentuvat ja pääset mm. lataamaan ostamasi ohjeet milloin tahansa!';
	display: block;
	font-size: 1rem;
	color: var(--e-global-color-text);
	padding: 1rem 0;
}

/* ==========================================================================
   7. Gift Cards / Lahjakortti
   ========================================================================== */

#pwgc-redeem-gift-card-form,
#pwgc-redeem-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

#pwgc-redeem-gift-card-form { padding: 2rem 0; }

#pwgc-redeem-form label {
	color: var(--e-global-color-text);
	font-size: 1.125rem;
	font-weight: 600;
}

input#pwgc-redeem-button {
	margin: 0!important;
	background-color: var(--e-global-color-3a3e56b);
	color: var(--e-global-color-text);
	border-color: var(--e-global-color-text);
	font-size: 1.125rem;
	padding: 0.7rem 2rem;
}

/* ==========================================================================
   8. Product Shop Loop
   ========================================================================== */

.woocommerce .elementor-element.elementor-products-grid ul.products li.product, 
.woocommerce div.product .elementor-element.elementor-products-grid .related.products ul.products li.product, 
.woocommerce div.product .elementor-element.elementor-products-grid .upsells.products ul.products li.product {
	display: flex;
	flex-direction: column;
	align-items: normal;
	justify-content: space-between;
}

.woocommerce ul.products li.product .woocommerce-loop-category__title, 
.woocommerce ul.products li.product .woocommerce-loop-product__title, 
.woocommerce ul.products li.product h3 {
	font-size: 1.25rem;
	font-family: 'Source Sans Pro';
	font-weight: 600;
	color: var(--e-global-color-text);
}

.woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
	color: var(--e-global-color-primary);
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
	font-weight: 700;
	color: var(--e-global-color-primary);
	font-size: 1.25rem;
}

.woocommerce ul.products li.product a img{
	min-height: 244px;
    object-fit: cover;
}

/* ==========================================================================
   9. Order Received / Tilaus Vastaanotettu
   ========================================================================== */

.woocommerce-order {
	font-size: 1rem;
	color: var(--e-global-color-text);
}

/* ==========================================================================
   10. Other snippets
   ========================================================================== */

/* Fields fetched by shortcode */

.shortcode-heading .elementor-shortcode{
	font-family: "Overlock", Sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 3rem;
}

@media screen and (max-width: 767px){
	
	.shortcode-heading .elementor-shortcode{
	font-size: 1.8rem;
	line-height: 2.3rem;
}
	
}

.shortcode-heading-small .elementor-shortcode{
	font-family: "Source Sans Pro", Sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
}


@media screen and (max-width: 767px){
	
	.shortcode-heading-small .elementor-shortcode{
	font-size: 1.5rem;
	line-height: 2rem;
}
	
}

.shortcode-accent .elementor-shortcode{
	font-family: "Source Sans Pro", Sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
	color: var( --e-global-color-secondary );
}

@media screen and (max-width: 1024px){
	
	.neuleilta-kuva{
		width: 100%!important;
	}
		
	.neuleilta-kuva img{
		max-height: 300px;
        object-fit: cover;
	}
}

/* Ankkuri margin offset */

.ankkuri {
    scroll-margin-top: 146px;
}

@media (max-width: 767px) {
    .ankkuri { scroll-margin-top: 90px; } /* korvaa mitatulla arvolla */
}

/* PWGC */

.pwgc-subtitle{
	font-size: 1rem!important;
	line-height: 1.3rem!important;
}

/* Tuotesuodatin: piilota alakategoriat, ellei haarassa ole aktiivista kategoriaa */
.wpf_item_wpf_cat li:not(:has(.wpf_selected)) > .wpf_submenu {
	display: none;
}

/* ==========================================================================
   11. Responsive Overrides
   ========================================================================== */

@media (min-width: 1025px) {
	.elementor-widget-wc-archive-products .woocommerce.columns-4 ul.products {
		grid-template-columns: repeat(3, 1fr)!important;
	}
}

