/*!
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;
}
.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;
}

/* 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;
	}
}

/* Logokaruselli */
.wpsisac-slick-carousal .slick-arrow svg {
	fill: #377d4b !important;
}
.wpsisac-slick-carousal .slick-arrow {
	background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Post grid */
.kt-blocks-post-grid-item .kt-blocks-post-top-meta > div {
	margin-bottom: 5px !important;
}

/* Lomake i */
.fluentform .ff-el-tooltip svg {
	fill: #029636 !important;
}

/* Quiz */
.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check.ff_item_selected:first-child label > span {
	border: 1px solid #04782c !important;
	border-radius: 30px !important;
}
.fluentform_wrapper_14.ffs_custom_wrap .ff_list_buttons .ff-el-form-check label > span:hover, .fluentform .ff-el-group.ff_list_buttons .ff-el-form-check.ff_item_selected label > span {
	color: #fff !important;
	background-color: #04782c !important;
	border: 1px solid #04782c !important;
}
.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check:last-child label > span, .fluentform .ff-el-group.ff_list_buttons .ff-el-form-check:first-child label > span {
	border-radius: 30px !important;
	margin-right: 10px !important;
}
.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check label > span {
	border: 1px solid #009433 !important;
}
.fluentform_wrapper_14.ffs_custom_wrap .ff_list_buttons .ff-el-form-check label > span {
	border-radius: 30px !important;
}
.fluentform .text-danger {
	color: #000 !important;
}
.fluentform-step {
	float: right !important;
} 
.testi .fluentform .ff-el-group {
    text-align: center !important;
}
.testi .frm-fluent-form .ff-t-cell:first-of-type, .fluentform .field-value {
    display: none !important;
}
.testi .ff-default .ff-el-input--label label {
    margin-bottom: 10px !important;
}

/* Ketjuesittely query */
legend.kb-query-label {
	font-family: 'Plus Jakarta Sans' !important;
	color: #04782c !important;
	font-weight: 700 !important;
}

/* pagination */
.kt-blocks-page-nav .nav-links > .current, .pagination a:hover, .kt-blocks-page-nav .nav-links > a:hover {
	background: #009333 !important;
	border-color: #009333 !important;
	color: #fff !important;
}
.kt-blocks-page-nav .nav-links > a {
	border-color: #009333 !important;
	color: #009333 !important;
} 

/* navi */
.main-navigation .primary-menu-container > ul li.menu-item > a {
	font-weight: 700 !important;
}

/* ketjutaulukko mobiilissa */
@media only screen and (max-width: 767px) {
	.wp-block-table .has-fixed-layout {
		table-layout: auto !important;
	}
	.wp-block-table .has-fixed-layout td {
		word-break: normal !important;
	}
}

/* Ketjulistaus uusi-merkintä */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #04782c;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 30px;
    text-transform: uppercase;
    z-index: 10;
	margin-bottom: 0px !important;
}
