/*!
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
-------------------------------------------------------------- */

/* 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-at-start {transition: box-shadow ease-in-out 200ms;}
#masthead .item-is-stuck {box-shadow: 0 20px 40px -12px rgba(0,0,0,0.05); transition: all 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;
}
@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 (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 (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 (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) {@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 (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 */
.sky-banner-element {
	cursor: pointer;
}

/* Hero täppälomakkeella */
@media (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: #000 !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;
}

.popup-drawer .drawer-header {
    min-height: fit-content !important;
}

.alleviivattu-otsikko .kt-highlight {
	background: 
	linear-gradient(-225deg,transparent 5px, var(--global-palette2) 0) bottom left, /*225 = 180 + 45 */
	linear-gradient(-45deg ,transparent 5px, var(--global-palette2) 0) bottom right;
	background-repeat: no-repeat;
}
@media (min-width: 1025px) {
	.alleviivattu-otsikko .kt-highlight {
		background-size: 100% 15px;
	}
}
@media (min-width:768px) and (max-width:1024px) {
	.alleviivattu-otsikko .kt-highlight {
		background-size: 100% 8px;
	}
}
@media (max-width:767px) {
	.alleviivattu-otsikko .kt-highlight {
		background-size: 100% 6px;
	}
  	.alleviivattu-otsikko .kt-highlight {
    	background-position: 0% 82%;
  	}
}
@media (min-width:768px) {
  .alleviivattu-otsikko .kt-highlight {
    background-position: 0% 82%;
  }
}


/* Etusivun laskuri */
.rangeslider--horizontal .rangeslider__handle {
    top: -5px !important;
}
.rangeslider__handle {
	width: 30px !important;
	height: 30px !important;
}
.rangeslider__fill {
    background: #333333 !important;
}
.ff_range_value {
	display: none !important;
}
.fluentform .ff-el-form-control:disabled, .fluentform .ff-el-form-control[readonly]:not(.flatpickr-input) {
    background-color: transparent !important;
}
#fluentform_12 .ff_input-group-text {
    background-color: transparent !important;
}

#fluentform_12 .ff_input-group .ff-el-form-control {
    flex: 0 1 auto !important;
    width: auto !important;
	margin-right: -185px !important;
	color: #333;
    font-weight: 600;
}

#fluentform_12 .ff-el-input--label {
    padding-top: 5px !important;
}

.tuotto-container label {
	font-size: 1.25rem !important;
	font-weight: 600 !important;
}

.tuotto-container .ff_input-group .ff-el-form-control {
	margin-left: -10px !important;
	font-size: 1.25rem !important;
	margin-top: -5px !important;
}

.tuotto-container .ff_input-group-append {
	margin-left: -50px;
    margin-top: -5px;
}
.tuotto-container .ff_input-group-text {
	font-size: 1.25rem !important;
    font-weight: 600 !important;
	color: #333 !important;
}
@media (max-width:1300px) {
	.tuotto-container .ff_input-group-append {
		position: absolute !important;
		left: 54px !important;
		margin-top: -2px !important;
		margin-left: 0 !important;
	}	
}
@media (min-width:480px) and (max-width:1300px) {
	.myynnin-maara .ff_input-group-append {
        position: absolute !important;
        left: 8px !important;
        margin-left: 0 !important;
        margin-top: 2px;
	}
}
@media (min-width:481px) {
	#fluentform_12 .myynnin-maara .ff_input-group .ff-el-form-control {
		margin-left: -40px !important;
	}
}
@media (max-width:480px) {
	.myynnin-maara .ff_input-group-append {
        position: absolute !important;
        left: 38px !important;
        margin-left: 0 !important;
        margin-top: 2px;
	}
	#fluentform_12 .ff_input-group .ff-el-form-control {
		margin-left: -10px !important;
	}
}
.fluentform .ff_input-group-text {
    color: #333 !important;
}

@media (min-width:1025px) {
	.single-product h1 {
		font-size: 3rem;
	}
}

/* Tuotteet-sivu */
.tavutus {
    -webkit-hyphens: auto;
       -moz-hyphens: auto;
        -ms-hyphens: auto;
            hyphens: auto;
}

@media (min-width:1025px) and (max-width:1200px) {
	h1 {
		font-size: 4rem !important;
	}
}

/* Maa-kentän piilotus kassalla */
.maa {
	display: none;
}

/*tuotesivun sisältöjen koko*/
.kb-row-layout-id2437_e8943e-d2 > .kt-row-column-wrap {
    max-width: 1000px !important;
}

