/* Laruba Banners — listing banners, popups, cart boxes, home captions.
   Fonts are inherited from the theme; colours come from the settings as
   CSS variables, with the shop's own palette as defaults. */

/* Anton (SIL OFL) is bundled — see fonts/LICENSE-Anton.txt. */
@font-face {
	font-family: "Laruba Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/anton-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Laruba Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/anton-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ------------------------------------------------------------ grid cells */

.products .lb-cell {
	display: none;
	list-style: none;
	margin: 0 0 32px;
}

@media (min-width: 992px) {
	.products .lb-cell.lb-on-d { display: block; }
}

@media (min-width: 768px) and (max-width: 991px) {
	.products .lb-cell.lb-on-t { display: block; }
}

@media (max-width: 767px) {
	.products .lb-cell.lb-on-m { display: block; }
	.products .lb-cell { margin-bottom: 18px; }
}

/* ---------------------------------------------------------------- banner */

.lb-banner {
	--lb-bg: #f4f1ec;
	--lb-fg: #1d1d1d;
	--lb-accent: #8a7442;
	--lb-btn-bg: #1d1d1d;
	--lb-btn-fg: #ffffff;
	--lb-border: transparent;
	--lb-radius: 0px;
	--lb-title: 26px;
	--lb-title-m: 19px;
	--lb-text: 14px;
	--lb-title-w: 500;
	container-type: inline-size;
	width: 100%;
}

/* Two classes: Goya zeroes vertical padding on `.et-main-products a`. */
.lb-banner .lb-banner__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	box-sizing: border-box;
	width: 100%;
	min-height: 128px;
	padding: 28px 36px;
	overflow: hidden;
	color: var(--lb-fg);
	background: var(--lb-bg);
	border: 1px solid var(--lb-border);
	border-radius: var(--lb-radius);
	text-decoration: none;
	isolation: isolate;
}

a.lb-banner__link:hover,
a.lb-banner__link:focus {
	color: var(--lb-fg);
	text-decoration: none;
}

a.lb-banner__link:focus-visible {
	outline: 2px solid var(--lb-accent);
	outline-offset: 3px;
}

.lb-size-compact .lb-banner__link { min-height: 0; padding: 18px 28px; gap: 22px; }
.lb-size-large .lb-banner__link { min-height: 190px; padding: 44px 52px; }

.lb-banner__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lb-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.lb-banner__icon {
	display: flex;
	flex: 0 0 auto;
	color: var(--lb-accent);
}

.lb-banner__icon .lb-icon {
	width: 46px;
	height: 46px;
}

.lb-size-compact .lb-banner__icon .lb-icon { width: 34px; height: 34px; }

.lb-banner__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.lb-banner__kicker {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.04em;
	color: var(--lb-accent);
}

.lb-kicker-upper .lb-banner__kicker {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lb-banner__title {
	display: block;
	font-size: var(--lb-title);
	font-weight: var(--lb-title-w);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: inherit;
	text-wrap: balance;
}

.lb-banner__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin-top: 2px;
	font-size: var(--lb-text);
	line-height: 1.45;
}

.lb-banner__line {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	opacity: 0.88;
}

.lb-lines-inline .lb-banner__line + .lb-banner__line::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 10px 0 12px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	transform: translateY(-3px);
}

.lb-lines-list .lb-banner__lines,
.lb-lines-stack .lb-banner__lines {
	flex-direction: column;
}

.lb-lines-list .lb-banner__line { align-items: center; }

.lb-banner__check {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: var(--lb-accent);
}

.lb-banner__btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.03em;
	white-space: nowrap;
	color: var(--lb-btn-fg);
	background: var(--lb-btn-bg);
	border: 1px solid var(--lb-btn-bg);
	border-radius: calc(var(--lb-radius) / 2);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.lb-btn-outline .lb-banner__btn {
	color: var(--lb-btn-bg);
	background: transparent;
}

.lb-btn-link .lb-banner__btn {
	padding: 0 0 3px;
	color: inherit;
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
}

