.tw-festive {
	--tw-festive-border: #e8e8e8;
	--tw-festive-muted: #666;
	margin-inline: auto;
	max-width: 1600px;
}

.tw-festive-heading {
	padding: 12px 18px 24px;
	text-align: center;
}

.tw-festive-page .page-title {
	margin-bottom: 0;
	padding-block: 24px 12px;
}

.tw-festive-page #main-content { padding-block-start: 6px; }

.tw-festive-heading .tw-festive-campaign-title {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	text-wrap: balance;
}

.tw-festive-heading p {
	max-width: 35ch;
	margin: 0 auto 22px;
	color: var(--tw-festive-muted);
	font-size: 15px;
	line-height: 1.55;
	text-wrap: balance;
}

.tw-festive-genders {
	display: flex;
	gap: 4px;
	width: min(100%, 260px);
	margin-inline: auto;
	padding: 5px;
	border-radius: 14px;
	background: #f0f0f0;
}

.tw-festive-genders a {
	display: grid;
	flex: 1;
	min-height: 42px;
	place-items: center;
	border-radius: 11px;
	color: var(--tw-festive-muted);
	font-size: 14px;
}

.tw-festive-genders a[aria-current] {
	background: #fff;
	box-shadow: 0 2px 6px #0001;
	color: #222;
}

.tw-festive-categories {
	display: flex;
	justify-content: safe center;
	gap: 8px;
	overflow-x: auto;
	padding: 0 6px 24px;
	scrollbar-width: thin;
}

.tw-festive-categories a {
	flex: 0 0 auto;
	padding: 9px 17px;
	border: 1px solid var(--tw-festive-border);
	border-radius: 20px;
	font-size: 13px;
	line-height: 1.5;
}

.tw-festive-categories a[aria-current] {
	border-color: #222;
	background: #222;
	color: #fff;
}

.tw-festive-results {
	padding-bottom: 40px;
}

.tw-festive-results-line,
.tw-festive-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--tw-festive-border);
}

.tw-festive-results-line {
	justify-content: flex-end;
	padding-block: 10px;
	font-size: 12px;
}

.tw-festive-results-line p {
	flex: 0 0 auto;
	margin: 0;
	color: var(--tw-festive-muted);
}

.tw-festive-filter-bar {
	padding-block: 12px;
	border-bottom: 1px solid var(--tw-festive-border);
}

.tw-festive-form-home {
	width: 100%;
}

.tw-festive-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin: 0;
}

.tw-festive-field {
	display: block;
	width: min(100%, 145px);
	margin: 0;
}

.tw-festive-field > span:first-child,
.tw-festive-field-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.tw-festive .tw-festive-field select,
.tw-festive .tw-festive-brand-field .select2-selection--single {
	width: 100%;
	height: 42px;
	margin: 0;
	border: 1px solid var(--tw-festive-border);
	border-radius: 12px;
	background-color: #fff;
	color: #333;
	font-size: 13px;
}

.tw-festive-brand-field { position: relative; }

.tw-festive .tw-festive-brand-field .select2-selection--single {
	display: flex;
	align-items: center;
}

.tw-festive .tw-festive-brand-field .select2-selection__rendered {
	width: 100%;
	padding-inline: 12px 28px;
	color: inherit;
	line-height: 1.4;
}

.tw-festive .tw-festive-brand-field .select2-selection__arrow {
	inset: 0 5px 0 auto;
	height: auto;
}

.tw-festive .tw-festive-brand-field .select2-container--open .select2-dropdown {
	min-width: min(200px, 100vw);
	border-color: var(--tw-festive-border);
}

.tw-festive .tw-festive-brand-field .select2:not(.select2-container--open) .select2-dropdown {
	display: none;
}

.tw-festive .tw-festive-brand-field .select2-search__field {
	min-height: 36px;
	margin: 0;
	border-radius: 6px;
	font-size: 16px;
}

.tw-festive-category-field { width: min(100%, 175px); }
.tw-festive-sort-field { margin-inline-start: auto; }

.tw-festive-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tw-festive .tw-festive-apply {
	min-height: 42px;
	padding-inline: 14px;
	border-radius: 10px;
	background: #222;
	color: #fff;
	font-size: 12px;
}

.tw-festive button.tw-festive-filter-opener,
.tw-festive-mobile-sort,
.tw-festive-drawer-clear {
	display: none;
}

.tw-festive-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 15px;
}

.tw-festive-active a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 5px 9px;
	border: 1px solid var(--tw-festive-border);
	border-radius: 7px;
	background: #f7f7f7;
	font-size: 12px;
}

