.tfh-ms {
	--tfh-bg: #f2f0ef;
	--tfh-line: #d8d4d0;
	--tfh-red: #8b1a1a;
	--tfh-gold: #c8a84b;
	--tfh-brown: #8A6A44;
	--tfh-green: #6fbf4b;
	--tfh-text: #333;
	color: var(--tfh-text);
	font-family: Arial, Helvetica, sans-serif;
	overflow-x: hidden;
	max-width: 100%;
}

.tfh-ms-searchbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.tfh-ms-q {
	flex: 1 1 220px;
	min-width: 180px;
	border: 2px solid #d2b48c;
	border-radius: 0;
	padding: 8px 12px;
	font-size: 14px;
	background: #fff;
}

.tfh-ms .tfh-ms-submit,
.tfh-ms .tfh-ms-tips-btn,
.elementor-element .tfh-ms .tfh-ms-submit,
.elementor-element .tfh-ms .tfh-ms-tips-btn {
	background: #8A6A44 !important;
	background-color: #8A6A44 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	padding: 10px 16px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	line-height: 1.2 !important;
	white-space: nowrap;
	box-shadow: none !important;
	min-height: 0 !important;
}

.tfh-ms .tfh-ms-submit:hover,
.tfh-ms .tfh-ms-tips-btn:hover,
.tfh-ms .tfh-ms-submit:focus,
.tfh-ms .tfh-ms-tips-btn:focus {
	background: #755836 !important;
	color: #fff !important;
}

.tfh-ms-tips {
	background: #fff;
	border: 1px solid var(--tfh-line);
	padding: 10px 12px;
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.45;
}

.tfh-ms-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	max-width: 100%;
}

.tfh-ms-main {
	min-width: 0;
	max-width: 100%;
	overflow-x: hidden;
}

.tfh-ms-filters {
	background: #f7f7f7;
	border: 1px solid var(--tfh-line);
	padding: 12px 14px 18px;
}

.tfh-ms-filter-kicker {
	font-size: 12px;
	color: #777;
	margin: 0 0 8px;
}

.tfh-ms-group {
	border-top: 1px solid var(--tfh-line);
	padding: 8px 0;
}

.tfh-ms-group summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
}

.tfh-ms-group label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	margin: 4px 0;
	cursor: pointer;
}

.tfh-ms-count {
	margin: 0 0 12px;
	font-size: 13px;
	color: #666;
}

.tfh-ms-grid {
	column-count: 4;
	column-gap: 8px;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.tfh-ms-card,
.elementor-element .tfh-ms-card {
	-webkit-column-break-inside: avoid;
	break-inside: avoid;
	page-break-inside: avoid;
	display: inline-block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	background-color: transparent !important;
	cursor: pointer;
	overflow: hidden;
	box-shadow: none !important;
	vertical-align: top;
	text-align: left;
	line-height: 0;
}

.tfh-ms-card:hover,
.tfh-ms-card:focus,
.tfh-ms-card:active,
.elementor-element .tfh-ms-card:hover,
.elementor-element .tfh-ms-card:focus,
.elementor-element .tfh-ms-card:active {
	padding: 0 !important;
	border: 0 !important;
	outline: none;
	box-shadow: none !important;
	background: none !important;
	background-color: transparent !important;
	filter: none;
	opacity: 1;
	transform: none;
}

.tfh-ms-card.is-broken {
	display: none !important;
}

.tfh-ms-card img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border: 0;
	font-size: 0;
	color: transparent;
	overflow: hidden;
}

.tfh-ms-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	align-items: center;
	padding: 22px 0 8px;
}

