/*
Theme Name: PurelyFound
Theme URI: https://github.com/Fueling-My-Dreams/purelyfound-theme
Author: PurelyFound
Author URI: https://purelyfound.com/
GitHub Theme URI: https://github.com/Fueling-My-Dreams/purelyfound-theme
Description: PurelyFound is a clean, modern WooCommerce block theme for a natural wellness store. Feel Different. Live Curious.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Version: 1.0.2
Text Domain: purelyfound-theme
*/

:root {
	--purely-radius: 10px;

	/* animation */
	--timing: 0.2s;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--transition: all var(--timing) var(--ease);
	--transition-props: color, text-decoration-color, transform, border-color, opacity, background-color, box-shadow;

	/* Link effects */
	--hover-color: rgba(34, 47, 68, 0.1);
	--hover-shadow: inset 0 -10em 0 0 var(--hover-color);
	--hover-shadow-light: inset 0 -10em 0 0 rgba(255, 255, 255, 0.23);
	--focus-color: rgba(34, 47, 68, 0.1);
	--focus-shadow: inset 0 -10em 0 0 var(--focus-color);
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	font-family: sans-serif;
	font-weight: 400;
	line-height: 1.3;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-wrap: break-word;
	text-rendering: optimizeLegibility;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {

	:root,
	:root:root:root:root * {
		animation-duration: 0.001s;
		transition-duration: 0.001s;
		animation-iteration-count: 1;
		scroll-behavior: auto;
	}
}

main {
	margin: 0;
}

main:has(.entry-content .has-background:last-child) {
	padding-bottom: 0 !important;
}

footer {
	margin: 0;
}

a {
	transition-duration: var(--timing);
	transition-timing-function: var(--ease);
	transition-property: var(--transition-props);
}

main a {
	text-decoration-line: underline;
	text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
	text-decoration-thickness: 1px;
	text-underline-position: under;

	&:hover {
		text-decoration-color: currentColor;
	}
}

main a:where([href$=".pdf"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%232f4b1f' viewBox='0 -960 960 960'%3E%3Cpath d='M200-120q-51 0-72.5-45.5T138-250l222-270v-240h-40q-17 0-28.5-11.5T280-800t11.5-28.5T320-840h320q17 0 28.5 11.5T680-800t-11.5 28.5T640-760h-40v240l222 270q32 39 10.5 84.5T760-120zm80-120h400L544-400H416zm-80 40h560L520-492v-268h-80v268zm280-280'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 1.3em;
	background-position: left center;
	padding-left: 1.5em;

}

main :where(p, li) > a {
	color: var(--wp--preset--color--clay);
}

/*.single-post .entry-content a {
	text-decoration: underline;
}*/

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

input:not([type="submit"]):not([type="radio"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--ink);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border);
	padding: .5em 1em;
	background-color: #fff;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.02),
		0 0.5px 1px rgba(0, 0, 0, 0.04);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline-color: var(--wp--preset--color--forest);
	outline-offset: 1px;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

select {
	-webkit-appearance: none;
	appearance: none;
	background: var(--wp--preset--color--base) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
    background-size: 16px;
    background-position: calc(100% - 12px) 50%;
	padding-right: 2.2em;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	opacity: 0.75;
}

/* Style the summary box */
details > summary {
  padding: 10px;
  /*background: var(--wp--preset--color--border);*/
  cursor: pointer;
  display: inline-block;
  border-radius: 10px 10px 0 0;
  margin-left: 10px;
  transition: background-color 0.16s;
}

/* Remove or style the default triangle marker */
/*details > summary::marker {
  content: "";
}*/

/* Custom marker using ::before */
details > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.16s;
}

details[open] > summary {
	background-color: var(--wp--preset--color--border);
}

details[open] > summary::before {
  transform: rotate(90deg);
}

/* Style the content inside details */
details::details-content {
  padding: 15px;
  /*background: #fff;*/
  border: 2px solid var(--wp--preset--color--border);
  border-radius: 10px;
}

/* Only style when open */
details[open]::details-content {
  color: #333;
}

details::details-content {
  transition: opacity 0.3s ease, content-visibility 0.3s ease allow-discrete;
  opacity: 0;
  content-visibility: hidden;
}

details[open]::details-content {
  opacity: 1;
  content-visibility: visible;
}
/* Helper styles
---------------------------------------------------------------------------- */
.has-modal-open.is-menu-open {
	height: 100vh;
}

a.more-link {
	display: block;
}

.wp-block-categories {
	position: relative;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
	display: none;
}

img.aligncenter {
	margin-inline: auto;
	display: block;
}

:root .wp-block-term-template {
	list-style-type: disc;
}

/* ---------- Top bar ---------- */
.wc-block-customer-account__link svg.icon {
	width: 1.5em;
}

.purely-topbar .wc-block-mini-cart__button {
	padding: 0;
}

.purely-topbar .wp-block-search__button {
	padding: 5px;
	align-self: center;
	margin-left: auto !important;
}

/* ---------- Header ---------- */
.purely-logo-wrapper {
	flex: 1;

	a {
		display: block;
	}
}

.wp-block-search__input {
	outline: none;
	border-color: var(--wp--preset--color--leaf);

	&:focus {
		border-color: var(--wp--preset--color--leaf);
	}
}

/* ---------- Hero ---------- */
.purely-hero-icon-row {
	flex: 1;
	width: 390px;
	max-width: 100%;
}

@media (max-width: 600px) {

	.purely-hero {
		min-height: 0px !important;
		flex-direction: column;
		justify-content: start;
		padding: 0 !important;
	}

	.purely-hero .wp-block-cover__image-background {
		object-fit: contain;
		position: relative;
	}

	.purely-hero .wp-block-cover__background {
		opacity: 0 !important;
	}

	.purely-hero__cta {
		background-color: var(--wp--preset--color--sage);
		padding: 1rem;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.purely-hero__cta > * {
		max-width: none !important;
		margin-inline: auto !important;
	}

	.purely-hero-icon-row {
		display: none !important;
		/*margin-top: 0 !important;*/
	}

	.purely-hero .wp-block-buttons {
		width: 100%;
		margin-top: 1rem !important;
		align-items: stretch;
		flex-direction: column;
	}

	.purely-hero .wp-block-button,
	.purely-hero .wp-block-button__link {
		width: 100%;
	}
}

/* ---------- Value props ---------- */
.purely-feature-grid {
	gap: 0 !important;
}

.purely-feature-grid > .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--border);
	padding: 0 2rem;
}

