/* =============================================================================
 * taste.css — Taste Of The Moment (templates/taste-of-the-moment.php).
 *
 * The hero itself is the shared collage hero: markup in
 * template-parts/focus-hero.php, its rules in assets/css/winemaker.css (the
 * "THE FOCUS HERO" block). This file only adds what is this page's own:
 *
 *   - the skin:  .focus-hero--taste — background, proportions, colours;
 *   - the mood:  .taste-mood — "WHAT ARE YOU in The Mood For?", printed under
 *                the cards through the part's 'content_html'.
 *
 * Enqueued on this template only (inc/css-frontend.php, handle taste-wiize),
 * after winemaker.css.
 * ========================================================================== */


/* --- The skin --------------------------------------------------------------- */

/* The path is relative to THIS file: assets/css/ -> ../img/.
   1440 × 1158 is the size of tasting-background.png — swap the two together
   if the artwork is replaced: a ratio taller than the picture leaves a band
   of --focus-hero-bg under it. */
.focus-hero--taste {
	--focus-hero-ratio:      1440 / 1158;
	--focus-hero-bg:         #001E0A;          /* the artwork's own edge colour */
	--focus-hero-card-bg:    rgba(255, 255, 255, .12);
	--focus-hero-card-hover: rgba(255, 255, 255, .20);
	--focus-hero-rule:       rgba(255, 255, 255, .30);
	--focus-hero-muted:      rgba(255, 255, 255, .78);
	background-image: url('../img/tasting-background.png');
}

/* The striped fifth tile is raspberry on this page, not white. */
.focus-hero--taste .focus-hero__card--placeholder {
	background-color: #8A1A4A;
	background-image: repeating-linear-gradient(
		-60deg,
		#B8457A 0,
		#B8457A 6px,
		transparent 6px,
		transparent 16px
	);
}


/* --- "What are you in the mood for?" ------------------------------------------ */

.focus-hero__content {
	margin-top: clamp(48px, 5.6vw, 80px);
}

.taste-mood {
	text-align: center;
	color: var(--focus-hero-text);
}

.taste-mood__title {
	margin: 0;
	font-weight: normal;
	line-height: 1;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

/* "WHAT ARE YOU" — wide, bold, letterspaced capitals. */
.taste-mood__kicker {
	display: block;
	font-family: 'Work Sans', sans-serif;
	font-weight: 700;
	font-size: clamp(30px, 3.9vw, 56px);
	line-height: 1.1;
	letter-spacing: .14em;
	text-transform: uppercase;
	/* letter-spacing adds a space after the last letter too; this pulls the
	   line back to the true centre. */
	margin-right: -.14em;
}

/* "in The Mood For?" — the small "in" sits on the baseline of the big line. */
.taste-mood__line {
	display: inline-flex;
	align-items: baseline;
	gap: .14em;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 500;
}

.taste-mood__in {
	font-size: clamp(22px, 2vw, 30px);
}

.taste-mood__main {
	font-size: clamp(58px, 8.4vw, 120px);
	line-height: .95;
}

.taste-mood__text {
	margin: 14px 0 0;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 500;
	font-size: clamp(18px, 2.25vw, 32px);   /* 32px from ~1420px wide up */
	line-height: 1.25;
	color: var(--focus-hero-text);
}


/* --- Ask The AI Sommelier (section 7 of the template) ------------------------ *
 *
 * A sand band under the hero: the heading on the left, the bottle-and-glass
 * drawing on the right (assets/icons/ai_sommelier.svg — printed only once the
 * file exists), then one wide field. The field does nothing yet.
 * -------------------------------------------------------------------------- */

.taste-ai {
	--taste-ai-bg:     #C7BDB0;
	--taste-ai-ink:    #211A15;
	--taste-ai-green:  #006042;
	--taste-ai-line:   rgba(255, 255, 255, .75);

	padding: 80px 0 114px;
	background: var(--taste-ai-bg);
	color: var(--taste-ai-ink);
}

.taste-ai__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

/* "FIND YOUR WIIZE" */
.taste-ai__kicker {
	margin: 0;
	font-family: 'Work Sans', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--taste-ai-ink);
}

