/*
 * Kivo Commerce: small refinements that theme.json cannot express.
 * Navigation behavior and the skip link are provided by core, so they are not overridden here.
 */

/* Visible keyboard focus for interactive elements. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Card block style. */
.wp-block-group.is-style-card {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	padding: var(--wp--preset--spacing--40);
}

/* Product grid details. */
.wc-block-product-template .wp-block-woocommerce-product-image img,
.wp-block-woocommerce-product-collection .wc-block-components-product-image img {
	border-radius: 0.75rem;
}

/* Header search field stays compact. */
.wp-block-search__button-only .wp-block-search__inside-wrapper {
	min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
