/*!
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;
	box-shadow: 0 20px 40px -12px rgba(0,0,0,0.05);
}
#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;
}
.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%!important;
}
.splide .splide__pagination {
	bottom: -30px !important;
}
@media (max-width: 767px) {
	.loop-entry .entry-content-wrap {
		min-height: 195px !important;
		height: 100%!important;
	}
}
.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: #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;
}

.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: #000 !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;
}

/* Transparent header */
@media (min-width:1025px) {
	.transparent-header .site-main-header-inner-wrap {
		border-radius: 50px;
		background: #FFF;
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.transparent-header .item-at-start .site-top-header-wrap .site-header-row-container-inner {
		display: none;
		transition: 0.5s ease-in-out;
	}
	.transparent-header .item-at-start .site-header-row-container-inner>.site-container {
		margin-top: 1rem;
	}
	.transparent-header .item-is-stuck .sticky-header-megamenu {
		margin-top: 0;
	}
	.kadence-sticky-header:not(.item-is-stuck) .sticky-header-megamenu {
	  display:none;
	}
	.kadence-sticky-header.item-is-stuck .normal-header-megamenu{
	  display:none;
	}
	.kadence-sticky-header:not(.item-is-stuck) .sub-menu, .kadence-sticky-header:not(.item-is-stuck) .sub-menu-edge {
		border-radius: 0 0 50px 50px;
	}
	.kadence-sticky-header:not(.item-is-stuck) .normal-header-megamenu {
		margin-left: 2rem !important;
		margin-right: 2rem !important;
		background: transparent;
	}
	.kadence-sticky-header.item-is-stuck .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
		padding: 7px 24px 7px 48px !important;
		line-height: 18px !important;
	}
	.kadence-sticky-header.item-is-stuck .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
		top: 12px !important;
	}
}
@media (min-width:1025px) and (max-width:1200px) {
	.site-main-header-wrap .site-header-row-container-inner>.site-container {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
	.main-navigation .primary-menu-container > ul > li.menu-item > a {
		padding-left: calc(1.2em / 2) !important;
		padding-right: calc(1.2em / 2) !important;
	}
}

a.social-button {
    width: 1.5em !important;
    height: 1.5em !important;
}

.email-container a {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Adjust spacing */
    text-decoration: none; /* Optional: Removes underline */
    color: inherit; /* Optional: Inherits text color */
}

.tavutus, .tavutus .image-overlay-title {
	hyphens: auto;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Etusivu */
@media (min-width:1025px) and (max-width:1366px) {
	.etusivun-tuotevalikoima .kt-row-column-wrap {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
	.etusivun-tuotevalikoima :not(.pitka-otsikko) .image-overlay-title {
		font-size: 1.2rem !important;
	}
	.etusivun-tuotevalikoima .pitka-otsikko .image-overlay-title {
		font-size: 1rem !important;
	}
	/* Megamenu */
	.megamenu-otsikko {
		font-size: 1rem !important;
	}
	.megamenu-osasto p {
		font-size: 0.9rem !important;
	}
	.megamenu-mainos-otsikko {
		font-size: 1.5rem !important;
	}
	.banneripainike .kt-btn-inner-text {
		font-size: 0.9rem !important;
	}
	.banneri-osio .kt-inside-inner-col {
		min-height: 200px !important;
	}
	.sticky-header-megamenu .kt-row-column-wrap {
		padding-left: 3.5rem !important;
		padding-right: 3.5rem !important;
	}
}

/* Yrityssivun kuvasto */
.kuvastokuva {
	transform: rotate(10deg);
}

/* Tuotelistaukset */
ul.wc-block-product-template__responsive {
	padding-left: 0 !important;
}

.tuotelista p {
	color: #000 !important;
}

@media (min-width:336px) and (max-width:767px) {
	.afrfqbt.button {
		font-size: 0.8rem !important;
		padding: 0.5rem 1rem 0.5rem 1rem !important;
	}
}
.tuotelista .button, .tuotelista .wp-block-button__link, .tuotelista .wp-element-button .has-text-align-center {
	display: block !important;
	text-align: center !important;
	color: #FFF !important;
}
@media (min-width:1151px) {
	.tuotelista .button, .tuotelista .wp-block-button__link, .tuotelista .wp-element-button, .tuotelista .has-small-font-size {
		font-size: 1.1rem !important;
	}	
}
@media (min-width:1025px) and (max-width:1150px) {
	.tuotelista .button, .tuotelista .wp-block-button__link, .tuotelista .wp-element-button, .tuotelista .has-small-font-size {
		font-size: 0.9rem !important;
	}
}
@media (min-width:768px) and (max-width:1024px) {
	.wc-block-product-template__responsive.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.tuotelista .button, .tuotelista .wp-block-button__link, .tuotelista .wp-element-button, .tuotelista .has-small-font-size {
		font-size: 0.9rem !important;
	}
}

.wc-block-product-template__responsive>li:hover .tuotekuva img, .wc-block-product-template__responsive .tuotekuva img {
	border-radius: 15px !important;
}

.wc-block-product-template__responsive>li:hover {
	border-radius: 15px !important;
}

@media (min-width:1025px) {
	.wc-block-product-template__responsive>li:hover {
		box-shadow: 0px 0px 3px 0px rgba(30, 30, 30, 0.2);
	}

	.wc-block-product-template__responsive .entry.loop-entry {
		padding: 1rem;
	}
}

.addify-option-field input:required {
	border-left: 1px solid #d3d3d373 !important;
}

/* Tarjouspyyntösivu */
.addify-quote-form__contents.template-two .product-name p {
    display: none;
}
.template-two .product-name a {
    margin-bottom: 5px !important;
}

/* Tuoteosastojen CTA */
.cta-lomake .ff-btn-submit {
	border: 2px solid #FFF;
}

.cta-lomake .ff-btn-submit:hover {
	border: 2px solid #FFF;
	background: #FFF;
	color: #C50D13;
}

.cta-lomake .gdpr-consent-clause a {
	color: #FFF !important;
}

/* Tuoteosastojen lisää ostoskoriin */
.lisaa-ostoskoriin-painike {
	color: #FFF !important;
}

/* Etusivun osastolinkit */
.osastolinkki {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding-left: 1em;
  padding-right: 1em;
}

.osastolinkki .kt-btn-inner-text {
  text-align: left;
}

.osastolinkki .kb-svg-icon-wrap {
  margin-left: auto;
}

.single_add_to_cart_button:not(.afrfqbt_single_page) {
    display: none !important;
}

/* Return to shop on quote basket page */
.adf-request-quote-page.template_two .return-to-shop {
	text-align: left !important;
}

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

/* WooCommerce buttons */
a.wp-block-button__link {
    height: auto;
}

.woocommerce a.added_to_cart {
  color: #000 !important;
}