/* "Ask The AI Sommelier" */
.taste-ai__title {
	margin: 2px 0 0;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: clamp(40px, 4.3vw, 62px) !important;  /* style.css: h2 { 1.55rem !important } on small screens */
	line-height: 1;
	color: #000;
}

/* "TELL US WHAT YOU WANT IN YOUR OWN WORDS." */
.taste-ai__text {
	margin: 8px 0 0 2px;
	font-family: 'Work Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--taste-ai-green);
}

.taste-ai__icon {
	flex: none;
	display: block;
	width: 60px;          /* the drawing's own size, ai_sommelier.svg */
	height: 76px;
	margin-right: 10px;
}

.taste-ai__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.taste-ai__form {
	margin: 38px 0 0;
}

/* Doubled class on purpose: Bricks' frontend.min.css styles
   `input:not([type="submit"])` (0,1,1), which beats a single class. */
.taste-ai .taste-ai__input {
	display: block;
	width: 100%;
	height: 92px;
	padding: 0 40px;
	border: 1px solid var(--taste-ai-line);
	border-radius: 6px;
	background: transparent;
	box-shadow: none;
	font-family: 'Work Sans', sans-serif;
	font-size: 32px;
	font-weight: 300;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
	outline: none;
	transition: border-color .18s ease;
}

.taste-ai .taste-ai__input::placeholder {
	color: #fff;
	opacity: 1;
}

.taste-ai .taste-ai__input:focus {
	border-color: #fff;
}

/* The field's label is for screen readers only. */
.taste-ai .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* --- Explore Manually (section 8 of the template) ------------------------- *
 *
 * Title, five tabs, a sliding panel under them (assets/js/taste.js), and the
 * "Find your Wiize" button. The Food and Taste panels reuse the buyer
 * account's cards — their rules are further down, re-scoped from
 * buyer_dashboard.css / register-taste.css to `.taste-explore .reg-taste`.
 * -------------------------------------------------------------------------- */

.taste-explore {
	--taste-ex-bg:      #FBF8F5;
	--taste-ex-tab:     #F8F3EE;
	--taste-ex-tab-on:  #EFE8E0;
	--taste-ex-ink:     #000;
	--taste-ex-green:   #006042;
	--taste-ex-red:     #A6032F;
	--taste-ex-line:    #C7BDB0;

	padding: 120px 0 120px;
	background: var(--taste-ex-bg);
	color: var(--taste-ex-ink);
}

/* "Explore Manually" */
.taste-explore__title {
	margin: 0;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: clamp(40px, 4vw, 58px) !important;  /* style.css: h2 { 1.55rem !important } on small screens */
	line-height: 1;
	color: var(--taste-ex-ink);
}

/* "CHOOSE FOOD, STYLE, TASTE AND BUDGET." */
.taste-explore__text {
	margin: 8px 0 0 2px;
	font-family: 'Work Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--taste-ex-green);
}

.taste-explore__form {
	margin: 44px 0 0;
}

/* --- The five tabs --- */
.taste-explore__tabs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.taste-explore .taste-explore__tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 106px;
	padding: 20px 12px;
	border: 0;
	border-radius: 2px;
	background: var(--taste-ex-tab);
	color: var(--taste-ex-ink);
	font-family: 'Work Sans', sans-serif;
	cursor: pointer;
	transition: background-color .18s ease;
}

.taste-explore .taste-explore__tab:hover,
.taste-explore .taste-explore__tab:focus-visible,
.taste-explore .taste-explore__tab.is-active {
	background: var(--taste-ex-tab-on);
}

.taste-explore__tab-label {
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* The green triangle under the word; it flips while the panel is open. */
.taste-explore__tab-arrow {
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 8px solid var(--taste-ex-green);
	transition: transform .3s ease;
}

.taste-explore__tab.is-active .taste-explore__tab-arrow {
	transform: rotate(180deg);
}

/* How many things are picked in that panel. */
.taste-explore__tab-count {
	position: absolute;
	top: 10px;
	right: 10px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--taste-ex-green);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}

.taste-explore__tab-count[hidden] {
	display: none;
}

/* --- The sliding panel --- */
.taste-explore__panel {
	height: 0;
	overflow: hidden;
	opacity: 0;
	transition: height .32s ease, opacity .25s ease;
}

.taste-explore__panel[hidden] {
	display: none;
}