.lb-arrow {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

a.lb-banner__link:hover .lb-arrow,
a.lb-banner__link:focus-visible .lb-arrow {
	transform: translateX(4px);
}

.lb-btn-solid a.lb-banner__link:hover .lb-banner__btn {
	background: color-mix(in srgb, var(--lb-btn-bg) 85%, var(--lb-bg));
}

.lb-btn-outline a.lb-banner__link:hover .lb-banner__btn {
	color: var(--lb-btn-fg);
	background: var(--lb-btn-bg);
}

/* Icon above the text */
.lb-icon-top .lb-banner__link { align-items: center; }
.lb-icon-top .lb-banner__link { flex-wrap: wrap; }
.lb-icon-top .lb-banner__icon { flex-basis: 100%; }
.lb-icon-top .lb-banner__icon .lb-icon { width: 36px; height: 36px; }

/* Stacked layout */
.lb-layout-stack .lb-banner__link {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.lb-layout-stack .lb-banner__body { flex: 0 1 auto; }

.lb-align-center .lb-banner__link { justify-content: center; text-align: center; }
.lb-align-center .lb-banner__body { align-items: center; }
.lb-align-center .lb-banner__lines { justify-content: center; }
.lb-align-center.lb-layout-stack .lb-banner__link,
.lb-align-center.lb-icon-top .lb-banner__link { align-items: center; }
.lb-align-center .lb-banner__icon { justify-content: center; }
.lb-align-center.lb-layout-split .lb-banner__body { flex: 0 1 auto; }

/* Image banner */
.lb-banner--image .lb-banner__link {
	display: block;
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
}

.lb-banner__picture,
.lb-banner__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Narrow banner (phones, and the phone preview in the admin) */
@container (max-width: 640px) {
	.lb-banner .lb-banner__link {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 12px 16px;
		min-height: 0;
		padding: 22px 20px;
	}

	.lb-size-compact .lb-banner__link { padding: 16px 18px; }
	.lb-size-large .lb-banner__link { min-height: 0; padding: 30px 22px; }

	.lb-banner__icon .lb-icon { width: 32px; height: 32px; }

	.lb-banner__body { flex: 1 1 calc(100% - 48px); }
	.lb-icon-top .lb-banner__body,
	.lb-no-icon .lb-banner__body,
	.lb-layout-stack .lb-banner__body { flex-basis: 100%; }

	.lb-banner__title { font-size: var(--lb-title-m); }

	.lb-banner__lines { font-size: max(12px, calc(var(--lb-text) - 1px)); }

	.lb-lines-inline .lb-banner__lines { flex-direction: column; }
	.lb-lines-inline .lb-banner__line + .lb-banner__line::before { display: none; }

	.lb-banner__btn {
		margin-left: 48px;
		padding: 10px 16px;
		font-size: 12px;
	}

	.lb-icon-top .lb-banner__btn,
	.lb-no-icon .lb-banner__btn,
	.lb-layout-stack .lb-banner__btn,
	.lb-align-center .lb-banner__btn { margin-left: 0; }

	.lb-align-center .lb-banner__link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.lb-arrow,
	.lb-banner__btn { transition: none; }
}

/* ---------------------------------------------------------------- popups */

body.lbp-open { overflow: hidden; }

.lbp {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.lbp[hidden] { display: none; }

.lbp__overlay {
	position: absolute;
	inset: 0;
	background: rgba(29, 29, 29, 0.55);
	animation: lbp-fade 0.2s ease;
}

.lbp__dialog {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: auto;
	box-sizing: border-box;
	color: #1d1d1d;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(29, 29, 29, 0.25);
	animation: lbp-rise 0.25s ease;
	overscroll-behavior: contain;
}

.lbp--with-media .lbp__dialog { max-width: 860px; }

.lbp__media {
	flex: 0 0 42%;
	background: #f4f1ec;
}

.lbp__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lbp__content {
	flex: 1 1 auto;
	min-width: 0;
	padding: 40px 40px 34px;
}

.lbp__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: #1d1d1d;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.lbp__close:hover,
.lbp__close:focus-visible { background: #f4f1ec; }

.lbp__close:focus-visible,
.lbp a:focus-visible,
.lbp button:focus-visible,
.lbp input:focus-visible {
	outline: 2px solid #8a7442;
	outline-offset: 2px;
}

.lbp__eyebrow {
	margin: 0 0 14px;
	color: #b9a16b;
	line-height: 0;
}

.lbp__eyebrow-icon {
	width: 34px;
	height: 34px;
}

.lbp .lbp__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #1d1d1d;
}

.lbp__text {
	font-size: 14px;
	line-height: 1.6;
	color: #444444;
}

.lbp__text p {
	margin: 0 0 12px;
}

.lbp__text a,
.lbp-form__consent a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lbp__actions { margin: 20px 0 0; }

.lbp__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 3px;
	font-size: 14px;
	font-weight: 500;
	color: #1d1d1d;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.lbp__more:hover { color: #8a7442; text-decoration: none; }
.lbp__more:hover .lb-arrow { transform: translateX(4px); }

/* Delivery price list */
.lbp-ship { margin: 6px 0 20px; }

.lbp-ship__head {
	margin: 16px 0 6px;
	font-size: 13px;
	font-weight: 500;
	color: #8a7442;
}

.lbp-ship__head:first-child { margin-top: 0; }

.lbp-ship__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #e6e1d8;
}

.lbp-ship__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	font-size: 15px;
	line-height: 1.3;
	border-bottom: 1px solid #e6e1d8;
}

.lbp-ship__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: #8a7442;
}