.purely-feature-grid > .wp-block-column:first-child {
	border-left: 0;
}

/* ---------- Cards (goals + products) ---------- */
.purely-goal-card,
:root .dfwidget-host .dfwidget-card,
.purely-product-card,
.wp-block-woocommerce-product-collection .wc-block-product,
.wc-block-grid__product,
.woocommerce ul.products li.product {
	background: var(--wp--preset--color--white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 9%, transparent);
	border-radius: var(--purely-radius);
	box-shadow: var(--wp--preset--shadow--subtle);
	box-sizing: border-box;
	overflow: hidden;
}

.wp-block-woocommerce-product-collection .wc-block-product,
.woocommerce ul.products li.product {
	padding: 1rem;
}

.wc-block-product {
	display: flex;
	flex-direction: column;
}

.wp-block-woocommerce-product-image {
	margin-bottom: 0;
}

.wc-block-product .wp-block-woocommerce-product-price + .wp-block-woocommerce-product-button {
	margin-top: auto;
}


.wp-block-woocommerce-product-image,
.wc-block-components-product-image,
.woocommerce ul.products li.product a img {
	background: var(--wp--preset--color--surface);
	border-radius: var(--purely-radius);
	overflow: hidden;
}

.wc-block-product-description {
	font-size: 1rem;

	/* ---- The label box ------------------------------------------------------- */
	table {
		font-size: 20px;
		width: 100% !important;
		max-width: 25em !important;
		border: 2px solid #000 !important;
		border-collapse: collapse;
		color: #000 !important;
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
		-webkit-font-smoothing: antialiased;
		line-height: 1.1;
	}

	/* Wipe the default 1px grid (from border="1") and the cellpadding, then set a
   tight, consistent rhythm. No vertical rules on a real label. */
	table th,
	table td {
		border: 0;
		padding: 1px 7px !important;
		background: transparent !important;
		vertical-align: bottom;
		text-align: left;
	}

	/* ---- Headline: "Product Info" ------------------------------------------- */
	table thead tr:nth-child(1) {
		background: transparent !important;
	}

	table thead tr:nth-child(1) th {
		font-size: 1.75em !important;
		font-weight: 800 !important;
		line-height: 1 !important;
		letter-spacing: -0.6px;
		padding: 4px 7px 2px !important;
		border-bottom: 1px solid #000 !important;
	}

	/* ---- Serving-size block + first heavy bar ------------------------------- */
	table thead tr:nth-child(2) th {
		font-size: 0.75em !important;
		font-weight: 400 !important;
		line-height: 1.35 !important;
		padding: 3px 7px 4px !important;
		border-bottom: 6px solid #000 !important;
	}

	/* ---- "Amount Per Serving" / %DV* column header -------------------------- */
	table thead tr:nth-child(3) th {
		font-size: 0.75em !important;
		font-weight: 700 !important;
		border-bottom: 1px solid #000 !important;
		/* overrides inline 2px */
		padding: 2px 7px !important;
	}

	/* ---- Nutrient rows ------------------------------------------------------- */
	table tbody td {
		font-size: 0.8125em !important;
		border-bottom: 1px solid #000;
		/* hairline between nutrients */
	}

	table tbody td:first-child {
		font-weight: 700 !important;
		/* bold the macro names */
	}

	/* Calories — the prominent line, bracketed below by a heavy bar */
	table tbody tr:nth-child(1) td {
		font-size: 1.125em !important;
		font-weight: 800 !important;
		border-bottom: 6px solid #000 !important;
	}

	table tbody tr:nth-child(1) td:nth-child(2) {
		font-size: 1.5em !important;
		/* the big calorie figure */
	}
	/* Protein — heavy bar before the proprietary blend (overrides inline 2px) */
	/*table tbody tr:nth-child(4) td {
		border-bottom: 6px solid #000 !important;
	}*/

	/* Proprietary blend (last row) — no hairline; the footnote bar follows */
	table tbody tr:last-child td {
		border-bottom: 0 !important;
	}

	/* ---- Footnotes ----------------------------------------------------------- */
	table tfoot td {
		font-size: 0.625em !important;
		line-height: 1.3 !important;
		border-top: 6px solid #000 !important;
		/* closing heavy bar */
		padding: 4px 7px 5px !important;
	}

	table:not(#toostrong) table {
		font-size: unset !important;
		padding: unset !important;
		border: unset !important;

		* {
			font-size: unset !important;
			padding: unset !important;
			border: unset !important;
		}
	}

	table + table {
		margin-top: 0;

		thead tr:nth-child(1) th {
			font-size: 0.75em !important;
		    font-weight: 400 !important;
		    line-height: 1.35 !important;
		    padding: 3px 7px 4px !important;
		    border-bottom: 6px solid #000 !important;
		}

		thead tr:nth-child(2) th {
		    font-size: 0.75em !important;
		    font-weight: 700 !important;
		    border-bottom: 1px solid #000 !important;
		    padding: 2px 7px !important;
		}
	}
}

