.fpv-product-card,
.fpv-compare,
.fpv-shortcode-diagnostic {
	box-sizing: border-box;
	font-family: inherit;
}

.fpv-product-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 1.1rem;
	margin: 1.5rem 0;
	padding: 1rem 1.1rem;
	border: 1px solid #dfe4ea;
	border-radius: 6px;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.fpv-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border: 1px solid #eef1f4;
	border-radius: 6px;
	background: #f8fafc;
	overflow: hidden;
}

.fpv-product-card__image,
.fpv-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fpv-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-width: 0;
}

.fpv-product-card__eyebrow {
	margin: 0;
	color: #64748b;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.fpv-product-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.fpv-product-card__title a,
.fpv-text-link {
	color: #111827;
	text-decoration: none;
}

.fpv-product-card__title a:hover,
.fpv-product-card__title a:focus,
.fpv-text-link:hover,
.fpv-text-link:focus {
	color: #2563eb;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fpv-product-card__description {
	margin: 0;
	color: #4b5563;
	font-size: 0.92rem;
	line-height: 1.5;
}

.fpv-product-card__description--article {
	display: none;
}

.fpv-product-card__attributes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
}

.fpv-product-card__attributes--article {
	display: none;
}

.fpv-product-card__attributes div {
	min-width: 0;
	max-width: 100%;
	padding: 0.45rem 0.55rem;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #f8fafc;
}

.fpv-product-card__attributes dt {
	margin: 0 0 0.15rem;
	color: #6b7280;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.fpv-product-card__attributes dd {
	margin: 0;
	color: #1f2937;
	font-size: 0.86rem;
	line-height: 1.3;
}

.fpv-product-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.2rem;
}

.fpv-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.65rem 1rem;
	border: 1px solid #2563eb;
	border-radius: 4px;
	background: #2563eb;
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fpv-button:hover,
.fpv-button:focus {
	border-color: #1d4ed8;
	background: #1d4ed8;
	color: #fff !important;
	text-decoration: none;
}

.fpv-button:focus-visible,
.fpv-product-card__media:focus-visible,
.fpv-product-card__title a:focus-visible,
.fpv-text-link:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}

.fpv-button--secondary {
	border-color: #d1d5db;
	background: #fff;
	color: #111827 !important;
}

.fpv-button--secondary:hover,
.fpv-button--secondary:focus {
	border-color: #111827;
	background: #f3f4f6;
	color: #111827 !important;
}

.fpv-compare {
	width: 100%;
	margin: 1.5rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
}

.fpv-compare:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}

.fpv-compare__table {
	width: 100%;
	min-width: 680px;
	border: 0;
	border-collapse: collapse;
	background: #fff;
	color: #1f2937;
	font-size: 0.92rem;
}

.fpv-compare__table th,
.fpv-compare__table td {
	padding: 0.85rem;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
}

.fpv-compare__table thead th {
	background: #f8fafc;
	color: #111827;
	font-weight: 700;
}

.fpv-compare__table tbody th {
	width: 170px;
	background: #fbfcfe;
	color: #374151;
	font-weight: 700;
}

.fpv-compare__table tbody tr:last-child th,
.fpv-compare__table tbody tr:last-child td {
	border-bottom: 0;
}

.fpv-compare__product {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
	gap: 0.65rem;
	color: #111827;
	font-weight: 700;
	text-decoration: none;
}