.lbp-ship__name { flex: 1 1 auto; }

.lbp-ship__price {
	flex: 0 0 auto;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.lbp-ship__row.is-free {
	margin: 6px 0 0;
	padding: 12px 14px;
	background: #eaf4ec;
	border-bottom: 0;
}

.lbp-ship__row.is-free .lbp-ship__icon,
.lbp-ship__row.is-free .lbp-ship__price { color: #2f7a47; }

/* Newsletter form */
.lbp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.lbp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.lbp-form { margin-top: 22px; }

.lbp-form__row {
	display: flex;
	gap: 8px;
}

.lbp .lbp-form__email {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font-size: 15px;
	color: #1d1d1d;
	background: #ffffff;
	border: 1px solid #c9c3b8;
	border-radius: 0;
	box-shadow: none;
}

.lbp .lbp-form__email:focus { border-color: #1d1d1d; }

.lbp .lbp-form__submit {
	flex: 0 0 auto;
	height: 48px;
	margin: 0;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 500;
	line-height: 48px;
	color: #ffffff;
	background: #1d1d1d;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.lbp .lbp-form__submit:hover { background: #3a3a3a; }
.lbp .lbp-form__submit[disabled] { opacity: 0.6; cursor: progress; }

.lbp-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #555555;
	cursor: pointer;
}

.lbp-form__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #1d1d1d;
}

.lbp-form__msg {
	margin: 12px 0 0;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.5;
	background: #f4f1ec;
}

.lbp-form__msg.is-error {
	color: #8f1d1d;
	background: #fbeeee;
}

.lbp-form__note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #777777;
}

.lbp-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 6px 0 16px;
}

.lbp-code__value {
	padding: 12px 18px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #1d1d1d;
	background: #f4f1ec;
	border: 1px dashed #8a7442;
	user-select: all;
}

.lbp .lbp-code__copy {
	height: 40px;
	padding: 0 14px;
	font-size: 13px;
	color: #1d1d1d;
	background: transparent;
	border: 1px solid #1d1d1d;
	border-radius: 0;
	cursor: pointer;
}

.lbp-success__text {
	font-size: 14px;
	line-height: 1.6;
	color: #444444;
}

@keyframes lbp-fade { from { opacity: 0; } }
@keyframes lbp-rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 640px) {
	.lbp { align-items: flex-end; padding: 0; }
	.lbp__dialog {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
	}
	.lbp__media { display: none; }
	.lbp__content { padding: 34px 22px 26px; }
	.lbp .lbp__title { font-size: 22px; padding-right: 30px; }
	.lbp-form__row { flex-direction: column; }
	.lbp .lbp-form__submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.lbp__overlay,
	.lbp__dialog { animation: none; }
}

/* Popup shown in place (admin preview) */
.lbp--inline {
	position: static;
	padding: 0;
}

.lbp--inline .lbp__overlay,
.lbp--inline .lbp__close { display: none; }

.lbp--inline .lbp__dialog {
	max-height: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	animation: none;
}

/* ------------------------------------------------------------- cart boxes */

.lbc {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 28px;
}

.lbc[hidden] { display: none; }

.lbc-box {
	--lbc-bg: #f4f1ec;
	--lbc-fg: #1d1d1d;
	--lbc-accent: #b9a16b;
	--lbc-success-bg: #eaf4ec;
	--lbc-success: #2f7a47;
	display: flex;
	align-items: center;
	gap: 16px;
	box-sizing: border-box;
	padding: 18px 22px;
	color: var(--lbc-fg);
	background: var(--lbc-bg);
}

.lbc-box p { margin: 0; }

.lbc-box__icon {
	display: flex;
	flex: 0 0 auto;
	color: var(--lbc-accent);
}

.lbc-box__icon .lb-icon {
	width: 34px;
	height: 34px;
}

.lbc-box__body {
	flex: 1 1 auto;
	min-width: 0;
}