/* ---------- About page ---------- */
.purely-about-hero {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 10%, transparent);
}

.purely-about-photo {
	background: var(--wp--preset--color--base);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 10%, transparent);
	border-radius: var(--purely-radius);
	box-shadow: var(--wp--preset--shadow--subtle);
	margin: 0;
	overflow: hidden;
}

.purely-about-photo img {
	display: block;
	height: 100%;
	width: 100%;
}

.purely-about-photo-tall {
	max-width: 520px;
}

.purely-about-stats {
	align-items: stretch !important;
}

.purely-about-stats > .wp-block-column {
	display: flex;
}

.purely-about-stat {
	background: color-mix(in srgb, var(--wp--preset--color--white) 84%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 10%, transparent);
	border-radius: var(--purely-radius);
	box-shadow: var(--wp--preset--shadow--subtle);
	box-sizing: border-box;
	height: 100%;
	padding: 1.35rem;
	width: 100%;
}

.purely-about-list {
	display: grid;
	gap: 0.8rem;
	margin-top: var(--wp--preset--spacing--40);
	padding-left: 1.25rem;
}

.purely-about-list li::marker {
	color: var(--wp--preset--color--clay);
	font-weight: 800;
}

.purely-about-cta .wp-block-media-text__media img {
	border-radius: var(--purely-radius);
}

/* Editorial voice chips ("may", "traditionally used for", ...) */
.purely-about-chip {
	background: var(--wp--preset--color--sage);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 12%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--forest);
	font-size: 0.88rem;
	font-style: italic;
	font-weight: 700;
	margin: 0;
	padding: 0.4rem 1rem;
}

/* ---------- WooCommerce store pages ---------- */
.purely-product-main {
	padding-bottom: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--50);
}