.fpv-compare__product:hover,
.fpv-compare__product:focus {
	color: #2563eb;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fpv-compare__image,
.fpv-compare__product img {
	display: block;
	width: 54px;
	height: 54px;
	object-fit: contain;
	border: 1px solid #eef1f4;
	border-radius: 4px;
	background: #fff;
}

.fpv-shortcode-diagnostic {
	margin: 1rem 0;
	padding: 0.75rem 0.9rem;
	border-left: 4px solid #d97706;
	background: #fffbeb;
	color: #78350f;
	font-size: 0.9rem;
	line-height: 1.45;
}

.fpv-sources,
.fpv-citation-tools {
	box-sizing: border-box;
	margin: 1.75rem 0;
	padding: 1rem;
	border: 1px solid #dfe4ea;
	border-radius: 6px;
	background: #fff;
	color: #1f2937;
}

.fpv-citation-tools-fallback {
	max-width: 980px;
	margin: 24px auto;
	padding: 0 15px;
}

.fpv-sources h2,
.fpv-sources h3,
.fpv-citation-tools h2 {
	margin-top: 0;
	letter-spacing: 0;
}

.fpv-sources ul,
.fpv-sources ol {
	margin-bottom: 0;
	padding-left: 1.25rem;
}

.fpv-sources a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fpv-source-note {
	margin: 0.5rem 0;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.55;
}

.fpv-data-table {
	display: block;
	width: 100%;
	margin: 1.5rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fpv-data-table table,
table.fpv-data-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	background: #fff;
}

.fpv-data-table th,
.fpv-data-table td,
table.fpv-data-table th,
table.fpv-data-table td {
	padding: 0.75rem 0.85rem;
	border: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
}

.fpv-data-table th,
table.fpv-data-table th {
	background: #f8fafc;
	color: #111827;
	font-weight: 700;
}

.fpv-table-block {
	margin: 1.75rem 0;
	border: 1px solid #d7dee8;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.fpv-table-block__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
}

.fpv-table-block__label {
	margin-right: auto;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fpv-table-block__button {
	min-height: 34px;
	padding: 0.4rem 0.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	color: #1f2937;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.fpv-table-block__button:hover,
.fpv-table-block__button:focus {
	border-color: #9ca3af;
	background: #f3f4f6;
	color: #111827;
}

.fpv-table-block__button:focus-visible {
	outline: 3px solid rgba(245, 124, 0, 0.35);
	outline-offset: 2px;
}

.fpv-table-block__status {
	color: #166534;
	font-size: 0.84rem;
	font-weight: 700;
}

.fpv-table-block__scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fpv-table-block figure,
.fpv-table-block .wp-block-table {
	margin: 0;
}

.fpv-table-block table,
.single-post .main-content figure.wp-block-table table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	background: #fff;
	color: #1f2937;
	font-size: 0.94rem;
	line-height: 1.45;
}

.fpv-table-block th,
.fpv-table-block td,
.single-post .main-content figure.wp-block-table th,
.single-post .main-content figure.wp-block-table td {
	padding: 0.72rem 0.8rem;
	border: 1px solid #dbe3ee;
	text-align: left;
	vertical-align: top;
}

.fpv-table-block thead th,
.single-post .main-content figure.wp-block-table thead th {
	background: #edf2f7;
	color: #111827;
	font-weight: 800;
}

.fpv-table-block tbody th,
.single-post .main-content figure.wp-block-table tbody th {
	background: #f8fafc;
	color: #1f2937;
	font-weight: 700;
}

.fpv-table-block tbody tr:nth-child(even) td,
.single-post .main-content figure.wp-block-table tbody tr:nth-child(even) td {
	background: #fbfdff;
}

.fpv-citation-tools {
	background: #f8fafc;
}

.fpv-citation-tools__fields {
	display: grid;
	gap: 0.85rem;
}

.fpv-citation-tools label span {
	display: block;
	margin-bottom: 0.25rem;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.fpv-citation-tools input,
.fpv-citation-tools textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	font: inherit;
	line-height: 1.45;
}

.fpv-citation-tools__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.85rem;
}

.fpv-citation-tools__button {
	min-height: 40px;
	padding: 0.55rem 0.9rem;
	border: 1px solid #1f2937;
	border-radius: 4px;
	background: #1f2937;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.fpv-citation-tools__button:hover,
.fpv-citation-tools__button:focus {
	background: #111827;
	color: #fff;
}

.fpv-citation-tools__button:focus-visible,
.fpv-citation-tools input:focus-visible,
.fpv-citation-tools textarea:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}

.fpv-citation-tools__status {
	color: #166534;
	font-size: 0.88rem;
	font-weight: 700;
}

.fpv-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.fpv-product-card {
		grid-template-columns: 1fr;
	}

	.fpv-product-card__media {
		max-width: 220px;
	}

	.fpv-product-card__attributes {
		grid-template-columns: 1fr;
	}

	.fpv-product-card__actions {
		flex-direction: column;
	}

	.fpv-button {
		width: 100%;
	}
}
