/**
 * TS Product Attributes Widget - Styles
 */

/* Widget Container */
.ts-product-attributes-wrapper {
	margin: 0;
	padding: 0;
}

/* Title */
.ts-product-attributes-title {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--ts-heading-color, #101010);
}

/* Table Layout */
.ts-product-attributes-wrapper.layout-table .ts-product-attributes {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
}

.ts-product-attributes-wrapper.layout-table .ts-product-attributes th,
.ts-product-attributes-wrapper.layout-table .ts-product-attributes td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid var(--ts-border-color, #e5e5e5);
	font-size: 14px;
	line-height: 1.5;
}

.ts-product-attributes-wrapper.layout-table .ts-product-attributes th {
	width: 35%;
	font-weight: 600;
	color: var(--ts-heading-color, #101010);
	background-color: var(--ts-light-bg, #f9f9f9);
}

.ts-product-attributes-wrapper.layout-table .ts-product-attributes td {
	color: var(--ts-text-color, #666);
}

.ts-product-attributes-wrapper.layout-table .ts-product-attributes tr:last-child th,
.ts-product-attributes-wrapper.layout-table .ts-product-attributes tr:last-child td {
	border-bottom: none;
}

.ts-product-attributes-wrapper.layout-table .ts-product-attributes tr:nth-child(even) th {
	background-color: rgba(0, 0, 0, 0.04);
}

.ts-product-attributes-wrapper.layout-table .ts-product-attributes td {
	background-color: #fff;
}

/* List Layout */
.ts-product-attributes-wrapper.layout-list .ts-product-attributes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-product-attributes-wrapper.layout-list .ts-product-attributes li {
	padding: 10px 0;
	border-bottom: 1px solid var(--ts-border-color, #e5e5e5);
	font-size: 14px;
	line-height: 1.5;
}

.ts-product-attributes-wrapper.layout-list .ts-product-attributes li:last-child {
	border-bottom: none;
}

.ts-product-attributes-wrapper.layout-list .attr-label {
	font-weight: 600;
	color: var(--ts-heading-color, #101010);
}

.ts-product-attributes-wrapper.layout-list .attr-value {
	color: var(--ts-text-color, #666);
}

/* Inline Layout */
.ts-product-attributes-wrapper.layout-inline .ts-product-attributes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 15px;
	font-size: 14px;
	line-height: 1.5;
}

.ts-product-attributes-wrapper.layout-inline .attr-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ts-product-attributes-wrapper.layout-inline .attr-label {
	font-weight: 600;
	color: var(--ts-heading-color, #101010);
}

.ts-product-attributes-wrapper.layout-inline .attr-value {
	color: var(--ts-text-color, #666);
}

.ts-product-attributes-wrapper.layout-inline .attr-separator {
	color: var(--ts-border-color, #e5e5e5);
}

/* Responsive */
@media (max-width: 767px) {
	.ts-product-attributes-wrapper.layout-table .ts-product-attributes th,
	.ts-product-attributes-wrapper.layout-table .ts-product-attributes td {
		padding: 10px 12px;
		font-size: 13px;
	}

	.ts-product-attributes-wrapper.layout-table .ts-product-attributes th {
		width: 40%;
	}

	.ts-product-attributes-wrapper.layout-inline .ts-product-attributes {
		flex-direction: column;
		align-items: flex-start;
	}

	.ts-product-attributes-wrapper.layout-inline .attr-separator {
		display: none;
	}
}
