.pfct-filters {
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid #e8e9ee;
	border-radius: 18px;
	background: #fff7f0;
}

.pfct-filters__row {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	align-items: center;
}

@media (min-width: 900px) {
	.pfct-filters__row {
		grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr auto auto;
	}
}

.pfct-filters input,
.pfct-filters select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e8e9ee;
	border-radius: 12px;
	font: inherit;
	background: #fff;
}

.pfct-filters__checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 650;
	color: #121212;
}

.pfct-filters__checkbox input {
	width: auto;
	margin: 0;
}

.pfct-filters button,
.pfct-sample-button,
.pfct-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 13px 20px;
	min-height: 48px;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 44%), #f58b2a;
	color: #fff;
	cursor: pointer;
	text-decoration: none;

	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: var(--pf-button-shadow, 0 16px 28px rgba(18, 18, 18, 0.11), 0 4px 0 rgba(18, 18, 18, 0.06)), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
	transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pfct-filters button:hover,
.pfct-sample-button:hover,
.pfct-form__submit:hover {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 44%), #e46f00;
	transform: translateY(-2px);
	box-shadow: var(--pf-button-shadow-hover, 0 22px 36px rgba(18, 18, 18, 0.14), 0 6px 0 rgba(18, 18, 18, 0.07)), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.pfct-filters button:focus-visible,
.pfct-sample-button:focus-visible,
.pfct-form__submit:focus-visible {
	outline: none;
	box-shadow: var(--pf-button-shadow-hover, 0 22px 36px rgba(18, 18, 18, 0.14), 0 6px 0 rgba(18, 18, 18, 0.07)), var(--pf-button-focus, 0 0 0 4px rgba(245, 139, 42, 0.18)), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.pfct-filters button:active,
.pfct-sample-button:active,
.pfct-form__submit:active {
	transform: translateY(0);
	box-shadow: var(--pf-button-shadow-press, 0 8px 18px rgba(18, 18, 18, 0.12), 0 1px 0 rgba(18, 18, 18, 0.05)), inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.pfct-filters button:disabled,
.pfct-sample-button:disabled,
.pfct-form__submit:disabled {
	opacity: 0.68;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

body.pfct-shop-loading .pfct-filters,
body.pfct-shop-loading .pfct-shop-results {
	opacity: 0.58;
	pointer-events: none;
	transition: opacity 140ms ease;
}

.pfct-shop-results {
	position: relative;
	min-height: 120px;
}

body.pfct-shop-loading .pfct-shop-results::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background: linear-gradient(90deg, rgba(255, 247, 240, 0) 0%, rgba(245, 139, 42, 0.08) 50%, rgba(255, 247, 240, 0) 100%);
	animation: pfct-shop-loading 1.1s linear infinite;
}

@keyframes pfct-shop-loading {
	0% {
		transform: translateX(-18%);
	}

	100% {
		transform: translateX(18%);
	}
}

.pfct-sample-button {
	margin-top: 12px;
	width: 100%;
}

.pfct-sample-button--single {
	width: auto;
	margin-top: 16px;
}

.pfct-modal[hidden] {
	display: none;
}

.pfct-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.pfct-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 18, 0.58);
	backdrop-filter: blur(3px);
}

.pfct-modal__panel {
	position: relative;
	max-width: 560px;
	margin: 6vh auto;
	background: #fff;
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 24px 56px rgba(18, 18, 18, 0.18);
	z-index: 1;
}

.pfct-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.pfct-modal__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	font-weight: 700;
	color: #5b6472;
}

.pfct-modal__eyebrow::before {
	content: "";
	width: 16px;
	height: 2px;
	background: #f58b2a;
	border-radius: 999px;
}

.pfct-modal__panel h3 {
	margin: 12px 0 0;
	font-size: 1.8rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.pfct-modal__product {
	margin: 10px 0 0;
	font-weight: 650;
	color: #5b6472;
}

.pfct-form {
	margin-top: 18px;
	display: grid;
	gap: 14px;
}

.pfct-form__field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}

.pfct-form__field input,
.pfct-form__field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #e8e9ee;
	border-radius: 14px;
	font: inherit;
}

.pfct-form__messages {
	min-height: 22px;
	font-weight: 650;
}

.pfct-form__messages.is-error {
	color: #b42318;
}

.pfct-form__messages.is-success {
	color: #0f766e;
}

.pfct-coverage-calc {
	margin: 0 0 20px;
	padding: 18px;
	border: 1px solid #e8e9ee;
	border-radius: 18px;
	background: #fff7f0;
}

.pfct-calc-tabs {
	display: inline-flex;
	gap: 6px;
	padding: 4px;
	margin-bottom: 14px;
	background: #fff;
	border: 1px solid #e8e9ee;
	border-radius: 999px;
}

.pfct-calc-tab {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	background: transparent;
	color: #5b6472;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.pfct-calc-tab.is-active {
	background: #f58b2a;
	color: #fff;
}

.pfct-calc-field {
	margin-bottom: 14px;
}

.pfct-calc-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 0.88rem;
	color: #121212;
}

.pfct-calc-input {
	width: 100%;
	max-width: 220px;
	padding: 12px 14px;
	border: 1px solid #e8e9ee;
	border-radius: 12px;
	font: inherit;
	background: #fff;
	color: #121212;
}

.pfct-calc-input:focus {
	outline: 2px solid rgba(245, 139, 42, 0.2);
	border-color: rgba(245, 139, 42, 0.45);
}

.pfct-calc-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e8e9ee;
}

.pfct-calc-summary__row {
	color: #5b6472;
	font-size: 0.9rem;
}

.pfct-calc-summary__row strong {
	color: #121212;
	font-size: 1rem;
	margin: 0 2px;
}

.pfct-calc-note {
	margin: 10px 0 0;
	font-size: 0.8rem;
	color: #7a828f;
}

/* The calculator drives the real quantity field behind the scenes, so
   hide WooCommerce's own stepper to avoid two conflicting controls. */
.pfct-coverage-calc ~ .quantity {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