.lbc-progress {
	border-left: 4px solid var(--lbc-accent);
}

.lbc-progress__title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
}

.lbc-amount {
	font-weight: 700;
	white-space: nowrap;
	box-shadow: inset 0 -0.42em 0 color-mix(in srgb, var(--lbc-accent) 45%, transparent);
}

.lbc-bar {
	position: relative;
	height: 8px;
	margin: 10px 0 8px;
	overflow: hidden;
	background: color-mix(in srgb, var(--lbc-fg) 10%, transparent);
	border-radius: 4px;
}

.lbc-bar__fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--lbc-accent);
	border-radius: 4px;
	transition: width 0.4s ease;
}

.lbc-progress__note {
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.85;
}

.lbc-progress.is-free {
	background: var(--lbc-success-bg);
	border-left-color: var(--lbc-success);
}

.lbc-progress.is-free .lbc-box__icon { color: var(--lbc-success); }
.lbc-progress.is-free .lbc-progress__title { margin-bottom: 2px; }

.lbc-locker {
	padding-top: 13px;
	padding-bottom: 13px;
}

.lbc-locker .lbc-box__icon .lb-icon {
	width: 26px;
	height: 26px;
}

.lbc-locker__text {
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.4;
}

.lbc-locker__text strong { font-weight: 600; }

.lbc .lbc__link {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 500;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.lbc-locker .lbc__link { color: var(--lbc-accent); }

.lbc .lbc__link:hover { opacity: 0.75; }

.lbc .lbc__link:focus-visible {
	outline: 2px solid var(--lbc-accent);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.lbc { margin-bottom: 20px; }
	.lbc-box { gap: 12px; padding: 14px 16px; }
	.lbc-box__icon .lb-icon { width: 28px; height: 28px; }
	.lbc-progress__title { font-size: 16px; }
	.lbc-locker { flex-wrap: wrap; }
	.lbc-locker__text { flex-basis: calc(100% - 40px); font-size: 14px; }
	.lbc-locker .lbc__link { margin-left: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.lbc-bar__fill { transition: none; }
}

/* --------------------------------------------------- home page captions */

/* The link (or div) around the photo; its own size is left to WPBakery. */
.lhb-host {
	position: relative !important;
	overflow: hidden;
	text-decoration: none !important;
}

.lhb {
	--lhb-w: 0.5;
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	box-sizing: border-box;
	padding: 7% 7% 6%;
	color: var(--lhb-color, #ffffff);
	pointer-events: none;
	isolation: isolate;
	/* The caption layer has the photo's size, so text can scale with it. */
	container-type: inline-size;
}

.lhb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 0, 0, var(--lhb-shade, 0.4)) 0%, rgba(0, 0, 0, 0) 55%);
}

.lhb--bottom-left { justify-content: flex-end; align-items: flex-start; text-align: left; }
.lhb--bottom-center { justify-content: flex-end; align-items: center; text-align: center; }
.lhb--center { justify-content: center; align-items: center; text-align: center; }
.lhb--top-left { justify-content: flex-start; align-items: flex-start; text-align: left; }
.lhb--top-center { justify-content: flex-start; align-items: center; text-align: center; }

.lhb--top-left::before,
.lhb--top-center::before {
	background: linear-gradient(to bottom, rgba(0, 0, 0, var(--lhb-shade, 0.4)) 0%, rgba(0, 0, 0, 0) 55%);
}

.lhb--center::before {
	background: rgba(0, 0, 0, calc(var(--lhb-shade, 0.4) * 0.6));
}

.lhb__text {
	display: block;
	max-width: 100%;
	/* Shrinks long words so they still fit the box. */
	font-size: min(calc(var(--lhb-size, 17) * 1cqw), calc(86cqw / (var(--lhb-chars, 6) * var(--lhb-w))));
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: var(--lhb-track, 0);
	overflow-wrap: anywhere;
}

.lhb--font-anton .lhb__text {
	font-family: "Laruba Anton", Impact, "Arial Narrow", sans-serif;
	font-weight: 400;
}

.lhb--font-theme { --lhb-w: 0.66; }

.lhb--upper .lhb__text { text-transform: uppercase; }

.lhb__sub {
	display: block;
	font-size: max(11px, calc(var(--lhb-size, 17) * 0.3cqw));
	line-height: 1.3;
	letter-spacing: 0.03em;
}

.lhb--shadow .lhb__text,
.lhb--shadow .lhb__sub {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 0, 0, 0.25);
}
