/* 3001Web Recipes — front end.
 * Colours are CSS custom properties: override them in your theme/Beaver Builder global CSS, e.g.
 * .twr-recipes, .twr-recipe { --twr-accent: #b5121b; }
 */
.twr-recipes,
.twr-recipe {
	--twr-text: #232323;
	--twr-muted: #606060;
	--twr-card-bg: #f7f7f7;
	--twr-border: #333333;
	--twr-accent: #000000;
	--twr-accent-text: #ffffff;
	--twr-button-bg: #3e4349;
	--twr-button-text: #ffffff;
	--twr-star: #f5a623;
	--twr-star-empty: #d6d6d6;
	--twr-radius: 5px;
	--twr-gap: 20px;
	color: var(--twr-text);
}

.twr-recipes *,
.twr-recipe * {
	box-sizing: border-box;
}

.twr-recipes .screen-reader-text,
.twr-recipe .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- Filter ---------- */
.twr-filter {
	margin: 0 0 30px;
}

.twr-filter__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.twr-filter__list li {
	margin: 0;
	padding: 0;
}

.twr-filter__btn {
	display: inline-block;
	padding: 12px 15px;
	border: 1px solid var(--twr-border);
	border-radius: var(--twr-radius);
	background: #fff;
	color: var(--twr-text);
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.twr-filter__btn:hover,
.twr-filter__btn:focus-visible,
.twr-filter__btn.is-active {
	background: var(--twr-accent);
	color: var(--twr-accent-text);
	text-decoration: none;
}

.twr-filter__btn:focus-visible,
.twr-card__link:focus-visible,
.twr-page:focus-visible,
.twr-button:focus-visible {
	outline: 2px solid var(--twr-accent);
	outline-offset: 2px;
}

/* ---------- Grid ---------- */
.twr-results {
	transition: opacity 0.2s;
}

.twr-results[aria-busy="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.twr-grid {
	display: grid;
	grid-template-columns: repeat(var(--twr-cols, 4), minmax(0, 1fr));
	gap: var(--twr-gap);
}

.twr-grid--c1 { --twr-cols: 1; }
.twr-grid--c2 { --twr-cols: 2; }
.twr-grid--c3 { --twr-cols: 3; }
.twr-grid--c4 { --twr-cols: 4; }
.twr-grid--c5 { --twr-cols: 5; }
.twr-grid--c6 { --twr-cols: 6; }

@media (max-width: 1024px) {
	.twr-grid--c4,
	.twr-grid--c5,
	.twr-grid--c6 {
		--twr-cols: 3;
	}
}

@media (max-width: 768px) {
	.twr-grid--c3,
	.twr-grid--c4,
	.twr-grid--c5,
	.twr-grid--c6 {
		--twr-cols: 2;
	}
}

@media (max-width: 480px) {
	.twr-grid.twr-grid {
		--twr-cols: 1;
	}
}

.twr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 10px;
	background: var(--twr-card-bg);
	transition: box-shadow 0.2s, transform 0.2s;
}

.twr-card:hover,
.twr-card:focus-within {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.twr-card__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e9e9e9;
}

.twr-card__img,
.twr-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.twr-card__body {
	padding: 15px 5px 5px;
}

.twr-card__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.35;
}

.twr-card__link {
	color: inherit;
	text-decoration: none;
}

/* Make the whole card clickable while keeping the category links usable. */
.twr-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.twr-card__author,
.twr-card__terms,
.twr-card__rating {
	margin: 0 0 6px;
	color: var(--twr-muted);
	font-size: 14px;
	line-height: 1.5;
}

.twr-card__terms {
	position: relative;
	z-index: 2;
	font-size: 15px;
}

.twr-card__terms a {
	color: var(--twr-muted);
	text-decoration: none;
}

.twr-card__terms a:hover,
.twr-card__terms a:focus-visible {
	color: var(--twr-text);
	text-decoration: underline;
}

.twr-empty {
	text-align: center;
	padding: 30px 0;
}

/* ---------- Pagination ---------- */
.twr-pagination {
	margin: 30px 0 0;
}

.twr-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.twr-pagination li {
	margin: 0;
}

.twr-page {
	display: inline-block;
	min-width: 42px;
	padding: 10px 12px;
	border: 1px solid #e6e6e6;
	color: var(--twr-text);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

a.twr-page:hover {
	background: #f7f7f7;
}

.twr-page--current {
	background: #eee;
	color: #000;
}

.twr-page--dots {
	border-color: transparent;
}

/* ---------- Stars ---------- */
.twr-stars {
	position: relative;
	display: inline-block;
	width: 5.5em;
	height: 1.1em;
	vertical-align: middle;
	font-size: 16px;
	background: var(--twr-star-empty);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") repeat-x left center / 1.1em 1.1em;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") repeat-x left center / 1.1em 1.1em;
}

.twr-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--twr-star);
}

/* ---------- Single recipe ---------- */
/* Layout responds to the width of the content area it sits in (container queries), not just the screen. */
.twr-recipe-wrap {
	container-type: inline-size;
	container-name: twr;
}

.twr-recipe {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	margin: 0 0 30px;
}

.twr-recipe--has-sidebar {
	grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 1.6fr);
}

@container twr (max-width: 900px) {
	.twr-recipe--has-sidebar {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.twr-recipe__sidebar {
		grid-column: 1 / -1;
		display: flex;
		flex-wrap: wrap;
		gap: 0 40px;
	}
}

@container twr (max-width: 600px) {
	.twr-recipe,
	.twr-recipe--has-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
}

.twr-heading {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
}

.twr-heading--icon {
	display: flex;
	align-items: center;
	gap: 10px;
}

.twr-icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	color: var(--twr-text);
}

