:root {
	--ihc-accent: #ff9500;
	--ihc-accent-dark: #8a4b00;
	--ihc-text: #111827;
	--ihc-muted: #667085;
	--ihc-border: #dde3ea;
	--ihc-surface: #ffffff;
	--ihc-soft: #f5f7fa;
	--ihc-brand-yellow: #ffaa17;
	--ihc-brand-orange: #ff6a16;
	--ihc-brand-red: #f5224b;
	--ihc-brand-gradient: linear-gradient(138deg, var(--ihc-brand-yellow) 0%, var(--ihc-brand-orange) 55%, var(--ihc-brand-red) 100%);
	--ihc-rating-empty: #ffd9b0;
	--ihc-grid-max: 1280px;
	--ihc-grid-gap: 16px;
	--ihc-single-card-max: 308px;
}

/* Own the WooCommerce loop geometry without client-side layout work. */
body.ihc-compact-cards-active .woocommerce ul.products,
body.ihc-compact-cards-active .ihs-product-grid ul.products,
body.ihc-compact-cards-active ul.products.woocommerce {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: var(--ihc-grid-gap) !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: var(--ihc-grid-max) !important;
	min-width: 0 !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding: 0 !important;
}

body.ihc-compact-cards-active .woocommerce ul.products::before,
body.ihc-compact-cards-active .woocommerce ul.products::after,
body.ihc-compact-cards-active .ihs-product-grid ul.products::before,
body.ihc-compact-cards-active .ihs-product-grid ul.products::after {
	display: none !important;
}

body.ihc-compact-cards-active .woocommerce ul.products > li.product,
body.ihc-compact-cards-active .woocommerce ul.products[class*="columns-"] > li.product,
body.ihc-compact-cards-active .ihs-product-grid ul.products > li.product,
body.ihc-compact-cards-active ul.products.woocommerce > li.product {
	float: none !important;
	display: block !important;
	flex: 0 0 100% !important;
	grid-column: auto !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	border: 0 !important;
	background: transparent !important;
	text-align: left !important;
}

body.ihc-compact-cards-active .ihs-product-grid.ihs-count-1 ul.products {
	grid-template-columns: minmax(0, var(--ihc-single-card-max)) !important;
}

body.ihc-compact-cards-active .ihs-product-grid.ihs-count-2 ul.products {
	grid-template-columns: repeat(2, minmax(0, var(--ihc-single-card-max))) !important;
}

.ihc-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	min-width: 0;
	padding: 16px;
	overflow: hidden;
	border: 1px solid var(--ihc-border);
	border-radius: 14px;
	background: var(--ihc-surface);
	color: var(--ihc-text);
	text-align: left;
}

.ihc-card:hover,
.ihc-card:focus-within {
	border-color: rgba(255, 149, 0, 0.62);
}

@supports (content-visibility: auto) {
	.ihc-card {
		content-visibility: auto;
		contain-intrinsic-size: auto 220px;
	}
}

.ihc-card-hit-area {
	position: absolute;
	z-index: 1;
	inset: 0;
	border-radius: inherit;
}

.ihc-card-main {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 102px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	min-width: 0;
	min-height: 102px;
	padding-right: 0;
	pointer-events: none;
}

.ihc-photo-frame {
	display: grid;
	width: 102px;
	height: 102px;
	background: rgba(255, 149, 0, 0.52);
	clip-path: polygon(
		50% 0%, 56% 1%, 62% 5%,
		95% 38%, 99% 44%, 100% 50%, 99% 56%, 95% 62%,
		62% 95%, 56% 99%, 50% 100%, 44% 99%, 38% 95%,
		5% 62%, 1% 56%, 0% 50%, 1% 44%, 5% 38%,
		38% 5%, 44% 1%
	);
	filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.14));
	place-items: center;
}

.ihc-photo {
	display: block;
	box-sizing: border-box;
	width: 98px;
	height: 98px;
	padding: 2px;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #fff;
	clip-path: inherit;
}

.ihc-photo-image,
body.ihc-compact-cards-active ul.products li.product .ihc-photo img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
}

.ihc-card-content {
	min-width: 0;
}

