:root {
	--dtkp-compare-primary: #2563eb;
	--dtkp-compare-secondary: #10b981;
	--dtkp-compare-button-radius: 6px;
	--dtkp-compare-table-border: 1px solid #e5e7eb;
	--dtkp-compare-typography: system-ui, sans-serif;
	--dtkp-compare-spacing: 16px;
	--dtkp-compare-desktop-width: 1200px;
	--dtkp-compare-mobile-width: 100%;
}

.dtkp-compare-toggle {
	display: inline-block;
	margin: 8px 0;
	padding: 8px 12px;
	border: 1px solid var(--dtkp-compare-primary);
	background: #fff;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	border-radius: var(--dtkp-compare-button-radius);
	font-family: var(--dtkp-compare-typography);
}

.dtkp-compare-toggle:hover,
.dtkp-compare-toggle.active {
	background: var(--dtkp-compare-secondary);
	border-color: var(--dtkp-compare-primary);
	color: #fff;
}

.dtkp-compare-floating {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	background: #fff;
	border: 1px solid var(--dtkp-compare-table-border);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
	padding: var(--dtkp-compare-spacing);
	max-width: 320px;
	width: calc(100% - 32px);
	border-radius: var(--dtkp-compare-button-radius);
	font-family: var(--dtkp-compare-typography);
}

.dtkp-compare-floating.bottom-left {
	right: auto;
	left: 16px;
}

.dtkp-compare-floating.top-right {
	top: 16px;
	bottom: auto;
}

.dtkp-compare-floating.top-left {
	top: 16px;
	bottom: auto;
	right: auto;
	left: 16px;
}

.dtkp-compare-floating__inner {
	display: grid;
	grid-gap: 10px;
}

.dtkp-compare-floating__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
}

.dtkp-compare-floating__items {
	font-size: 0.95rem;
	color: #444;
}

.dtkp-compare-link.button.button-primary {
	display: inline-block;
	padding: 10px 14px;
	background-color: var(--dtkp-compare-primary);
	border-color: var(--dtkp-compare-primary);
	color: #fff;
	text-decoration: none;
	border-radius: var(--dtkp-compare-button-radius);
}

.dtkp-compare-link.button.button-primary:hover {
	background-color: var(--dtkp-compare-secondary);
	border-color: var(--dtkp-compare-secondary);
}

.dtkp-compare-table-wrap {
	overflow-x: auto;
	margin: 20px 0;
}

.dtkp-compare-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.dtkp-compare-table th,
.dtkp-compare-table td {
	border: var(--dtkp-compare-table-border);
	padding: var(--dtkp-compare-spacing);
	text-align: left;
	vertical-align: top;
}

.dtkp-compare-table th {
	background-color: #f3f4f6;
	font-weight: 600;
}

.dtkp-compare-table th:first-child,
.dtkp-compare-table td:first-child {
	position: sticky;
	left: 0;
	background: #f9fafb;
	min-width: 150px;
}

.dtkp-compare-table th:first-child {
	background-color: #f3f4f6;
}

.dtkp-field-icon {
	display: inline-block;
	margin-right: 6px;
}

.dtkp-field-icon--text {
	margin-left: 6px;
	font-size: 0.95em;
	color: #6b7280;
}

.dtkp-compare-mobile {
	display: none;
	margin-top: 20px;
}

.dtkp-compare-mobile__listing {
	border: 1px solid #e5e7eb;
	padding: 16px;
	margin-bottom: 16px;
	background: #fff;
	border-radius: 4px;
}

.dtkp-compare-mobile__listing h2 {
	margin: 0 0 16px 0;
	font-size: 1.1rem;
	color: #1f2937;
}

.dtkp-compare-mobile__fields {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dtkp-compare-mobile__fields li {
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.95rem;
}

.dtkp-compare-mobile__fields li:last-child {
	border-bottom: none;
}

.dtkp-compare-mobile__fields strong {
	display: block;
	margin-bottom: 4px;
	color: #374151;
	font-weight: 600;
}

.dtkp-compare-page {
	max-width: var(--dtkp-compare-desktop-width);
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
}

.dtkp-compare-page h1 {
	margin-bottom: 20px;
	color: #1f2937;
}

@media (max-width: 767px) {
	.dtkp-compare-page {
		max-width: var(--dtkp-compare-mobile-width);
	}

	.dtkp-compare-table-wrap {
		display: none;
	}

	.dtkp-compare-mobile {
		display: block;
	}

	.dtkp-compare-floating {
		right: 10px;
		bottom: 10px;
		width: calc(100% - 20px);
		max-width: none;
	}

	.dtkp-compare-toggle {
		width: 100%;
		box-sizing: border-box;
	}
}
