<?php
/**
 * Title: Brandy Countdown
 * Slug: brandy/countdown
 * Categories: banner, brandy, brandy-blocks
 */

$date = new DateTime();
$date->modify( '+7 days' );
?>
<!-- wp:group {"metadata":{"categories":["banner","brandy"],"patternName":"brandy/countdown","name":"Brandy Countdown"},"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)"><!-- wp:group {"align":"wide","style":{"background":{"backgroundImage":{"url":"https://images.wpbrandy.com/uploads/wc-image-22.webp","id":182,"source":"file","title":"fashion-img-5-min"},"backgroundSize":"auto","backgroundPosition":"50% 50%","backgroundRepeat":"no-repeat"},"border":{"radius":"10px"},"elements":{"link":{"color":{"text":"var:preset|color|brandy-foreground"}}},"color":{"background":"#fff5f0"}},"textColor":"brandy-foreground","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide has-brandy-foreground-color has-text-color has-background has-link-color" style="border-radius:10px;background-color:#fff5f0"><!-- wp:group {"style":{"spacing":{"blockGap":"35px","padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|30","right":"var:preset|spacing|30"}}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"center","justifyContent":"center"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--30)"><!-- wp:group {"layout":{"type":"constrained","contentSize":"372px"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","align":"wide","style":{"typography":{"fontStyle":"normal","fontWeight":"700"},"spacing":{"margin":{"bottom":"0","top":"0rem"}}},"fontSize":"fluid-3-xl"} -->
<h2 class="wp-block-heading alignwide has-text-align-center has-fluid-3-xl-font-size" style="margin-top:0rem;margin-bottom:0;font-style:normal;font-weight:700">Deal of the day up to <mark style="background-color:rgba(0, 0, 0, 0);color:#ff6800" class="has-inline-color">-40%</mark> off
			</h2>
<!-- /wp:heading --></div>
<!-- /wp:group -->

<!-- wp:brandy/countdown {"countdownDate":"<?php echo esc_attr( $date->format( 'Y-m-d H:i:s' ) ); ?>","overall":{"direction":"horizontal","align":"center","spacing":30},"item":{"direction":"vertical","align":"center","spacing":5},"prefix":{"color":"#5A6D80","typography":{"font_size":15,"bold":false,"italic":false,"text_transform":"none","font_weight":500}},"main":{"color":"","backgroundColor":"#ffede4","typography":{"font_size":45,"bold":false,"italic":false,"text_transform":"none","font_weight":500}},"suffix":{"color":"#5A6D80","typography":{"font_size":15,"bold":false,"italic":false,"text_transform":"none","font_weight":500}},"separator":{"text":"","color":"#5A6D80","typography":{"font_size":29,"bold":false,"italic":false,"text_transform":"none","font_weight":500}},"className":"wp-block-brandy-countdown"} /-->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline","fontSize":"base"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link has-base-font-size has-custom-font-size wp-element-button" href="[shop_page_url]">Shop Now</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->