.taste-explore__panel.is-open {
	opacity: 1;
}

.taste-explore__panel-inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 16px;
	padding: 40px;
	background: #fff;
	border-radius: 2px;
}

.taste-explore__panel-title {
	margin: 0;
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: #211a15;
}

.taste-explore__empty {
	margin: 0;
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
	color: #554f4f;
}

/* --- Occasion: the food cards, without an icon --- */
.taste-explore .reg-taste .input_row .input_element.checkbox_element.taste-explore__occasion {
	min-height: 64px;
	justify-content: center;
}

.taste-explore .reg-taste .input_row .input_element.checkbox_element.taste-explore__occasion label {
	padding-right: 24px;
}

/* --- Wine: a scrolling list, name + small picture --- */
.taste-explore__wines {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px 16px;
	max-height: 360px;
	margin: 0;
	padding: 0 8px 0 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.taste-explore__wine {
	margin: 0;
}

.taste-explore .taste-explore__wine input[type=checkbox] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.taste-explore__wine label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 5px;
	background: #f4f2ef;
	cursor: pointer;
	transition: background-color .18s ease;
}

.taste-explore__wine label:hover {
	background: #ebe8e2;
}

.taste-explore__wine-icon {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 3px;
	background: #ebe8e2;
	overflow: hidden;
}

.taste-explore__wine-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.taste-explore__wine-name {
	flex: 1 1 auto;
	min-width: 0;
	font-family: 'Work Sans', sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #211a15;
}

.taste-explore__wine .checkbox_svg {
	flex: none;
}

.taste-explore__wine .checkbox_svg .checkbox_svg_tick {
	opacity: 0;
	transition: opacity .3s ease-in-out;
}

.taste-explore__wine input:checked + label .checkbox_svg .checkbox_svg_tick {
	opacity: 1;
}

.taste-explore__wine input:focus-visible + label {
	outline: 2px solid var(--taste-ex-line);
}

/* --- Budget: from / to + a two-handle slider beside them --- */
.taste-explore__budget {
	display: flex;
	align-items: center;
	gap: 40px;
}

.taste-explore__budget-fields {
	display: flex;
	gap: 16px;
	flex: none;
}

.taste-explore__budget-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 16px;
	min-height: 60px;
	border-radius: 5px;
	background: #f4f2ef;
	border-bottom: 4px solid var(--taste-ex-line);
}

.taste-explore__budget-label,
.taste-explore__budget-currency {
	font-family: 'Work Sans', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #554f4f;
}

/* Doubled class: Bricks' `input:not([type="submit"])` outranks one class. */
.taste-explore .taste-explore__budget-input {
	width: 80px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: 'Work Sans', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #211a15;
	-moz-appearance: textfield;
}

.taste-explore .taste-explore__budget-input::-webkit-outer-spin-button,
.taste-explore .taste-explore__budget-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Two range inputs stacked on one track: only their thumbs take clicks. */
.taste-explore__range {
	position: relative;
	flex: 1 1 auto;
	height: 24px;
}

.taste-explore__range-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	background: var(--taste-ex-line);
}

.taste-explore__range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 2px;
	background: var(--taste-ex-green);
}

.taste-explore .taste-explore__range-input {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.taste-explore .taste-explore__range-input::-webkit-slider-runnable-track {
	background: transparent;
	border: 0;
}

.taste-explore .taste-explore__range-input::-moz-range-track {
	background: transparent;
	border: 0;
}

.taste-explore .taste-explore__range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 3px solid var(--taste-ex-green);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.taste-explore .taste-explore__range-input::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 3px solid var(--taste-ex-green);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

/* --- The button --- */
.taste-explore__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 56px;
}

.taste-explore .taste-explore__submit {
	min-width: 158px;
	min-height: 51px;
	padding: 0 24px;
	border: 0;
	border-radius: 4px;
	background: var(--taste-ex-red);
	color: #fff;
	font-family: 'Work Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .18s ease;
}

.taste-explore .taste-explore__submit:hover,
.taste-explore .taste-explore__submit:focus-visible {
	background: #7F0224;
}


/* --- The account's cards (Food, Taste, and the Occasion cards) -------------- *
 * Copied from register-taste.css (itself a copy of buyer_dashboard.css, the
 * account's taste / food forms) and re-scoped to `.taste-explore .reg-taste`,
 * so they look exactly like the account and touch nothing else.
 * -------------------------------------------------------------------------- */

