/*!
Theme Name: Helpotkotisivut
Theme URI: https://www.helpotkotisivut.fi/wordpress-kotisivut/
Template: kadence
Author: Helpotkotisivut
Author URI: https://www.helpotkotisivut.fi/
Description: Helppojen kotisivujen lapsiteema pohjautuen Kadence teemaan
Version: 0.3
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* estää kuvien pomppimisen */

html { overflow-y: scroll; } /* fallback: varaa tila scrollbarille aina */
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; scrollbar-gutter: stable; }
}


/* Wordbreak */
h1, h2, h3, h4, h5, h6, p, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	word-break: keep-all;
	hyphens: none;
	word-wrap: initial;
}

/* Main Header shadow */
#masthead .item-is-stuck {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.05);
  transition: box-shadow ease-in-out 200ms, background-color ease-in-out 200ms;
}


/* Mobile menu */
.drawer-header {padding: 0 1rem 0!important;}
.popup-drawer .drawer-content {padding: 0 1rem 2rem!important;}

/* Links no underline */
a, p a { text-decoration: none !important; }

/* Fluent Forms */
.fluentform form {
	margin: 0!important;
}
.fluentform input, .fluentform textarea , .fluentform select {
	padding: .6rem !important;
	border-radius: 0!important;
	font-size: 0.95rem!important;
}
.fluentform .ff-el-group {
	margin-bottom: 0.8rem !important;
}
[type="checkbox"], [type="radio"] {
    accent-color: #ffffff;
}
.wpsr-reviews-badge-wrapper {
	text-align: left !important;
}
.gdpr-consent-clause {
	font-size: 13px !important;
}
.gdpr-consent-clause a {
	color: var(--global-palette1) !important;
}
.tummataustainen-lomake a {
	color: #FFF !important;
	text-decoration: underline !important;
}
@media (max-width:767px) {
	.ff-el-group.ff_list_inline label > span, .ff-el-input--content label > span {
		font-size: 1rem !important;
	}
	.fluentform .ff-el-form-check-label .ff-el-form-check-input {
		top: 0! important;
		width: 1.3rem !important;
		height: 1.3rem !important;
		margin-right: .4rem !important;
	}
}
@media (min-width:768px) {
	.fluentform .ff-el-form-check-label .ff-el-form-check-input {
		top: 0! important;
		width: 1.2rem !important;
		height: 1.2rem !important;
		margin-right: .4rem !important;
	}
	.ff-el-group.ff_list_inline label > span, .ff-el-input--content label > span {
		font-size: 1rem !important;
	}
	.fluentform .ff-el-form-check {
    	margin-bottom: 0px !important;
	}
	.fluentform .ff-el-tc {
		margin-top: -0.4rem !important;
    	font-size: 0.95rem !important;
    	margin-bottom: 0.4rem !important;
	}
}

@media only screen and (min-width: 641px) {
    .fluentform .ff-el-group.ff_list_inline .ff-el-form-check {
        margin: 0 15px 0px 0 !important;
    }
}
.fluentform .ff-el-form-control:focus {
	border-color: var(--global-palette1) !important;
}
.fluentform .ff-el-form-control {
	border: none !important;
	font-family: var(--global-body-font-family) !important;
}
.single-content .fluentform {
	padding-top: 0.5rem;
	margin-bottom: -0.5rem !important;
}
[type="checkbox"], [type="radio"] {
	accent-color: var(--global-palette1);
}
@media only screen and (max-width:767px) {
	.fluentform .ff-el-tc label.ff_tc_label>div, .fluentform .ff-el-tc label.ff_tc_label>span {
		display: inline !important;
		font-size: 0.8rem !important;
	}
	.fluentform .ff-el-tc {
		margin-top: -5px !important;
		margin-bottom: -3px !important;
	}
}
.ff-default textarea {
    min-height: 40px !important;
}
.ff-default .ff-el-input--label label {
    font-size: 1.1rem;
}
.tummataustainen-lomake .ff-el-is-required.asterisk-right label:after {
    color: #FFF !important;
}

