/*
Styles for form elements and buttons.
*/

textarea {
	padding: 1rem;
	width: 100%;
	border-radius: var(--wp--custom--button-radius);
}

select {
	padding: 3px;
}

textarea,
select,
button:not(.components-button):not(.wp-block-navigation *):not(.pswp__button),
input[type="color"],
input[type="date"],
input[type="datetime-local"],
input[type="datetime"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="reset"],
input[type="search"],
input[type="submit"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"] {
	font-size: var(--wp--preset--font-size--small);
	font-family: var(--wp--preset--font-family--system);
	line-height: 1.7;
	border-radius: var(--wp--custom--button-radius);
}

button:not(.components-button):not(.wp-block-navigation *):not(.pswp__button),
input[type="reset"],
input[type="submit"] {
	font-size: var(--wp--preset--font-size--small);
	border: 2px solid var(--wp--custom--button-border-color);
	padding: var(--wp--custom--button-padding);
	border-radius: var(--wp--custom--button-radius);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	box-shadow: none;
	text-transform: var(--wp--custom--button-text-transform);
	transition: all 0.2s ease-in-out;
}

button:not(.components-button):not(.wp-block-navigation *):not(.pswp__button):focus,
button:not(.components-button):not(.wp-block-navigation *):not(.pswp__button):hover,
input[type="reset"]:focus,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover {
	filter: none !important;
	box-shadow: none;
}

button:not(.components-button):not(.wp-block-navigation *):not(.pswp__button):active,
input[type="reset"]:active,
input[type="submit"]:active {
	box-shadow: none;
	filter: none !important;
	margin-top: 0;
	margin-bottom: -0;
}

a,
button:not(.components-button):not(.wp-block-navigation *):not(.pswp__button),
input[type="reset"],
input[type="reset"],
input[type="submit"] {
	transition: all 0.3s ease-in-out;
}

.wp-block-button__link:hover,
button:not(.components-button):not(.wp-block-navigation *):not(.pswp__button):active,
input[type="reset"]:active,
input[type="submit"]:active,
input[type="reset"]:focus,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover {
	filter: brightness(90%) !important;
}

.post-password-form input[type="password"] {
	min-height: 46px;
}

/* Accessibility: Increase icon size so that the button is easier to click */
.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
	width: 48px;
	height: 48px;
}