.woocommerce div.product .product_title {
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 800;
	line-height: 1.08;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--forest);
	font-size: 1.35rem;
	font-weight: 800;
}

.woocommerce div.product form.cart {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--purely-radius);
	padding: 1rem;
}

.quantity .qty,
.woocommerce .quantity .qty,
.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--purely-radius);
	padding: 0.7rem 0.8rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: var(--purely-radius);
}

/* ---------- Footer ---------- */
.purely-footer {
	--purely-footer-rule: color-mix(in srgb, var(--wp--preset--color--forest) 18%, transparent);
	margin-block-start: 0;
}

.purely-footer p,
.purely-footer h3,
.purely-footer ul,
.purely-footer figure {
	margin-block-start: 0;
}

.purely-footer-top-columns > .wp-block-column,
.purely-disclaimer-columns > .wp-block-column,
.purely-footer-bottom-columns > .wp-block-column {
	min-width: 0;
}

.purely-footer-logo img {
	display: block;
	height: auto;
	max-width: min(236px, 100%);
}

.purely-footer-intro {
	max-width: 27ch;
}

.purely-footer-heading {
	align-items: center;
	display: flex;
	gap: 0.55rem;
	white-space: nowrap;
}

.purely-footer-heading::before,
.purely-help-title::before {
	background: var(--wp--preset--color--leaf);
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	height: 1.05rem;
	-webkit-mask: url("assets/images/footer-icon-leaf.svg") center / contain no-repeat;
	mask: url("assets/images/footer-icon-leaf.svg") center / contain no-repeat;
	width: 1.05rem;
}

.purely-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;

	li {
		border-bottom: 1px solid var(--wp--preset--color--border);
	}
}

.purely-footer-links li a {
	width: 100%;
	display: block;
	line-height: 2;
	padding-left: 2px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%232f4b1f' viewBox='0 -960 960 960'%3E%3Cpath d='M504-480 320-664l56-56 240 240-240 240-56-56z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 1.35rem;
	background-position: right center;
	transition: background-color var(--timing) var(--ease);

	&:hover {
		text-decoration: none;
		background-color: var(--wp--preset--color--border);
	}
}

.purely-sezzle-card {
	max-width: 20.25rem;
}

.purely-sezzle-brand {
	align-items: center;
	display: flex;
	gap: 0.72rem;
	justify-content: center;
}

.purely-sezzle-mark {
	background: linear-gradient(135deg, #23d7a5 0%, #47b3ff 32%, #f255a7 63%, #ffad33 100%);
	border-radius: 0.45rem 1rem 0.45rem 1rem;
	display: inline-block;
	height: 2.25rem;
	transform: rotate(-8deg);
	width: 2.25rem;
}

.purely-contact-list {
	display: grid;
	gap: 1rem;
	list-style: none;
	padding: 0;
}

.purely-contact-list li {
	align-items: center;
	display: grid;
	grid-template-columns: 1.35rem minmax(0, 1fr);
}

.purely-contact-list li::before {
	background: var(--wp--preset--color--forest);
	content: "";
	display: block;
	height: 1.15rem;
	width: 1.15rem;
}

.purely-contact-phone::before {
	-webkit-mask: url("assets/images/footer-icon-phone.svg") center / contain no-repeat;
	mask: url("assets/images/footer-icon-phone.svg") center / contain no-repeat;
}

.purely-contact-mail::before {
	-webkit-mask: url("assets/images/footer-icon-mail.svg") center / contain no-repeat;
	mask: url("assets/images/footer-icon-mail.svg") center / contain no-repeat;
}

.purely-contact-hours::before {
	-webkit-mask: url("assets/images/footer-icon-clock.svg") center / contain no-repeat;
	mask: url("assets/images/footer-icon-clock.svg") center / contain no-repeat;
}

.purely-help-title {
	align-items: center;
	display: flex;
	gap: 0.55rem;
}

.purely-disclaimer-copy {
	max-width: 36rem;
}

.purely-age-badge {
	width: 57px;
	height: 57px;
}

.purely-disclaimer-icon {
	max-width: 50px;
	aspect-ratio: 1 / 1;
	flex: 1 0 100%;
}

/* ---- WooCommerce ---- */
.woocommerce-Price-amount {
	font-weight: bolder;
}

.woocommerce .woocommerce-ordering {
	margin: 0;
}

.wp-block-woocommerce-checkout-fields-block .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	padding: 0;
}