/* GDPR Cookie icon */
.cky-revisit-bottom-left {
	bottom: .5rem !important;
	left: .5rem!important;
}
.cky-btn-revisit-wrapper .cky-btn-revisit img {
	height: 1.8rem!important;
	width: 1.8rem!important;
}
.cky-btn-revisit-wrapper {
	width: 2.5rem !important;
	height: 2.5rem!important;
}
.cky-switch input[type="checkbox"] {
	border-radius: 50px!important;
}

/* WP Social Ninja -contact */
/* Wrapper */
.wpsr-fm-chat-wrapper.wpsr-chat-icons-layout .wpsr-fm-chat-bubble.active .wpsr-fm-bubble-btn {
	-webkit-transform: none !important;
	transform: none !important;
}
.wpsr-fm-chat-wrapper {
	right: .5rem !important;
	bottom: .5rem!important;
	margin: 0!important;
}

/* Button */
.wpsr-fm-chat-wrapper .wpsr-fm-chat-bubble {
	right: 0!important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-bubble .wpsr-fm-bubble-btn.wpsr-fm-bubble-btn-has-text {
	border-radius: 25px !important;
	padding: 0.6rem 1.2rem!important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-bubble .wpsr-fm-bubble-btn.wpsr-fm-bubble-btn-has-text img {
	margin: 0 -0.3rem !important;
}

/* Chatbox wrapper */
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box {
	right: 0.5rem!important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box-display {
	margin-bottom: 4.4rem!important;
}

/* Chatbox close button */
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-close {
	top: 1.4rem!important;
	right: .4rem!important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-close:after, .wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-close:before {
	width: 1.4rem !important;
	height: 3px!important;
}

/* Chatbox header */
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-header {
	padding: 1rem !important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-header .wpsr-fm-group-details {
	padding: 0 !important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-header .wpsr-fm-group-details h3 {
	padding: 0 0 .4rem !important;
}

/* Chatbox content */
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-room {
	padding: 1rem !important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-room .wpsr-fm-conversation .wpsr-fm-greeting-msg {
	background-color: #fff !important;
	padding: 0!important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-room .wpsr-fm-conversation .wpsr-fm-greeting-msg p:first-child {
	padding: 0 0 .4rem !important;
}

/* Chatbox Fluent forms */
#fluentform_5 {
	margin: -1.5rem 0 !important;
}
#fluentform_5 .ff-btn-lg {
	border-radius: 0 !important;
	font-size: 16px;
}
#fluentform_5 input[type="text"], #fluentform_5 input[type="email"], #fluentform_5 input[type="url"], #fluentform_5 input[type="password"], #fluentform_5 input[type="search"], #fluentform_5 input[type="number"], #fluentform_5 input[type="tel"], #fluentform_5 input[type="range"], #fluentform_5 input[type="date"], #fluentform_5 input[type="month"], #fluentform_5 input[type="week"], #fluentform_5 input[type="time"], #fluentform_5 input[type="datetime"], #fluentform_5 input[type="datetime-local"], #fluentform_5 input[type="color"], #fluentform_5 textarea {
	background: none !important;
}
.wpsr-fm-chat-wrapper.wpsr-has-fluent-forms-widget .wpsr-fluent-form-title {
	padding: 1rem !important;
	font-size: 18px !important;
}
.wpsr-fm-chat-wrapper.wpsr-has-fluent-forms-widget .wpsr-fluent-form-title {
	border: none !important;
}
#fluentform_5 .ff-el-form-control {
	border-bottom: 1px solid #d5d5d5 !important;
	box-shadow: none !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	padding-left: 0 !important;
}
.wpsr-fm-chat-wrapper.wpsr-has-fluent-forms-widget .wpsr-fluent-form-title {
	margin-left: 4px !important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-room .wpsr-fm-conversation .wpsr-fm-user-picture img {
	display: none !important;
}
.wpsr-fm-chat-wrapper .wpsr-fm-chat-box .wpsr-fm-chat-header .wpsr-fm-group-details h3 {
	margin-left: 1rem !important;
}

/* WP Social Ninja -soittopainike */
@media only screen and (max-width: 768px) {
	.wpsr-fm-chat-wrapper {
		right: .5rem !important;
		bottom: .5rem !important;
	}
	.wpsr-fm-chat-box {
		display: none !important;
	}
	.wpsr-fm-chat-wrapper .wpsr-fm-chat-bubble {
		right: 0!important;
	}
}

/* Blog */
.category-style-pill a {
	padding: 0.25rem 0.5rem !important;
	border-radius: 5rem !important;
}

/* Blog single */
@media only screen and (max-width: 767px) {
	.kadence-thumbnail-position-behind {
		margin-bottom: 0 !important;
	}
}

/* Single post related carousel */
.loop-entry .entry-content-wrap {
	min-height: 170px !important;
	height: 100%;
}
.splide .splide__pagination {
	bottom: -30px !important;
}
@media (max-width: 767px) {
	.loop-entry .entry-content-wrap {
		min-height: 195px !important;
		height: 100%;
	}
}
.entry-related-inner-content {
	padding-top: var(--global-md-spacing) !important;
	padding-bottom: var(--global-md-spacing) !important;
	padding-left: var(--global-xs-spacing) !important;
	padding-right: var(--global-xs-spacing) !important;
}
@media only screen and (max-width:767px) {
	.comment-navigation a, .post-navigation a {
		font-size: 1rem !important;
		line-height: 1.6 !important;
	}
	.comment-navigation, .post-navigation {
		margin: var(--global-xs-spacing) auto !important;
	}
}

/* Cookieyes evästeasetukset-painike */
.cky-banner-element {
	cursor: pointer;
}

@media only screen and (min-width:1025px) and (max-width:1600px) {
	.copyright-palkki > .kt-row-column-wrap {
		grid-template-columns: minmax(0, 1fr) !important;
		row-gap: 0.5rem !important;
	}
	.helpot-backlink {
		text-align: left !important;
	}
}

/* Hero täppälomakkeella */
@media only screen and (min-width:1025px) and (max-width:1200px) {
	.hero-lomakeosio > .kt-row-column-wrap {
		grid-template-columns: minmax(0, calc(63% - ((var(--kb-default-row-gutter, var(--global-row-gutter-md, 2rem)) * 1 )/2)))
		minmax(0, calc(37% - ((var(--kb-default-row-gutter, var(--global-row-gutter-md, 2rem)) * 1 )/2))) !important;
	}
}

.vaaleataustainen-lomake .lyhyt-lomake-tumma-button {
	background: var(--global-palette1) !important;
	color: #FFF !important;
	border: 0 !important;
}
.vaaleataustainen-lomake .lyhyt-lomake-tumma-button:hover {
	background: #FFF !important;
	color: var(--global-palette1) !important;
}
.fluentform.vaaleataustainen-lomake .ff-el-form-control {
	border: 1px solid #dadbdd !important;
}
.vaaleataustainen-lomake .asterisk-right label:after {
    color: #333 !important;
}

.hero-ota-yhteytta .kt-accodion-icon-style-xclose .kt-blocks-accordion-icon-trigger:before, .hero-ota-yhteytta .kt-accodion-icon-style-xclose .kt-blocks-accordion-icon-trigger:after {
   width: 15px !important;
   height: 3px !important;
}

.kb-splide .splide__arrow {
    font-size: 1.2rem !important;
    background: none !important;
    color: #333 !important;
	opacity: 0.8 !important;
}

@media only screen and (min-width:768px) and (max-width:1366px) {
	.kb-splide .splide__slide {
		margin-left: 1rem !important;
		margin-right: 1rem !important;
	}
	.kt-blocks-testimonial-carousel-item {
		width: calc(48% - 1rem) !important;
	}
}
@media only screen and (max-width:767px) {
	.wp-block-kadence-testimonials .kt-blocks-carousel-init:not(.kt-carousel-dotstyle-none) {
		padding-bottom: 15px !important;
	}
}

.kt-testimonial-content {
    margin-bottom: 0.2rem !important;
}

.kt-accodion-icon-style-basic .kt-blocks-accordion-icon-trigger:before, .kt-accodion-icon-style-basic .kt-blocks-accordion-icon-trigger:after {
    height: 2px !important;
}

.blogi-tyyli .kt-blocks-post-grid-item .entry-title a:not(.button):not(.list) {
    background: #333 !important;
    margin-top: -10px !important;
	padding: 10px;
	color: #FFF !important;
	min-height: 76px;
}

.blogi-tyyli .kt-blocks-post-grid-item .kt-blocks-post-top-meta {
    margin-top: 0.5rem;
}

.palveluotsikko {
    padding-bottom: 0;
    transition: 0.2s all ease-in-out;
}
.palvelupalsta:hover .palveluotsikko {
    padding-bottom: 0.5rem;
    transition: .2s all ease-in-out;
}

.menu-item.non-clickable > a {
    pointer-events: none;
    cursor: default;
}

.wc-block-cart__submit {
	border: none !important;
	padding: 0 !important;
}

.popup-drawer .drawer-inner {
	background: #FFF !important;
}

.popup-drawer .drawer-header .drawer-toggle {
    color: #333 !important;
}

.wpb_wmca_accordion_shortcode_33908.wpb_category_n_menu_accordion.wpb_wmca_theme_simple > ul > .current-menu-item > a, .wpb_wmca_accordion_shortcode_33908.wpb_category_n_menu_accordion.wpb_wmca_theme_simple > ul > li > a:hover, .wpb_wmca_accordion_shortcode_56177.wpb_category_n_menu_accordion.wpb_wmca_theme_simple > ul > .current-menu-item > a, .wpb_wmca_accordion_shortcode_56177.wpb_category_n_menu_accordion.wpb_wmca_theme_simple > ul > li > a:hover {
	background: #0EB0B3;
}

/* Sidebar menu */
/* Container styling */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Menu items */
.sidebar-menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-menu li {
  position: relative;
}

.sidebar-menu li a {
  display: block;
  padding: 12px 16px;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.sidebar-menu li a:hover {
  background: #f0f0f0;
}

/* Parent items */
.sidebar-menu li.menu-item-has-children > a::after {
  content: "▸";
  float: right;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

/* When open */
.sidebar-menu li.menu-item-has-children.open > a::after {
  transform: rotate(90deg);
}

/* Submenu */
.sidebar-menu .sub-menu {
  display: none;
  padding-left: 16px;
  border-left: 2px solid #ddd;
  margin-top: 6px;
}

.sidebar-menu li.menu-item-has-children.open > .sub-menu {
  display: block;
}

@media screen and (min-width: 1025px) {
	.has-sidebar .content-container {
        grid-template-columns: 1fr 4fr !important;
        grid-gap: var(--global-lg-spacing) !important;
    }
}

/* Kaupan fontit */
.woocommerce ul.products.woo-archive-btn-button .button:not(.kb-button), .woocommerce ul.products li.woo-archive-btn-button .button:not(.kb-button) {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
  font-family: var(--global-heading-font-family, inherit) !important;
    letter-spacing: 0 !important;
}

#widget-drawer .header-widget2 a:not(.button) {
	color: #333 !important;
}


/* Prevent clipping of submenus */
.drawer-inner,
.drawer-content,
.widget-area,
.sidebar-menu {
    overflow: visible !important;
    position: relative;
    z-index: 1000;
}

/* Show submenu when .open class is added by JS */
.sidebar-menu .sub-menu.open {
    display: block;
}

/* Ensure parent menu item has positioning */
.sidebar-menu .menu-item-has-children {
    position: relative;
}

/* Style arrow */
.sidebar-menu .menu-item-has-children > a::after {
    content: "▶";
    float: right;
    margin-left: 5px;
    font-size: 12px;
}

/* Parent menu container adjustments */
.sidebar-menu {
  position: relative;
  z-index: 10;
}

/* Submenu full panel */
@media screen and (min-width:768px) {
	.sidebar-menu .sub-menu {
		left: 100%; /* Slide-in from right of the sidebar */
		max-width: 400px;
	}
}

@media screen and (max-width:767px) {
	.sidebar-menu .sub-menu {
		left: 0 !important; /* Slide-in from right of the sidebar */
		border-left: none !important;
	}
	#widget-drawer.popup-drawer-layout-sidepanel .drawer-inner {
		max-width: 75vw !important;
	}
	.sidebar-menu .sub-menu {
		max-width: 75vw;
	}
}

.sidebar-menu .sub-menu {
	position: fixed !important;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: #ffffff;
	display: none;
	flex-direction: column;
	z-index: 9999;
	overflow: hidden;
}

/* When submenu is active */
.sidebar-menu .sub-menu.open {
  display: flex;
}

/* Submenu header */
.submenu-header {
  background: #333;
  color: #ffffff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

/* Submenu list scrollable */
.submenu-content {
	max-height: 100vh !important;
	overflow-y: auto;
	padding: 0 0 5rem 0 !important;
}

/* Back arrow styling */
.submenu-close {
  	cursor: pointer;
	background: url(https://laatupaino.net/wp-content/uploads/2025/07/nuoli-vasemmalle.svg);
    border: none;
    color: white;
    cursor: pointer;
    height: 50px;
    width: 50px;
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
}
.submenu-close:hover {
	background-color: #0EB0B3 !important;
  	cursor: pointer;
	background: url(https://laatupaino.net/wp-content/uploads/2025/07/nuoli-vasemmalle.svg);
    border: none;
    color: white;
    cursor: pointer;
    height: 50px;
    width: 50px;
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
	border-radius: 0 !important;
}

.sidebar-menu ul {
	margin-top: 0 !important;
}

.sidebar-menu .sub-menu li {
	padding: 0 !important;
}

.sidebar-menu li a {
	font-size: 1rem !important;
}

.submenu-header {
    padding: 0;
    font-size: 1.2rem !important;
}

.submenu-header {
	padding-left: 1rem !important;
}
@media screen and (max-width:767px) {
	.primary-sidebar {
		padding-top: 0 !important;
	}
}

#masthead {
    z-index: 9999 !important;
}

.variations .kad_radio_variations label {
    border-radius: 50px;
}

.variations .kad_radio_variations input[type=radio]:checked+label, .variations .kad_radio_variations label.selectedValue:not(.used-for-specificity):not(.used-forspecificity):not(.usedfor-specificity), .variations .kad_radio_variations input[type=radio]:checked+label, .variations .kad_radio_variations label.selectedValue, .variations .kad_radio_variations label:hover {
    border-color: var(--global-palette2, #0EB0B3) !important;;
	background: var(--global-palette2, #0EB0B3) !important;
}

.variations .kad_radio_variations label.selectedValue, .variations .kad_radio_variations label:hover {
	color: #FFF;
	cursor: pointer;
}

.variations .kt-radio-variation-container fieldset.kad_radio_variations {
    gap: 10px !important;
}

.variations .kad_radio_variations label {
    padding: 4px 15px !important;
}

html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    box-shadow: 0 0 0 1px #bfbebe !important;
}

/*tämä muutettu*/

@media screen and (min-width:1250px) {
  .site-header-item .dgwt-wcas-search-wrapp {
    width: 430px !important;
    flex: 0 0 430px !important;
    min-width: 430px !important;
    max-width: 430px !important;
  }
}


.bapf-sfa-grey-rounded .berocket_aapf_widget_selected_area li a:before {
    right: 30px !important;
    top: 3px !important;
}

.dgwt-wcas-layout-icon-flexible-loaded .dgwt-wcas-search-form {
    padding-left: 1.2rem;
}

.pewc-select-wrapper {
    padding: 0 !important;
}

.pewc-style-simple [data-field-type="select"] select.pewc-form-field {
    height: 35px !important;
    padding: 8px 10px 8px 10px !important;
}

.woocommerce div.product form.cart .variations select {
	min-width: 100% !important;
}

.woocommerce div.product form.cart .variations td {
    width: 100% !important;
    display: block !important;
}

.woocommerce div.product form.cart .variations .label {
	width: 100% !important;
    display: block !important;
	padding-right: 0 !important;
	
}

h4.pewc-field-label[for="pewc_group_56293_56294"] .pewc-field-label-text {
	display: none !important;
}

/* Hinnasto */
.price-table table {
  width: 100%;
  margin: 1ex auto 0;
  display: block;
}

.price-table table tbody {
  display: block;
}

.price-table table tr {
  display: flex;
  align-items: baseline; /* Makes dots align nicely with text */
}

.price-table table tr td {
  padding: 0.5em 0;
  line-height: 1.4;
  border: none;
  background: none;
  font-family: sans-serif;
}

/* LEFT TD (item name) */
.price-table table tr td:first-child {
  order: 1;
  flex: 0 1 50%; /* grow: 0, shrink: 1, basis: 50% */
  white-space: normal;
  overflow: visible;
  text-overflow: ellipsis;
  margin-right: 0.5rem;
}

/* RIGHT TD (price) */
.price-table table tr td:last-child {
  order: 3;
  flex: 0 0 auto; /* Do not grow/shrink, size to content */
  white-space: nowrap;
  margin-left: 0.5rem;
}

/* MIDDLE DOTTED LINE */
.price-table table tr::after {
  order: 2;
  content: ". . . . . . . . . . . . . . . . . . . . " 
           ". . . . . . . . . . . . . . . . . . . .";
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  flex: 1 1 auto; /* Allow it to shrink and grow */
}


/* single product view additional info title */
.woocommerce-Tabs-panel:first-of-type h2:first-of-type {
  display: none;
}

/* Color filter */
.widget li:not(.kb-table-of-content-list li) {
    line-height: 1.;
}
.bapf_sfilter label {
    font-size: 14px;
}

/* Tuotteen overflow listausnäkymässä */
.products:not(.woo-archive-image-hover-none) li.product a {
    overflow: visible !important;
}

/* Tuotelistausnäkymä */
.entry-header.product-archive-title {
	margin-bottom: 0 !important;
}

.product-brand {
    margin-top: 0.3em;
    font-size: 0.85em;
    color: #333;
}

.product-brand .brand-name a {
    color: #555;
    text-decoration: none;
}

.product-brand .brand-name a:hover {
    text-decoration: underline;
}
.woocommerce ul.products.woo-archive-btn-button li.product .price {
    margin-bottom: 0 !important;
}

.product-sku {
    font-size: 0.85em;
    color: #777;
    margin-top: 0.3em;
}

.wpc-filters-widget-top-container {
    display: none;
}
.wpc-horizontal-layout .wpc-posts-found {
    display: none;
}

.archive .content-area, .single-product .content-area {
    margin-bottom: 0 !important;
	margin-top: 1rem !important;
}

.rank-math-breadcrumb {
	text-transform: uppercase;
}

/* Single product */
.pewc-group-heading-wrapper h3 {
    font-size: 1.3rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.related.products > h2 {
    text-transform: uppercase !important;
}

@media screen and (max-width:767px) {
	.woocommerce ul.products.woo-archive-btn-button .button:not(.kb-button), .woocommerce ul.products li.woo-archive-btn-button .button:not(.kb-button) {
		font-size: 0.75rem !important;
		padding: 0.67rem 0.3rem !important;
	}
}

/* Sticky sidebar */
@media (min-width: 1025px) {
  .primary-sidebar.widget-area {
    position: sticky;
    top: 155px;
    align-self: flex-start;
    z-index: 10;
  }
}

.wpc-filters-section {
    margin-bottom: 0 !important;
}

.wpb_wmca_accordion_wrapper * {
    background: #DEDEDE;
}

.current-product-parent a {
	background: #0eb0b3 !important;
}

.wpc-filter-content .wpc-filters-widget-select {
	color:  #444444;
    background: #DEDEDE !important;
}

.wpc-filter-content option {
	color: #444444 !important;
    background: #DEDEDE !important;	
}

.wpc-filter-content option:checked, .wpc-filter-content option:hover, .wpc-filter-content option:focus, .wpc-filters-section.wpc-filter-has-selected select {
	color: #FFFFFF !important;
    background-color: #0EB0B3 !important;	
}

.archive select,
.archive ::picker(select) {
  appearance: base-select !important;
}

option:hover,
option:focus {
  	background: #DEDEDE !important;
	background-color: #DEDEDE !important;
	color: #FFF !important;
}

.wpc-filter-content .wpc-filters-widget-select {
    border-radius: 0 !important;
}

::checkmark {
	display: none;
}

body .wpc-filter-chips-list li.wpc-filter-chip:not(.wpc-chip-reset-all) a, body .wpc-filter-chips-list li.wpc-chip-reset-all a {
    border-color: #0eb0b3 !important;
}

.zoomContainer:before, .kwt-gallery-single:before {
	content: url(https://laatupaino.net/wp-content/uploads/2025/08/sinun-logosi-tahan-tuotteeseen.png);
	position: absolute;
	top: 15px;
	left: 15px;
	width: 50px;
	height: 50px;
	z-index: 1000;
}

.woocommerce-loop-image-link:before {
	content:"";
    background-image: url('https://laatupaino.net/wp-content/uploads/2025/08/sinun-logosi-tahan-tuotteeseen.png');
    background-size: contain;
    background-repeat: no-repeat;
	position: absolute;
	top: 7px;
	left: 7px;
	width: 40px;
	height: 40px;
	z-index: 1000;
}

.wpc-filter-content select {
    margin-bottom: 0 !important;
}

.pswp--open {
    z-index: 99999;
}

@media screen and (max-width: 500px) {
  .wpc-horizontal-layout .wpc-filters-widget-wrapper {
    display: grid !important;
    width: 100%;
    column-gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
  }

  /* First child takes full width */
  .wpc-filters-widget-wrapper > *:first-child {
    grid-column: span 2;
  }

  /* All others behave normally, 50% width */
  .wpc-filters-widget-wrapper > * {
    box-sizing: border-box;
    width: 100%;
  }
}

/* Piilota vieras käyttäjä -ilmoitus kassalla */
.wc-block-checkout__guest-checkout-notice {
	display: none;
}

.woocommerce-checkout h3 {
    margin-bottom: 20px !important;
}

/* Product loop layout fix */
.woocommerce ul.products li.product .entry-content-wrap {
	padding-top: 0 !important;
}

.product-brand {
	margin-top: 10px !important;
}

.woocommerce-shop .kadence-breadcrumbs {
	display: none !important;
}

/* Header off canvas price filter */
.bapf_val, .bapf_taprice {
	color: #333 !important;
}
.bapf_val {
	padding-right: 5px;
}
.bapf_tbprice {
	display: none !important;
}

.wc-block-checkout__payment-method {
	visibility: hidden !important;
    height: 0 !important;
    margin-bottom: -1rem !important;	
}

/* Product archive - product prices */
.woocommerce ul.products.woo-archive-btn-button li.product .price {
    font-size: 17px;
    font-weight: 500;
}

.has-extra-fields .woocommerce-variation .woocommerce-variation-price {
    font-size: 1.3rem;
	font-weight: 700;	
}

.wpc-filters-list-73044 {
	max-height: 100% !important;
    overflow-y: inherit !important;
}

.wpc-filters-section-73044 {
	max-width: 100% !important;
    width: 100% !important;
    margin-right: !important;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap; /* Keeps text on a single line */
}

.marquee {
  display: inline-block;
  animation: scroll-left 15s linear infinite; /* Adjust duration for speed */
}

.marquee-text {
	padding: 0 20px; /* Add space between texts */
	display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: Manrope;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #565655;
}

@keyframes scroll-left {
  0%   { transform: translateX(50%); }    /* Start halfway on screen */
  100% { transform: translateX(-100%); }  /* Ends fully off-screen to the left */
}

.tavutus {
	-webkit-hyphens: auto!important;
	-ms-hyphens: auto!important;
	hyphens: auto!important;
	}

/* =========================================================
   KADENCE PRODUCT CAROUSEL – lukitse kuvan kehys, EI venymistä
   koskee vain tuotekarusellia
   ========================================================= */

/* 1) Lukitse kuvan "laatikko" (tilavarauksen takia ei pompi) */
.wp-block-kadence-productcarousel ul.products li.product a.woocommerce-loop-image-link{
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;      /* vaihda 1 / 1 jos haluat neliöt */
  overflow: hidden;
}

/* 2) Pakota kaikki kuvat täyttämään laatikko ilman venymistä */
.wp-block-kadence-productcarousel ul.products li.product a.woocommerce-loop-image-link > img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;  /* tämä estää “vanumisen” jos teema pakottaa korkeuden */
  object-fit: cover;
  display: block;
}

/* 3) Kadencen secondary (hover) -kuva ei saa kasvattaa korkeutta tai sotkea */
.wp-block-kadence-productcarousel ul.products li.product img.secondary-product-image{
  position: absolute;
  inset: 0;
}