.taste-explore .reg-taste .input_row {display:flex;flex-direction:column;gap:11px}
.taste-explore .reg-taste .input_row_elements {display:flex;flex-direction:row;gap:14px;width:100%}
.taste-explore .reg-taste .input_row .input_element {width:100%;position:relative}
.taste-explore .reg-taste .input_row .input_element label {font-size:10px;font-style:normal;font-weight:600;line-height:10px;letter-spacing:2px;text-transform:uppercase;color:#554f4f;position:absolute;margin:0;top:45px;left:24px}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector {max-width:390px;min-height:77px;border-radius:5px;display:flex;flex-direction:column;justify-content:space-between;padding:14px 18px}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector input[type=checkbox] {appearance:none;display:none;border:none;padding:0;width:0;height:0}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector input[type=checkbox]~svg.checkbox_svg {position:absolute;top:14px;right:18px;cursor:pointer}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector input[type=checkbox]~svg.checkbox_svg .checkbox_svg_tick {opacity:0;transition:opacity .3s ease-in-out}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector input[type=checkbox]:checked~svg.checkbox_svg .checkbox_svg_tick {opacity:1}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector label {position:relative;top:unset;left:unset;line-height:16px;cursor:pointer}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector a {color:#211a15;font-size:12px;font-style:normal;font-weight:400;line-height:normal;text-decoration-line:underline!important;text-decoration-style:solid;text-decoration-skip-ink:auto;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;text-transform:uppercase}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector {max-width:178px;min-height:96px;border-radius:5px;background-color:#ebe8e2;padding:12px 15px;display:flex;flex-direction:column}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector input {appearance:none;display:none;border:none;padding:0;width:0;height:0}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector label {position:relative;top:unset;left:unset;line-height:16px;cursor:pointer;width:100%;display:flex;flex-direction:column;gap:11px}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector label span {font-size:10px;font-style:normal;font-weight:600;line-height:11px;letter-spacing:2px;text-transform:uppercase;color:#211a15}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector input[type=checkbox]~svg.checkbox_svg {position:absolute;top:12px;right:15px;cursor:pointer}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector input[type=checkbox]~svg.checkbox_svg .checkbox_svg_tick {opacity:0;transition:opacity .3s ease-in-out}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector input[type=checkbox]:checked~svg.checkbox_svg .checkbox_svg_tick {opacity:1}
.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector a {font-size:12px;font-style:normal;font-weight:400;line-height:normal;text-decoration-line:underline!important;text-decoration-style:solid;text-decoration-skip-ink:auto;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;text-transform:uppercase;color:#645f5b;margin-top:auto}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox {position:relative;width:100%;display:flex;flex-direction:row;align-items:center}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox input[type=checkbox] {appearance:none;display:none;border:none;padding:0;width:0;height:0}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox label {min-width:120px;padding-right:30px;position:relative;cursor:pointer}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox label span {font-size:12px;font-style:normal;font-weight:600;line-height:normal;letter-spacing:2.4px;text-transform:uppercase;color:#554f4f;margin:0;line-height:16px}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox input[type=checkbox]~label svg.checkbox_svg {position:absolute;top:50%;right:0;transform:translateY(-50%);cursor:pointer}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox input[type=checkbox]~label svg.checkbox_svg .checkbox_svg_tick {opacity:0;transition:opacity .3s ease-in-out}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox input[type=checkbox]:checked~label svg.checkbox_svg .checkbox_svg_tick {opacity:1}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox .link {display:flex;flex-direction:row;align-items:center;margin-left:auto}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox .link span {font-size:12px;font-style:normal;font-weight:600;line-height:normal;letter-spacing:1.2px;text-transform:uppercase;color:#ce0212}
.taste-explore .reg-taste .input_row.checkbox_row .group_checkbox .link svg {margin-left:8px}

/* As on the register page: the account panel is fixed-width, here the cards
   wrap; Taste cards share a row in threes, Food cards keep their width. */
.taste-explore .reg-taste .input_row_elements {
	flex-wrap: wrap;
}

.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector {
	position: relative;
	flex: 1 1 calc(33.333% - 14px);
	max-width: none;
}

.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector {
	position: relative;
	flex: 0 0 178px;
}

.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector label svg:not(.checkbox_svg) {
	max-width: 28px;
	height: auto;
}

/* Hidden inputs stay hidden whatever the theme gives every input. */
.taste-explore .reg-taste input[type=checkbox] {
	height: 0;
}


/* --- Recipe Of The Month (section 9a of the template) ---------------------- *
 * The single recipe page's layout (recipe.css: .recipe-hero__*, .recipe-body,
 * .wrc-*), redrawn here under .taste-recipe so this page needs nothing else.
 * The gallery keeps the shared hero-gallery* classes (wiize-cart.js slides
 * it); only its look is set here.
 * -------------------------------------------------------------------------- */

.content_wrap.taste-recipe__wrap {
	padding-top: 100px;
	padding-bottom: 0;   /* the gap under it is the next section's padding-top */
}

/* "Recipe Of The Month" */
.taste-recipe__title {
	margin: 0 0 56px;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: clamp(40px, 4vw, 58px) !important;  /* style.css: h2 { 1.55rem !important } on small screens */
	line-height: 1;
	color: #000;
}

/* Name + date on the left, the wine card on the right. */
.taste-recipe__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 48px;
}

.taste-recipe__icon {
	display: block;
	width: 40px;
	height: 37px;
	margin-bottom: 6px;
}

.taste-recipe__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.taste-recipe__name {
	margin: 0;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: clamp(40px, 4.2vw, 60px) !important;
	line-height: .95;
	color: #6B5539;
}

.taste-recipe__name a {
	color: inherit;
	text-decoration: none;
}

.taste-recipe__name a:hover,
.taste-recipe__name a:focus-visible {
	color: #B3702D;
}

/* "RECIPE 4 SEPTEMBER 2025" */
.taste-recipe__date {
	margin: 10px 0 0;
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #6B5539;
}

.taste-recipe__wine {
	flex: 0 0 auto;
	width: 200px;
}

/* Text left, photos right — 50 / 50, as on the recipe page. */
.taste-recipe__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: end;
}