.tw-festive-active .tw-festive-clear {
	border-color: transparent;
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tw-festive-results > .wd-products {
	margin-top: 28px;
}

.tw-festive-empty {
	padding: 64px 15px;
	text-align: center;
}

.tw-festive-empty h2 {
	font-size: 22px;
}

.tw-festive-pagination,
.tw-festive-scroll {
	margin-top: 30px;
}

.tw-festive-pagination ul {
	flex-wrap: wrap;
}

.tw-festive-scroll {
	text-align: center;
}

.tw-festive-scroll-status {
	margin: 10px 0 0;
	color: var(--tw-festive-muted);
}

.tw-festive-scroll-status:empty {
	margin: 0;
}

.tw-festive .tw-festive-scroll[hidden],
.tw-festive .tw-festive-pagination[hidden],
.tw-festive .tw-festive-more[hidden] {
	display: none;
}

.tw-festive a:focus-visible,
.tw-festive button:focus-visible,
.tw-festive input:focus-visible,
.tw-festive select:focus-visible,
.tw-festive .tw-festive-brand-field .select2-selection:focus-visible {
	outline: 2px solid #333;
	outline-offset: 3px;
}

.tw-festive-filter-dialog {
	inset: 0 auto 0 0;
	width: min(90vw, 390px);
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 20px 20px 0;
	background: #fff;
	color: #222;
	overscroll-behavior: contain;
}

.tw-festive-filter-dialog[open] {
	display: flex;
	flex-direction: column;
}

.tw-festive-filter-dialog::backdrop {
	background: #0006;
}

.tw-festive-filter-dialog > header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	border-bottom: 1px solid var(--tw-festive-border);
}

.tw-festive-filter-dialog h2 {
	margin: 0;
	font-size: 22px;
}

.tw-festive button.tw-festive-filter-close {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	background: transparent;
	color: #222;
	font-size: 26px;
	line-height: 1;
}

.tw-festive-dialog-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 24px 22px;
}

.tw-festive-filter-dialog .tw-festive-form {
	display: grid;
	gap: 18px;
}

.tw-festive-filter-dialog .tw-festive-field {
	width: 100%;
}

.tw-festive-filter-dialog .tw-festive-field > span:first-child,
.tw-festive-filter-dialog .tw-festive-field-label {
	position: static;
	display: block;
	width: auto;
	height: auto;
	margin-bottom: 6px;
	clip-path: none;
	font-size: 13px;
	font-weight: 700;
}

.tw-festive-filter-dialog .tw-festive-field select,
.tw-festive .tw-festive-filter-dialog .tw-festive-brand-field .select2-selection--single {
	height: 46px;
	font-size: 16px;
}

.tw-festive-filter-dialog .tw-festive-sort-field { display: none; }
.tw-festive-filter-dialog .tw-festive-form-actions { justify-content: space-between; }
.tw-festive-filter-dialog .tw-festive-drawer-clear { display: inline; text-decoration: underline; }
.tw-festive-filter-dialog .tw-festive-apply { flex: 1; }

@media (max-width: 800px) {
	.tw-festive-page .page-title { padding-block: 14px 8px; }
	.tw-festive-page #main-content { padding-block-start: 2px; }
	.tw-festive-heading { padding-block: 8px 20px; }
	.tw-festive-heading .tw-festive-campaign-title { font-size: 18px; }
	.tw-festive-heading p { margin-bottom: 17px; font-size: 13px; }
	.tw-festive-genders { width: min(100%, 222px); }
	.tw-festive-genders a { min-height: 38px; font-size: 13px; }
	.tw-festive-categories { justify-content: flex-start; padding-bottom: 18px; }
	.tw-festive-categories a { padding: 8px 14px; font-size: 12px; }
	.tw-festive-results-line { padding-block: 8px; font-size: 11px; }
	.tw-festive-filter-bar { padding-block: 4px; }
	.tw-festive-ready .tw-festive-form-home { display: none; }
	.tw-festive-ready button.tw-festive-filter-opener {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		min-height: 44px;
		padding-inline: 4px;
		background: transparent;
		color: #222;
		font-size: 12px;
		font-weight: 500;
	}
	.tw-festive-ready .tw-festive-mobile-sort { display: block; margin: 0; }
	.tw-festive-mobile-sort .tw-festive-field { width: min(44vw, 155px); }
	.tw-festive .tw-festive-mobile-sort select { border-color: transparent; font-size: 12px; }
	.tw-festive-results > .wd-products { margin-top: 16px; }
}
