/**
 * Wired2Fire PC Card widget.
 *
 * Values match the Wired2Fire design system. Anything a client is likely to
 * want to change is exposed as an Elementor control, so overrides land in
 * Elementor's own generated CSS and win over these defaults.
 */

.w2f-pc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 1024px) {
	.w2f-pc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.w2f-pc-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.w2f-pc-grid__empty {
	margin: 0;
	padding: 24px;
	border: 1px dashed #d0d0d0;
	border-radius: 12px;
	color: #777;
	text-align: center;
}

.w2f-pc-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
		box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.w2f-pc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.w2f-pc-card__media img {
	display: block;
	width: 100%;
	height: auto;
}

.w2f-pc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
}

.w2f-pc-card__badge {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 100px;
	font-family: "Red Hat Text", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.w2f-pc-card__badge--brand {
	background-color: rgba(245, 137, 31, 0.13);
	color: #b3610f; /* Darkened from #F5891F for 4.5:1 on the tint. */
}

.w2f-pc-card__badge--neutral {
	background-color: #f5f5f5;
	color: #444;
}

.w2f-pc-card__title {
	margin: 0;
	font-family: "Red Hat Display", system-ui, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}

.w2f-pc-card__specs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.w2f-pc-card__spec {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Red Hat Text", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #444;
}

.w2f-pc-card__spec-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: #f5891f;
}

.w2f-pc-card__spec-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.w2f-pc-card__spec-icon i {
	font-size: 14px;
	line-height: 1;
}

.w2f-pc-card__price {
	margin: 0;
	font-family: "Red Hat Display", system-ui, sans-serif;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	color: #f5891f;
}

/* WooCommerce wraps prices in bdi/del/ins for sale pricing. */
.w2f-pc-card__price bdi,
.w2f-pc-card__price .amount {
	color: inherit;
}

.w2f-pc-card__price del {
	margin-right: 8px;
	font-size: 0.6em;
	font-weight: 600;
	color: #777;
	text-decoration: line-through;
}

.w2f-pc-card__price ins {
	background: none;
	text-decoration: none;
}

.w2f-pc-card__finance {
	margin: -8px 0 0;
	font-family: "Red Hat Text", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #666;
}

.w2f-pc-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
}

.w2f-pc-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px; /* Tap target floor. */
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-family: "Red Hat Text", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
		border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.w2f-pc-card__btn--primary {
	background-color: #f5891f;
	color: #fff;
	box-shadow: 0 8px 20px rgba(245, 137, 31, 0.31);
}

.w2f-pc-card__btn--primary:hover,
.w2f-pc-card__btn--primary:focus {
	background-color: #e07010;
	color: #fff;
}

.w2f-pc-card__btn--secondary {
	background-color: #fff;
	border-color: #e5e5e5;
	color: #111;
}

.w2f-pc-card__btn--secondary:hover,
.w2f-pc-card__btn--secondary:focus {
	background-color: #f5f5f5;
	border-color: #d0d0d0;
	color: #111;
}

.w2f-pc-card__btn:focus-visible {
	outline: 2px solid #f5891f;
	outline-offset: 2px;
}

/* A button with no URL set renders as a span — make that visibly inert. */
span.w2f-pc-card__btn {
	opacity: 0.55;
	cursor: default;
}

@media (prefers-reduced-motion: reduce) {
	.w2f-pc-card,
	.w2f-pc-card__btn {
		transition: none;
	}

	.w2f-pc-card:hover {
		transform: none;
	}
}