/*tuotesivun sisältöjen otsikoiden fontti oikeaksi + asettelu*/
.wp-block-kadence-advancedheading {
	font-family: Poppins !important;
}

/* Media query for mobile devices (up to 480px wide) */
@media only screen and (max-width: 480px) {
    .kb-row-layout-id2437_e8943e-d2 > .kt-row-column-wrap {
        max-width: calc(100% - 20px)!important; /* Reduce the max-width slightly for mobile */
    }
}

/* Media query for larger mobile devices and tablets (up to 768px wide) */
@media only screen and (max-width: 768px) {
    .kb-row-layout-id2437_e8943e-d2 > .kt-row-column-wrap {
        max-width: calc(100% - 40px)!important; /* Slightly smaller than the inherited max-width */
    }
}

/* Media query for iPads ja pienille läppäreille (768px to 1086px wide) */
@media only screen and (min-width: 768px) and (max-width: 1086px) {
    .kb-row-layout-id2437_e8943e-d2 > .kt-row-column-wrap {
        max-width: calc(100% - 80px)!important; /* Adjust max-width to be a bit smaller for iPads */
    }
}

/* Rivivälit tuotesivun lisätietoihin */
/* .lisatiedot {
	margin-top: -2rem !important;
    margin-bottom: -2rem !important;
} */

.lisatiedot .kt-inside-inner-col p {
	margin-block-start: 0;
    margin-block-end: 0;
	padding-top: 0.1rem;
	padding-bottom: 0.1rem;
}

@media only screen and (min-width: 768px) {
	.lisatiedot-otsikot {
		margin-left: -2rem;
	}
}
/*muotoiltiin tuotesivun otsikoita */
.woocommerce table.shop_attributes th {
    padding-left: 1.5rem !important;
    text-transform: uppercase;
    font-size: 12px;
	line-height: 18.3px !important;
}

.woocommerce table.shop_attributes td {
    font-style: normal !important;
    font-size: 20px;
    padding-left: 2rem !important;
	line-height: 28.6px !important;
}

/*tuotesivun otsikkokoko */
@media (max-width: 1024px) {
    h1 {
        font-size: 1.5rem !important;
    }
}
@media (min-width: 1024px) {
    .single-product h1 {
        font-size: 1.8rem !important;
    }
}

/* tuotetietojen taulukot */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	padding-top: 1em !important;
	padding-left: 1em !important;
}
.kadence-column2437_6be98a-e3 .wp-block-kadence-column {
	min-height: 38px !important;
}
.quick-view-1683 {
	padding-left: 1em !important;
}

@media (max-width: 1088px) {
	.woocommerce table.shop_attributes {
		margin-left: -1.8rem !important;
	}
}

@media (min-width: 700px) {
	.kb-row-layout-id2437_0a46e5-58 > .kt-row-column-wrap, .kb-row-layout-id2437_3a3fb9-a5 > .kt-row-column-wrap, .kb-row-layout-id2437_df67cc-a0 > .kt-row-column-wrap, .kb-row-layout-id2437_325ebc-9d > .kt-row-column-wrap, .kb-row-layout-id2437_2ee0bf-49 > .kt-row-column-wrap, .kb-row-layout-id2437_292e6d-e8 > .kt-row-column-wrap,  .kb-row-layout-id2437_5f66f0-5a > .kt-row-column-wrap {
		grid-template-columns: minmax(0, calc(15% - ((var(--global-kb-gap-md, 2rem) * 1 )/2)))minmax(0, calc(85% - ((var(--global-kb-gap-md, 2rem) * 1 		)/2))) !important;
	}
}

@media only screen and (min-width: 767px) and (max-width: 799px) {
	.wp-block-kadence-rowlayout .kt-row-column-wrap.kb-theme-content-width {
		margin-left: 0px !important;
	}
	.kb-row-layout-id2437_e8943e-d2 > .kt-row-column-wrap {
		padding-top: 0px !important;
		padding-bottom: 0px !important;
	}
}

@media (max-width: 700px) {
	.woocommerce table.shop_attributes td, .kadence-column2437_6be98a-e3 body {
		font-size: 1rem !important;
	}
	.woocommerce table.shop_attributes {
		margin-left: -3rem !important;
		width: 120% !important;
	}
	.woocommerce table.shop_attributes th {
		width: 0px !important;
	}
	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
		padding: 20px !important;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		padding-left: 0px !important;
	}
}

.wp-block-table td, .wp-block-table th {
    padding: .1em !important;
}