.tfh-ms-pager .tfh-ms-page-num,
.tfh-ms-pager .tfh-ms-page-nav,
.elementor-element .tfh-ms-pager button {
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	color: #555 !important;
	text-decoration: none !important;
	cursor: pointer;
	padding: 4px 8px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 1.2 !important;
	font-size: 14px !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.tfh-ms-pager .tfh-ms-page-num.is-active,
.elementor-element .tfh-ms-pager .tfh-ms-page-num.is-active {
	color: #8A6A44 !important;
	font-weight: 700;
	cursor: default;
	text-decoration: none !important;
}

.tfh-ms-pager .tfh-ms-page-nav {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	height: 28px !important;
	border: 1px solid #8A6A44 !important;
	color: #8A6A44 !important;
	font-size: 20px !important;
	line-height: 1 !important;
	padding: 0 !important;
}

.tfh-ms-pager .tfh-ms-page-ellipsis {
	color: #888;
	padding: 0 4px;
	letter-spacing: 0.12em;
	line-height: 1;
}

.tfh-ms-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(242, 240, 239, 0.97);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tfh-ms-lightbox[hidden] {
	display: none !important;
}

.tfh-ms-lb-img {
	max-width: 85vw;
	max-height: 82vh;
	object-fit: contain;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

.tfh-ms-lb-close,
.tfh-ms-lb-prev,
.tfh-ms-lb-next {
	position: fixed;
	background: rgba(242, 240, 239, 0.85);
	border: 1px solid var(--tfh-line);
	cursor: pointer;
	z-index: 100000;
	color: #444;
}

.tfh-ms-lb-close {
	top: 18px;
	right: 24px;
	font-size: 36px;
	line-height: 1;
	border: 0;
	background: none;
}

.tfh-ms-lb-prev,
.tfh-ms-lb-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 32px;
	padding: 12px 10px;
	border-radius: 4px;
}

.tfh-ms-lb-prev { left: 16px; }
.tfh-ms-lb-next { right: 16px; }

.tfh-ms-lb-close:hover,
.tfh-ms-lb-prev:hover,
.tfh-ms-lb-next:hover {
	color: var(--tfh-red);
}

.tfh-ms-lb-caption {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	font-size: 13px;
	background: rgba(242, 240, 239, 0.9);
	padding: 6px 16px;
	border-radius: 4px;
	max-width: 80vw;
	z-index: 100000;
}

.tfh-ms-lb-num {
	display: block;
	margin-bottom: 2px;
}

@media (max-width: 1100px) {
	.tfh-ms-grid { column-count: 3; }
}

@media (max-width: 900px) {
	.tfh-ms-layout { grid-template-columns: 1fr; }
	.tfh-ms-grid { column-count: 2; }
}

@media (max-width: 520px) {
	.tfh-ms-grid { column-count: 1; }
}

.tfh-ms-header-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	height: 44px;
	background: #fff;
	border: 2px solid #d2b48c;
	border-radius: 0;
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	box-shadow: none;
	font-family: "Open Sans", sans-serif;
}

.elementor-widget-shortcode .tfh-ms-header-search,
.elementor-element .tfh-ms-header-search {
	width: 100%;
	height: 44px;
	border: 2px solid #d2b48c;
	border-radius: 0;
	background: #fff;
}

.tfh-ms-header-search input[type="search"],
.elementor-widget-shortcode .tfh-ms-header-search input[type="search"] {
	flex: 1 1 auto;
	width: 100%;
	border: 0 !important;
	outline: none !important;
	margin: 0 !important;
	padding: 0 12px !important;
	background: #fff !important;
	box-shadow: none !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 14px !important;
	line-height: 40px !important;
	height: 40px !important;
	min-height: 0 !important;
	color: #555 !important;
	border-radius: 0 !important;
	text-align: center !important;
}

.tfh-ms-header-search input[type="search"]:not(:placeholder-shown),
.elementor-widget-shortcode .tfh-ms-header-search input[type="search"]:not(:placeholder-shown) {
	text-align: left !important;
}

.tfh-ms-header-search input[type="search"]::placeholder {
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #9a9a9a;
	opacity: 1;
	text-align: center;
}

.tfh-ms-header-search input[type="search"]:focus {
	outline: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

.tfh-ms-header-search input[type="search"]::-webkit-search-decoration,
.tfh-ms-header-search input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.tfh-ms-header-search .tfh-ms-header-submit,
.elementor-widget-shortcode .tfh-ms-header-search .tfh-ms-header-submit,
.elementor-element .tfh-ms-header-search button.tfh-ms-header-submit {
	flex: 0 0 44px;
	width: 44px !important;
	min-width: 44px !important;
	height: 40px !important;
	min-height: 0 !important;
	border: 0 !important;
	border-left: 0 !important;
	background: #fff !important;
	background-color: #fff !important;
	color: #6b6b6b !important;
	fill: #6b6b6b !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.tfh-ms-header-search .tfh-ms-header-submit svg {
	width: 22px;
	height: 22px;
	display: block;
}

.tfh-ms-header-search .tfh-ms-header-submit:hover,
.tfh-ms-header-search .tfh-ms-header-submit:focus {
	color: #555 !important;
	background: #fff !important;
	box-shadow: none !important;
}