.taste-recipe__body::before,
.taste-recipe__body::after {
	content: none;   /* the theme's clearfix must not become grid cells */
}

.taste-recipe__info,
.taste-recipe__media {
	min-width: 0;
}

/* The round icons */
.taste-recipe__circles {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
}

.taste-recipe__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #EFE9E2;
	color: #fff;
}

.taste-recipe__circle.is-active {
	background: #7A4C1F;
}

.taste-recipe__circle svg {
	width: 22px;
	height: 22px;
}

/* "4 - 6p" */
.taste-recipe__portions {
	margin: 4px 0 14px;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: 28px;
	color: #1A1A1A;
}

/* Difficulty / cooking time / cost */
.taste-recipe__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.taste-recipe__pills li {
	margin: 0;
	padding: 6px 12px;
	border-radius: 3px;
	background: #E3DED8;
	color: #4A4A4A;
	font-family: 'Work Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.taste-recipe__desc {
	max-width: 520px;
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: #000;
}

.taste-recipe__desc p {
	margin: 0 0 1em;
}

/* "DISCOVER" */
.taste-recipe__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	min-height: 48px;
	margin-top: 16px;
	padding: 0 24px;
	border-radius: 4px;
	background: #7A4C1F;
	color: #fff;
	font-family: 'Work Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .18s ease;
}

.taste-recipe__button:hover,
.taste-recipe__button:focus-visible {
	background: #5E3A17;
	color: #fff;
}

/* The gallery — images stacked, the active one shown (wiize-cart.js). */
.taste-recipe .taste-recipe__gallery {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	background: #F2F0EC;
}

.taste-recipe .taste-recipe__gallery .hero-gallery__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	transform: none;
	object-fit: cover;
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}

.taste-recipe .taste-recipe__gallery .hero-gallery__img.is-active {
	opacity: 1;
	pointer-events: auto;
}

