<?php
/**
 * Title: Header Buttons
 * Slug: monowp/header-buttons
 * Inserter: false
 */

if ( class_exists( 'WooCommerce' ) ) : ?>
<!-- wp:group {"style":{"spacing":{"blockGap":"0"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"},"metadata":{"name":"header-buttons"}} -->
<div id="header-buttons-wc" class="wp-block-group">
	<!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search","buttonPosition":"button-only","buttonUseIcon":true,"query":{"post_type":"product"},"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"color":{"background":"#ffffff00"}},"textColor":"contrast","namespace":"woocommerce/product-search"} /-->
	<!-- wp:woocommerce/customer-account {"displayStyle":"icon_only","iconStyle":"line","iconClass":"wc-block-customer-account__account-icon"} /-->
	<!-- wp:woocommerce/mini-cart /-->
</div>
<!-- /wp:group -->
<?php else : ?>
<!-- wp:group {"style":{"spacing":{"blockGap":"0"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"},"metadata":{"name":"header-buttons"}} -->
<div id="header-buttons" class="wp-block-group">
	<!-- wp:search {"label":"Search","showLabel":false,"width":null,"widthUnit":"%","buttonText":"Search","buttonPosition":"button-only","buttonUseIcon":true,"isSearchFieldHidden":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"color":{"background":"#ffffff00"}},"textColor":"contrast"} /-->
</div>
<!-- /wp:group -->
<?php endif; ?>