.ihc-name {
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	overflow-wrap: anywhere;
	color: var(--ihc-text);
	font-size: clamp(1.08rem, 1.8vw, 1.28rem) !important;
	font-weight: 760 !important;
	line-height: 1.18 !important;
	letter-spacing: -0.015em;
}

/* Data-only Status integration: no modal, script, or separate stylesheet. */
.ihc-trust-summary {
	display: grid;
	gap: 3px;
	margin-top: 5px;
	color: var(--ihc-muted);
	font-size: 0.76rem;
	font-weight: 610;
	line-height: 1.3;
}

.ihc-standing {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ihc-identity-verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #187a45;
}

.ihc-standing-dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8591a3;
}

.ihc-standing-green .ihc-standing-dot {
	background: #22a35a;
}

.ihc-standing-yellow .ihc-standing-dot {
	background: #d79a00;
}

.ihc-standing-red .ihc-standing-dot {
	background: #c43d4b;
}

.ihc-field-label {
	color: #344054;
	font-weight: 730;
}

.ihc-rating {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	margin-top: 10px;
	color: var(--ihc-muted);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
}

.ihc-rating-stars {
	position: relative;
	display: block;
	flex: 0 0 5.3em;
	width: 5.3em;
	height: 1em;
	overflow: hidden;
}

.ihc-rating-stars::before,
.ihc-rating-stars > span::before {
	position: absolute;
	inset: 0;
	width: 5.3em;
	height: 1em;
	background: var(--ihc-rating-empty);
	content: "";
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cpath d='m10 1.4 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L10 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L10 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L32 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L32 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L54 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L54 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L76 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L76 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L98 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L98 1.4Z'/%3E%3C/svg%3E") left center / 5.3em 1em no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cpath d='m10 1.4 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L10 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L10 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L32 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L32 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L54 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L54 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L76 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L76 1.4Zm22 0 2.65 5.37 5.93.86-4.29 4.18 1.01 5.91L98 14.93l-5.3 2.79 1.01-5.91-4.29-4.18 5.93-.86L98 1.4Z'/%3E%3C/svg%3E") left center / 5.3em 1em no-repeat;
}

.ihc-rating-stars > span {
	position: absolute;
	inset: 0 auto 0 0;
	display: block;
	overflow: hidden;
}

.ihc-rating-stars > span::before {
	background: var(--ihc-brand-gradient);
}

.ihc-rating-value {
	color: #344054;
	font-weight: 760;
}