.taste-recipe .taste-recipe__bars {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.taste-recipe .taste-recipe__bars .hero-gallery__bar {
	flex: 1 1 auto;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #E0DDD8;
	cursor: pointer;
	transition: background-color .2s ease;
}

.taste-recipe .taste-recipe__bars .hero-gallery__bar.is-active {
	background: #B3702D;
}


/* --- Other recipes of the month (section 9b of the template) --------------- *
 * The card is wiize_render_recipe_card_big() (render-cards.php), styled by
 * recipe.css on the recipe listing — that file is not loaded here, so the
 * card's look is redrawn under .taste-other-recipes: one photo instead of
 * two, no round icons and no summary, an outlined "Discover".
 * -------------------------------------------------------------------------- */

/* The same gap above and below: 60px, set here alone. style.css gives every
   <section> `padding: 4% 0 0` (≈57px at 1440) — dropped for this section and
   for the banner under it, or both gaps grow by that much. */
.taste-other-recipes,
.taste-moment-page .np-focus-banner-section {
	padding-top: 0;
}

.content_wrap.taste-other-recipes__wrap {
	padding-top: 60px;
	padding-bottom: 60px;
}

/* "Other recipes of the month" — letterspaced italic, as in the design */
.taste-other-recipes__title {
	margin: 0 0 36px;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: clamp(28px, 2.4vw, 36px) !important;  /* style.css: h2 { 1.55rem !important } on small screens */
	line-height: 1.1;
	letter-spacing: .06em;
	color: #000;
}

.taste-other-recipes__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.taste-other-recipes__grid::before,
.taste-other-recipes__grid::after {
	content: none;   /* the theme's clearfix must not become grid cells */
}

.taste-other-recipes .wiize-recipe-card-big {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Recipe name */
.taste-other-recipes .wrc-title {
	margin: 0 0 10px;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: 28px !important;
	line-height: 1.1;
	color: #B3702D;
}

/* Difficulty / cooking time / cost */
.taste-other-recipes .wrc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.taste-other-recipes .wrc-pills li {
	margin: 0;
	padding: 4px 8px;
	border-radius: 3px;
	background: #E3DED8;
	color: #4A4A4A;
	font-family: 'Work Sans', sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* "Recipe #01" + date */
.taste-other-recipes .wrc-meta {
	margin-bottom: 14px;
}

.taste-other-recipes .wrc-number {
	display: block;
	margin-bottom: 4px;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: 20px;
	line-height: 22px;
	color: #000;
}

.taste-other-recipes .wrc-date {
	display: block;
	font-family: 'Work Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #2B2B2B;
}

/* One photo: the card brings two, the second one is hidden. */
.taste-other-recipes .wrc-images {
	display: block;
	margin-bottom: 20px;
	text-decoration: none;
}

.taste-other-recipes .wrc-images img.wrc-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1.15;
	object-fit: cover;
	border-radius: 4px;
}

.taste-other-recipes .wrc-images img.wrc-image + img.wrc-image,
.taste-other-recipes .wrc-buttons,
.taste-other-recipes .wrc-summary {
	display: none;
}

/* "DISCOVER" — outlined */
.taste-other-recipes .wrc-actions {
	margin-top: auto;
}

.taste-other-recipes .wrc-discover {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	min-height: 40px;
	padding: 0 20px;
	border: 1px solid #C7BDB0;
	border-radius: 4px;
	background: #fff;
	color: #7A4C1F;
	font-family: 'Work Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease;
}

.taste-other-recipes .wrc-discover:hover,
.taste-other-recipes .wrc-discover:focus-visible {
	border-color: #7A4C1F;
	background: #FBF8F5;
	color: #7A4C1F;
}


/* --- Featured recipe (section 9 of the template) --------------------------- *
 * The block itself is featured_content.css (the product pages' one); only the
 * room around it is set here. Its own 48px margin is dropped so the spacing
 * is this padding alone. `.content_wrap.` on purpose: style.css loads later
 * and resets `.content_wrap { padding: 0 Npx }` at the same weight.
 * -------------------------------------------------------------------------- */

.content_wrap.taste-featured-recipe {
	padding-top: 100px;
	padding-bottom: 120px;
}

.taste-featured-recipe .np-featured-content {
	margin: 0;
}


/* --- Responsive ------------------------------------------------------------ */

@media only screen and (max-width: 860px) {
	/* Below this width the section's height is its content's (no
	   aspect-ratio, see winemaker.css): leave room under the sentence so the
	   bottom of the artwork still shows. */
	.focus-hero--taste .focus-hero__top {
		padding-bottom: 64px;
	}

	.taste-mood__kicker {
		letter-spacing: .1em;
		margin-right: -.1em;
	}
}

@media only screen and (max-width: 560px) {
	.taste-mood__line {
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media only screen and (max-width: 860px) {
	.taste-ai {
		padding: 56px 0 72px;
	}

	.taste-ai .taste-ai__input {
		height: 68px;
		padding: 0 22px;
		font-size: 22px;
	}

	.taste-ai__icon {
		width: 42px;
		height: 53px;
		margin-right: 0;
	}
}

@media only screen and (max-width: 560px) {
	.taste-ai__kicker {
		font-size: 13px;
	}

	.taste-ai__text {
		font-size: 11px;
		letter-spacing: .14em;
	}

	.taste-ai .taste-ai__input {
		font-size: 18px;
	}
}

@media only screen and (max-width: 1024px) {
	.taste-explore__wines {
		grid-template-columns: repeat(2, 1fr);
	}

	.taste-explore__budget {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}
}

@media only screen and (max-width: 860px) {
	.taste-explore {
		padding: 72px 0;
	}

	.taste-explore__tabs {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.taste-explore .taste-explore__tab {
		min-height: 80px;
	}

	.taste-explore__tab-label {
		font-size: 16px;
	}

	.taste-explore__panel-inner {
		padding: 24px 16px;
	}

	.taste-explore .reg-taste .input_row .input_element.checkbox_element.wine_type_selector {
		flex-basis: 100%;
	}

	.taste-explore .reg-taste .input_row .input_element.checkbox_element.food_category_selector {
		flex: 1 1 calc(50% - 14px);
	}
}

@media only screen and (max-width: 560px) {
	.taste-explore__tabs {
		grid-template-columns: repeat(2, 1fr);
	}

	.taste-explore__wines {
		grid-template-columns: 1fr;
	}

	.taste-explore__budget-fields {
		flex-direction: column;
	}

	.taste-explore__actions {
		justify-content: stretch;
	}

	.taste-explore .taste-explore__submit {
		width: 100%;
	}
}

@media only screen and (max-width: 860px) {
	.content_wrap.taste-featured-recipe {
		padding-top: 64px;
		padding-bottom: 72px;
	}
}

@media only screen and (max-width: 860px) {
	.content_wrap.taste-recipe__wrap {
		padding-top: 64px;
		padding-bottom: 0;
	}

	/* 40px above and below */
	.content_wrap.taste-other-recipes__wrap {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.taste-recipe__title {
		margin-bottom: 36px;
	}

	.taste-recipe__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.taste-recipe__body {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media only screen and (max-width: 1024px) {
	.taste-other-recipes__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 24px;
	}
}

@media only screen and (max-width: 560px) {
	.taste-other-recipes__grid {
		grid-template-columns: 1fr;
	}
}


/* ===========================================================================
 * 8a. This Month (templates/taste-of-the-moment.php, after Explore Manually)
 * ========================================================================= */
.taste-month {
	--taste-month-bg:   #006042;
	--taste-month-card: rgba(255, 255, 255, .17);
	--taste-month-ink:  #fff;

	padding: 56px 0 64px;
	background: var(--taste-month-bg);
	color: var(--taste-month-ink);
}

.taste-month__title {
	margin: 0 0 34px;
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
	font-size: clamp(32px, 2.6vw, 40px) !important;
	line-height: 1.1;
	color: var(--taste-month-ink);
}

.taste-month__list {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.taste-month__card {
	min-height: 128px;
	padding: 14px 24px 24px;
	background: var(--taste-month-card);
	border-radius: 3px;
}

.taste-month__label,
.taste-month__text {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 500;
	letter-spacing: .14em;
	color: var(--taste-month-ink);
}

.taste-month__label {
	margin: 0 0 18px;
	font-size: 15px !important;
	line-height: 1.3;
	text-transform: uppercase;
}

.taste-month__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
}

@media only screen and (max-width: 560px) {
	.taste-month {
		padding: 40px 0 48px;
	}

	.taste-month__card {
		min-height: 0;
		padding: 14px 18px 22px;
	}
}
