/**
 * Specs Highlights widget styles.
 *
 * @package ThemeREX\AutoDealer
 */

.trx-ad-specs-highlights {
	margin: 24px 0;
}

.trx-ad-specs-highlights__title {
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 16px;
	letter-spacing: 0.5px;
}

.trx-ad-specs-highlights__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 1fr;
}

/* Item — horizontal layout (default) */
.trx-ad-specs-highlights__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	min-width: 0;
	overflow: hidden;
}

/* Item — vertical layout */
.trx-ad-specs-highlights__item--vertical {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Icon */
.trx-ad-specs-highlights__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--trx-ad-color-primary, #2563eb);
}

.trx-ad-specs-highlights__icon svg {
	width: 28px;
	height: 28px;
}

.trx-ad-specs-highlights__icon img {
	max-width: 28px;
	max-height: 28px;
}

/* Text block */
.trx-ad-specs-highlights__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

/* Vertical layout: full width, centered by default */
.trx-ad-specs-highlights__item--vertical .trx-ad-specs-highlights__text {
	flex: none;
	width: 100%;
	align-items: center;
}

.trx-ad-specs-highlights__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #6b7280;
	letter-spacing: 0.3px;
}

.trx-ad-specs-highlights__value {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Horizontal alignment via prefix class */
.trx-ad-sh-align-left .trx-ad-specs-highlights__label,
.trx-ad-sh-align-left .trx-ad-specs-highlights__value {
	text-align: left;
}
.trx-ad-sh-align-left .trx-ad-specs-highlights__item--vertical {
	align-items: flex-start;
}
.trx-ad-sh-align-left .trx-ad-specs-highlights__item--vertical .trx-ad-specs-highlights__text {
	align-items: flex-start;
}

.trx-ad-sh-align-center .trx-ad-specs-highlights__label,
.trx-ad-sh-align-center .trx-ad-specs-highlights__value {
	text-align: center;
}
.trx-ad-sh-align-center .trx-ad-specs-highlights__item--vertical {
	align-items: center;
}
.trx-ad-sh-align-center .trx-ad-specs-highlights__item--vertical .trx-ad-specs-highlights__text {
	align-items: center;
}

.trx-ad-sh-align-right .trx-ad-specs-highlights__label,
.trx-ad-sh-align-right .trx-ad-specs-highlights__value {
	text-align: right;
}
.trx-ad-sh-align-right .trx-ad-specs-highlights__item--vertical {
	align-items: flex-end;
}
.trx-ad-sh-align-right .trx-ad-specs-highlights__item--vertical .trx-ad-specs-highlights__text {
	align-items: flex-end;
}

/* Empty state */
.trx-ad-specs-highlights--empty {
	text-align: center;
	padding: 40px;
	color: #999;
}

/* Responsive */
@media (max-width: 768px) {
	.trx-ad-specs-highlights__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.trx-ad-specs-highlights__grid {
		grid-template-columns: 1fr;
	}
}