.twr-submitted {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
}

.twr-featured {
	margin: 0 0 20px;
}

.twr-featured img,
.twr-video img {
	display: block;
	width: 100%;
	height: auto;
}

.twr-video-wrap {
	margin: 0 0 20px;
	text-align: center;
}

.twr-video iframe,
.twr-video video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.twr-video--embed iframe {
	height: auto;
}

.twr-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

.twr-button {
	flex: 1 1 140px;
	display: inline-block;
	padding: 14px 18px;
	border: 1px solid var(--twr-border);
	border-radius: var(--twr-radius);
	background: var(--twr-accent);
	color: var(--twr-accent-text);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.twr-button:hover {
	background: var(--twr-button-bg);
	color: var(--twr-button-text);
	text-decoration: none;
}

.twr-buttons--nav .twr-button {
	background: var(--twr-button-bg);
	color: var(--twr-button-text);
}

.twr-buttons--nav .twr-button:hover {
	background: var(--twr-accent);
}

.twr-share {
	margin: 0 0 20px;
	text-align: center;
}

.twr-share__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.twr-share__list li {
	margin: 0;
}

.twr-share__link {
	display: inline-block;
	padding: 7px 12px;
	border-radius: var(--twr-radius);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
}

.twr-share__link:hover,
.twr-share__link:focus-visible {
	color: #fff;
	opacity: 0.85;
	text-decoration: none;
}

.twr-share__link--facebook { background: #1877f2; }
.twr-share__link--x { background: #000; }
.twr-share__link--whatsapp { background: #128c4b; }
.twr-share__link--pinterest { background: #bd081c; }
.twr-share__link--email { background: #555; }

.twr-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.twr-gallery li {
	margin: 0;
}

.twr-gallery__link {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.twr-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.twr-gallery__link:hover .twr-gallery__img {
	transform: scale(1.05);
}

.twr-section {
	margin: 0 0 25px;
}

.twr-description__content > :last-child,
.twr-ingredients__content > :last-child,
.twr-instructions__content > :last-child {
	margin-bottom: 0;
}

.twr-ingredients__content p {
	margin: 0 0 6px;
}

.twr-instructions__content ol,
.twr-instructions__content ul {
	margin: 0 0 1em 1.3em;
	padding: 0;
}

.twr-instructions__content li {
	margin: 0 0 8px;
}

.twr-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 20px;
}

.twr-rating__text {
	color: var(--twr-muted);
	font-size: 14px;
}

.twr-rate {
	flex: 1 1 100%;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.twr-rate__legend {
	float: left;
	margin: 0 10px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 28px;
}

.twr-rate__stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.twr-rate__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.twr-rate__label {
	display: inline-block;
	width: 28px;
	height: 28px;
	cursor: pointer;
	background: var(--twr-star-empty);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
	transition: background-color 0.15s;
}

/* Highlight hovered/checked star and every star before it (row-reverse order). */
.twr-rate__stars:not(.is-done) .twr-rate__label:hover,
.twr-rate__stars:not(.is-done) .twr-rate__label:hover ~ .twr-rate__label,
.twr-rate__input:checked ~ .twr-rate__label {
	background: var(--twr-star);
}

.twr-rate__input:focus-visible + .twr-rate__label {
	outline: 2px solid var(--twr-accent);
	outline-offset: 1px;
}

.twr-rate__stars.is-done .twr-rate__label {
	cursor: default;
}

.twr-rate__status {
	margin: 4px 0 0;
	font-size: 14px;
	min-height: 1.4em;
}

.twr-details {
	list-style: none;
	margin: 0 0 15px;
	padding: 0;
}

.twr-detail {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0;
}

.twr-detail__label {
	font-weight: 600;
}

.twr-detail--time .twr-detail__value {
	font-weight: 700;
}

.twr-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 25px;
	padding: 12px 14px;
	background: var(--twr-card-bg);
	font-size: 14px;
	font-style: italic;
}

.twr-cats {
	margin: 0 0 30px;
}

.twr-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.twr-cats__list li {
	margin: 0 0 8px;
}

.twr-cats__list a {
	color: var(--twr-muted);
	text-decoration: none;
}

.twr-cats__list a:hover,
.twr-cats__list a:focus-visible {
	color: var(--twr-text);
	text-decoration: underline;
}

/* ---------- Lightbox ---------- */
.twr-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
}

.twr-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

.twr-lightbox__img {
	position: absolute;
	inset: 60px 70px;
	width: calc(100% - 140px);
	height: calc(100% - 120px);
	object-fit: contain;
}

.twr-lightbox__btn {
	position: absolute;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 26px;
	line-height: 48px;
	text-align: center;
	cursor: pointer;
	padding: 0;
}

.twr-lightbox__btn:hover,
.twr-lightbox__btn:focus-visible {
	background: rgba(255, 255, 255, 0.3);
}

.twr-lightbox__close { top: 10px; right: 10px; }
.twr-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.twr-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
	.twr-lightbox__img {
		inset: 60px 10px;
		width: calc(100% - 20px);
	}
	.twr-lightbox__prev,
	.twr-lightbox__next {
		top: auto;
		bottom: 10px;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.twr-card,
	.twr-results,
	.twr-gallery__img {
		transition: none;
	}
	.twr-card:hover,
	.twr-card:focus-within {
		transform: none;
	}
}

/* ---------- [3001web_buy_buttons] ---------- */
.twr-buy-bar .twr-buttons {
	justify-content: center;
	margin: 0;
}

.twr-buy-bar .twr-button {
	flex: 0 1 auto;
	min-width: 200px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.twr-buy-bar .twr-button {
		flex: 1 1 100%;
		white-space: normal;
	}
}