svg.wc-block-next-previous-buttons__icon {
	width: 10px;
	height: 14px;
}

.wp-block-button a.added_to_cart {
	margin: 0;
	padding: 0;
}

.wp-block-button.wc-block-components-product-button {
	width: 100%;

	&:has(a.added_to_cart) {
		flex-direction: row;
	}

	.wp-block-button__link:has(~ span:not([hidden])) {
		padding-inline: 10px;
		min-width: 40px;
	}

	span:has(a.added_to_cart) {
		/*flex: 1 0 auto;*/
		white-space: nowrap;
	}
}

:root:root:root .woocommerce-breadcrumb {
	--separator-size: .75em;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	line-height: 1.3;
	gap: 5px;
	margin-bottom: 0;

	.breadcrumb-delimiter {
		font-size: var(--separator-size, .75em);
		opacity: 1;
	}

	&::after,
	&::before {
		content: none;
	}
}

:root .wp-block-breadcrumbs {
	--separator-size: .75em;

	:is(li,ol) {
		margin: 0;
		padding: 0;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		line-height: 1.3;
		gap: 5px;
	}

	li:not(:has(a)) {
		display: none;
	}

	li:has(a)::after {
		opacity: 1;
		font-size: var(--separator-size, .75em);
		margin: 0;
	}
}

/* ---------- Page header ----------  */
.purely-page-header {
	text-align: center;

	* {
		color: inherit;
	}

	.woocommerce-breadcrumb {

	}
}

/* ---------- Main nav ----------  */
.wp-block-navigation .wp-block-navigation-item {
	a {
		padding: 3px 5px;
	}

	button.wp-block-navigation__submenu-icon {
		width: calc(.8em + 5px);
		height: .8em;
		text-align: left;
	}

	.wp-block-navigation__submenu-icon svg {
		margin-top: .075em;
		width: .8em;
		height: .8em;
	}
}

.wp-block-navigation .wp-block-navigation-item:has(button) a {
	padding-right: 0px;
}

.purely-header .wp-block-navigation .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
	color: inherit;
	border-width: 0;
	border-radius: 10px;
	padding: 8px 4px;
	top: calc(100% + 8px);
	box-shadow: 0px 2px 20px 0px rgba(0,0,0,.12),0px 0px 2px 0px rgba(0,0,0,.2);
	width: max-content !important;

	.wp-block-navigation-item {
		border-radius: 10px;
	}

	&::before {
		content: " ";
		display: inline-block;
		position: absolute;
		width: 32px;
		height: 12px;
		background-repeat: no-repeat;
		background-position: left,right;
		top: -12px;
		left: 33px;
		background-image: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 32 15' width='32' height='15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m13.172 1.8284c1.5621-1.5621 4.0947-1.5621 5.6568 1e-5l13.172 13.172h-32l13.172-13.172z' fill='%23fff' stroke='%23D8D8D8' stroke-width='.7'/%3E%3C/svg%3E");
		z-index: 99999999999;
	}

	&::after {
		content: "";
		z-index: -1;
		display: block;
		position: absolute;
		height: calc(100% + 32px);
		width: calc(100% + 20px);
		top: -18px;
		left: -10px;
		background: none;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.purely-header-main {
		gap: 1rem !important;
		justify-content: center;

		.purely-logo-wrapper{
			min-width: 150px;
		}
	}

	/*.wp-block-search__input,
	.wp-block-search:hover .wp-block-search__input,
	.wp-block-search:focus-within .wp-block-search__input {
		min-width: 0;
		opacity: 1;
		padding: 0.55rem 0.9rem;
		width: auto;
	}*/

	.purely-feature-grid > .wp-block-column {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--border);
		padding: 1.5rem 0;
	}

	.purely-feature-grid > .wp-block-column:first-child {
		border-top: 0;
	}

	.purely-footer-top-columns,
	.purely-disclaimer-columns,
	.purely-footer-bottom-columns {
		flex-direction: column;
	}

	.purely-footer-top-columns > .wp-block-column,
	.purely-disclaimer-columns > .wp-block-column,
	.purely-footer-bottom-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.purely-footer-panel,
	.purely-disclaimer-card,
	.purely-rewards-column {
		border-left: 0 !important;
		border-top: 1px solid var(--purely-footer-rule) !important;
		padding: 2rem 0 0 !important;
	}

	.purely-footer-brand {
		border-top: 0 !important;
		padding-right: 0 !important;
		padding-top: 0 !important;
	}

	.purely-footer-social-links {
		margin-top: 2rem !important;
	}

	.purely-help-note {
		margin-top: 2rem !important;
	}

	.purely-disclaimer-card:first-child {
		border-top: 0 !important;
		padding-top: 0 !important;
	}

	.purely-disclaimer-card:not(:first-child) {
		border-top-color: color-mix(in srgb, var(--wp--preset--color--base) 28%, transparent) !important;
	}

	.purely-footer-bottom-columns {
		text-align: left;
	}

	.purely-copyright,
	.purely-rewards-link {
		text-align: left !important;
	}

	.purely-rewards-column {
		border-top-color: color-mix(in srgb, var(--wp--preset--color--base) 24%, transparent) !important;
		padding-top: 1.35rem !important;
	}
}

