/*!
Theme Name: Meita Base Two Child Saimaantukipalvelut
Theme URI: https://meita.fi
Template: meita-theme-basetwo
Author: Lauri Merisaari
Author URI: https://meita.fi
Description: Child theme for Meita Base Two. Block theme based and inspired of Meita Base one and Twenty Twenty Two
Requires at least: 6.0
Tested up to: 6.1
Requires PHP: 8.0
Version: 0.1.14
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meitabasetwo
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, accessibility-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
*/

/* 
 * CSS Global variables
 *
 * Overwrite these in child theme to globally control defaults
 * Original can be found in src/css/variables.scss
 */
 :root {

    --meita-custom-nav-elements-border-width: 1px;
    
    --meita-custom-forms-input-border: 1px;
    --meita-custom-forms-input-border-style: solid;
    --meita-custom-forms-input-border-color: #808080;
    --meita-custom-forms-input-pg: white;
    --meita-custom-forms-input-border-radius: 15px;

    /* All buttons defaults, can be owerwriten in site editor */
    --meita-custom-default-border-radius: 15px;
    --meita-custom-button-padding: 11.7px;
    --meita-custom-button-hpadding: 16.7px;
    --megamenu-container-padding: 3em;
    --megamenu-nav-hpadding: 1em;

    /* Default animation duration */
    --animate-duration: 0.3s;

}

header .wp-block-search {
	border: 0;
	background-color: transparent!important;
}
.wp-block-search__inside-wrapper {
	border: 0;
	border-radius: 50%;
}
.wp-block-search .wp-element-button {
	background-color: var(--wp--preset--color--primary) !important;
}

/* Linkkilaatikko */
.wp-block-image.is-style-linkkilaatikko {
	position: relative;
	overflow: hidden;
	a {
		position: relative;
		z-index: 1;
	}
	img {
		transition: transform .4s ease;
	}
	figcaption {
		position: absolute;
		inset: auto 0 0;
		z-index: 10;
		margin: 1rem;
		padding: 1rem .5rem;
		background-color: var(--wp--preset--color--primary);
		color: #fff;
		font-weight: bold;
		font-size: 1rem;
		pointer-events: none;
	}
}
.wp-block-image.is-style-linkkilaatikko:hover img {
	transform: scale(1.05);
}

.rounded {
	border-radius: 6px;
}

.is-style-nuoli::after {
	color: #fff;
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 16 16'%3E%3Cpath fill='white' fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8'/%3E%3C/svg%3E");
	display: inline-block;
	margin-left: .5rem;
}

/* NAPIT */
.wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link.has-tertiary-background-color:hover {
	background-color: var(--wp--preset--color--secondary)!important;
}
.wp-block-button .wp-block-button__link.has-secondary-background-color:hover {
	background-color: var(--wp--preset--color--primary)!important;
}

/* LOMAKKEET */
.wpcf7 label {
	font-weight: bold;
}
.wpcf7-form-control.wpcf7-acceptance label {
	font-weight: normal;
}
.wpcf7 input {
	width: 100%;
}
.wpcf7 input[type="checkbox"], .wpcf7 input[type="submit"] {
	width: auto;
}
.wpcf7-list-item {
	margin-left: 0!important;
}

@media screen and (max-width: 600px){
	.kansi-laatikot > div{
		flex-basis: 100%;
	}
}