.ihc-rating-count {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ihc-rating + .ihc-services {
	margin-top: 7px !important;
}

.ihc-current-status,
.ihc-specific-availability-link > .ihs-availability-badge {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 5px;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	min-height: 28px;
	margin: 0 !important;
	padding: 5px 8px;
	border: 1px solid #d7dde6;
	border-radius: 999px;
	background: #fff;
	color: #344054;
	font-size: 0.69rem;
	font-weight: 730;
	line-height: 1.2;
	text-align: left;
	white-space: nowrap;
}

.ihc-card-footer .ihc-current-status,
.ihc-card-footer .ihc-specific-availability-link {
	flex: 0 1 auto;
	min-width: 0;
	margin-right: auto !important;
	overflow: hidden;
}

.ihc-status-label {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ihc-current-status,
.ihc-specific-availability-link {
	align-self: flex-start;
	color: inherit;
	text-decoration: none !important;
	pointer-events: auto;
}

.ihc-specific-availability-link {
	position: relative;
	z-index: 3;
	display: inline-flex;
	max-width: 100%;
}

.ihc-current-status:hover,
.ihc-current-status:focus-visible,
.ihc-specific-availability-link:hover > .ihs-availability-badge,
.ihc-specific-availability-link:focus-visible > .ihs-availability-badge {
	box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.18);
}

.ihc-current-status:focus-visible,
.ihc-specific-availability-link:focus-visible {
	outline: 2px solid var(--ihc-accent);
	outline-offset: 2px;
}

.ihc-status-dot,
.ihc-specific-availability-link > .ihs-availability-badge .ihs-availability-dot {
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #98a2b3;
}

.ihc-current-status-available,
.ihc-current-status-morning,
.ihc-current-status-afternoon,
.ihc-specific-availability-link > .ihs-availability-badge:not(.ihs-status-busy) {
	border-color: #b9e2c8;
	background: #f1fbf5;
	color: #176b3a;
}

.ihc-current-status-available .ihc-status-dot,
.ihc-current-status-morning .ihc-status-dot,
.ihc-current-status-afternoon .ihc-status-dot,
.ihc-specific-availability-link > .ihs-availability-badge:not(.ihs-status-busy) .ihs-availability-dot {
	background: #22a35a;
}

.ihc-current-status-busy,
.ihc-specific-availability-link > .ihs-availability-badge.ihs-status-busy {
	border-color: #d7dde6;
	background: #f7f8fa;
	color: #5b6574;
}

.ihc-meta-line,
.ihc-card-footer {
	position: relative;
	z-index: 2;
	min-width: 0;
}

.ihc-meta-line {
	margin: 0 !important;
	pointer-events: none;
}

.ihc-services {
	display: -webkit-box;
	margin-top: 13px !important;
	overflow: hidden;
	color: #273244;
	font-size: 0.76rem;
	font-weight: 500;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ihc-payments {
	margin-top: 5px !important;
	overflow: hidden;
	color: var(--ihc-muted);
	font-size: 0.76rem;
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ihc-card-footer {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 11px;
}

.ihc-availability-link {
	position: relative;
	z-index: 3;
	display: inline-flex !important;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
	margin: 0 !important;
	padding: 2px 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--ihc-accent-dark) !important;
	font-size: 0.76rem;
	font-weight: 730;
	line-height: 1.3;
	text-align: right;
	text-decoration: none !important;
	box-shadow: none !important;
	pointer-events: auto;
	white-space: nowrap;
}

.ihc-availability-link:hover,
.ihc-availability-link:focus-visible {
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

@media (max-width: 1199px) and (min-width: 1025px) {
	body.ihc-compact-cards-active .woocommerce ul.products,
	body.ihc-compact-cards-active .ihs-product-grid ul.products,
	body.ihc-compact-cards-active ul.products.woocommerce {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 1024px) and (min-width: 761px) {
	body.ihc-compact-cards-active .woocommerce ul.products,
	body.ihc-compact-cards-active .ihs-product-grid ul.products,
	body.ihc-compact-cards-active ul.products.woocommerce {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 760px) {
	body.ihc-compact-cards-active .woocommerce ul.products,
	body.ihc-compact-cards-active .ihs-product-grid ul.products,
	body.ihc-compact-cards-active ul.products.woocommerce,
	body.ihc-compact-cards-active .ihs-product-grid.ihs-count-1 ul.products,
	body.ihc-compact-cards-active .ihs-product-grid.ihs-count-2 ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 14px !important;
	}

	body.ihc-compact-cards-active .woocommerce ul.products > li.product,
	body.ihc-compact-cards-active .woocommerce ul.products[class*="columns-"] > li.product,
	body.ihc-compact-cards-active .ihs-product-grid ul.products > li.product,
	body.ihc-compact-cards-active ul.products.woocommerce > li.product {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.ihc-card {
		padding: 14px;
		border-radius: 12px;
	}

	.ihc-card-main {
		grid-template-columns: 98px minmax(0, 1fr);
		gap: 12px;
		min-height: 98px;
		padding-right: 0;
	}

	.ihc-photo-frame {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 98px;
		height: 98px;
	}

	.ihc-photo {
		width: 94px;
		height: 94px;
	}

	.ihc-card-content {
		grid-column: 2;
		grid-row: 1;
	}


	.ihc-name {
		font-size: 1.08rem !important;
	}

	.ihc-services {
		margin-top: 11px !important;
	}

	.ihc-card-footer {
		padding-top: 9px;
	}
}

@media (max-width: 390px) {
	.ihc-card-main {
		grid-template-columns: 94px minmax(0, 1fr);
		min-height: 94px;
	}

	.ihc-photo-frame {
		width: 94px;
		height: 94px;
	}

	.ihc-photo {
		width: 90px;
		height: 90px;
	}

	.ihc-name {
		font-size: 1.02rem !important;
	}

	.ihc-card-footer {
		gap: 6px;
	}

	.ihc-current-status,
	.ihc-specific-availability-link > .ihs-availability-badge {
		min-height: 28px;
		padding: 5px 8px;
		font-size: 0.68rem;
	}

	.ihc-availability-link {
		gap: 4px;
		font-size: 0.72rem;
	}
}