@media (max-width: 600px) {


	.wc-block-product-template.is-flex-container > li {
		min-width: 162px;
  		flex: 1 1 calc(50% - .83333em);
	}

	.purely-topbar .alignwide,
	.purely-header-main {
		justify-content: center !important;
	}

	.purely-footer-upper,
	.purely-footer-legal-band,
	.purely-footer-bottom {
		padding-left: var(--wp--preset--spacing--40) !important;
		padding-right: var(--wp--preset--spacing--40) !important;
	}

	.purely-footer-logo img {
		max-width: 205px;
	}
}

.wp-block-term-description p + p {
	margin-top: 1.5rem;
}

.wp-block-safe-svg-svg-icon.safe-svg-cover {
	display: flex;
}

:root .dfd-widget {
	max-width: var(--wp--style--global--wide-size);

	.dfwidget-host {
		--text-color: var(--wp--preset--color--forest);
		--card-bgcolor: transparent;
		--widget-bgcolor: transparent;
		--add-to-cart-bgcolor: var(--wp--preset--color--forest);
	}

	.dfwidget-title {
		font-family: var(--wp--preset--font-family--heading);
		font-size: var(--wp--preset--font-size--x-large);
		font-weight: 700;
		line-height: 1.18;
	}

	.dfwidget-host .dfwidget-card {
		transition-duration: var(--timing);
		transition-timing-function: var(--ease);
		transition-property: box-shadow, border-color;

		.card-title {
			font-family: var(--wp--preset--font-family--heading);
			font-size: var(--wp--preset--font-size--small);
			font-weight: 700;
			line-height: 1.16;
		}

		.card-pricing {
			font-size: var(--wp--preset--font-size--small);
			font-weight: bold;
			line-height: 1.16;
			margin-top: .75rem;
			justify-content: center;
		}

		&:hover {
			box-shadow: var(--wp--preset--shadow--small-light);
			border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 15%, transparent);
		}
	}

	.df-add-to-cart-btn {
		width: 100%;
		font-weight: bold;
	    color: var(--wp--preset--color--base);
	    transition: box-shadow var(--timing, .2s) var(--ease, ease-in-out);
	    position: static;
	    display: flex;
	    justify-content: center;
	    padding-top: 0.45em;
	    padding-right: 1.5em;
	    padding-bottom: 0.45em;
	    padding-left: 1.5em;
		margin-top: .75rem;
	    height: auto;
	    border-radius: 50px;

		svg {
			display: none;
		}

		&:before {
			content: "Add to cart";
			display: block;
			text-align: center;
		}

		&:hover {
			background-color: var(--add-to-cart-bgcolor);
			box-shadow: inset 0 -10em 0 0 color-mix(in srgb, var(--wp--preset--color--base) 15%, transparent);
		}
	}
}

li.wp-block-post > .wp-block-group {
	line-height: 1.3;
	display: flex;
	flex-direction: column;
	height: 100%;

	.wp-block-post-excerpt {
		display: flex;
		flex-direction: column;
		height: 100%;
		flex: 1;
	}

	.wp-block-post-excerpt__excerpt {
		margin-bottom: 1rem;
	}

	.wp-block-post-excerpt__more-text {
		margin-top: auto;
	}

}


.wp-block-post-excerpt__more-link {
	background-color: var(--wp--preset--color--forest);
	border-radius: 50px;
	border-width: 0;
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: bold;
	padding-top: 0.45em;
	padding-right: 1.5em;
	padding-bottom: 0.45em;
	padding-left: 1.5em;
	text-decoration: none;
	text-transform: inherit;
}
