/* Products PDF widget — scoped styles */

.comco-pdf-widget {
	--comco-pdf-accent: #1d4f91;
	--comco-pdf-card-bg: #f5f7fa;
	--comco-pdf-title-color: #1d4f91;
	max-width: 100%;
	box-sizing: border-box;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.comco-pdf-widget *,
.comco-pdf-widget *::before,
.comco-pdf-widget *::after {
	box-sizing: inherit;
}

.comco-pdf-subheading {
	font-size: 15px;
	font-weight: 600;
	color: var( --comco-pdf-accent );
	margin: 0 0 20px;
}

.comco-pdf-search {
	width: 100%;
	padding: 0 15px;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	margin-bottom: 20px;
	display: block;
	height:54px;
	font-size:17px;
	box-shadow:none!important;
	outline:none!important;
}
.comco-pdf-filters {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
	margin-bottom: 16px;
}
.comco-pdf-filter label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1a1a1a;
}
.comco-pdf-filter select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #d8d8d8;
	border-radius: 5px;
	background: #fff url(select.svg) no-repeat right 15px center;
	font-size: 17px;
	height:54px;
}

.comco-pdf-note {
	margin-bottom: 24px;
	font-size: 14px;
}
.comco-pdf-note strong {
	color: var( --comco-pdf-accent );
	margin-right: 8px;
}
.comco-pdf-note span {
	color: #6b7280;
}

.comco-pdf-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
	transition: opacity 0.15s ease;
}
.comco-pdf-grid.comco-pdf-loading {
	opacity: 0.5;
	pointer-events: none;
}

.comco-pdf-empty {
	grid-column: 1 / -1;
	padding: 40px;
	text-align: center;
	color: #6b7280;
}

.comco-pdf-card {
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 20px;
	background: #fff;
	display: flex;
	flex-direction: column;
	min-width: 0;
	justify-content: space-between;
}

.comco-pdf-thumb {
	margin-bottom: 16px;
}
.comco-pdf-thumb-icon {
	width: auto;
	height: 60px!important;
}

.comco-pdf-title {
	font-size: 17px;
	font-weight: 700;
	color: var( --comco-pdf-title-color );
	margin: 0 0 4px;
	line-height: 1.3;
	overflow-wrap: break-word;
}
.comco-pdf-category {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 12px;
}

.comco-pdf-meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	padding: 6px 0;
	border-top: 1px solid #eef0f2;
}
.comco-pdf-meta-label {
	color: #6b7280;
}
.comco-pdf-meta-value {
	color: #1a1a1a;
	font-weight: 600;
	text-align: right;
}

.comco-pdf-buttons {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.comco-pdf-btn {
	flex: 1 1 auto;
	text-align: center;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.comco-pdf-btn-primary {
	background: var( --comco-pdf-accent );
	color: #fff;
}
.comco-pdf-btn-primary:hover,
.comco-pdf-btn-primary:focus {
	color: #fff;
	background:#000;
}
.comco-pdf-btn-outline {
	background: #fff;
	color: var( --comco-pdf-accent );
	border: 1px solid var( --comco-pdf-accent );
}
.comco-pdf-btn-outline:hover,
.comco-pdf-btn-outline:focus {
	background:var( --comco-pdf-accent );
	color:#fff;
}

.comco-pdf-match {
	display: inline-block;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var( --comco-pdf-accent );
	text-decoration: none;
}
.comco-pdf-match:hover {
	text-decoration: underline;
}

/* Responsive */
@media ( max-width: 1024px ) {
	.comco-pdf-filters {
		grid-template-columns: repeat( 2, 1fr );
	}
	.comco-pdf-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}
@media ( max-width: 767px ) {
	.comco-pdf-filters {
		grid-template-columns: 1fr;
	}
	.comco-pdf-grid {
		grid-template-columns: 1fr;
	}
	.comco-pdf-buttons {
		flex-direction: column;
	}
}
