/* SteckInsights Cookie Manager — shortcodes */

/* Cookie table */
.sicm-cookie-table__group {
	margin: 0 0 2em;
}

.sicm-cookie-table__heading {
	margin-bottom: 0.4em;
}

.sicm-cookie-table__scroll {
	overflow-x: auto;
}

.sicm-cookie-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

.sicm-cookie-table th,
.sicm-cookie-table td {
	padding: 0.5em 0.75em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	text-align: start;
	vertical-align: top;
}

.sicm-cookie-table th {
	font-weight: 600;
	white-space: nowrap;
}

.sicm-cookie-table code {
	font-size: 0.95em;
	word-break: break-all;
}

.sicm-cookie-table__empty {
	font-style: italic;
	opacity: 0.8;
}

@media (max-width: 600px) {
	.sicm-cookie-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.sicm-cookie-table table,
	.sicm-cookie-table tbody,
	.sicm-cookie-table tr,
	.sicm-cookie-table td {
		display: block;
		width: 100%;
	}

	.sicm-cookie-table tr {
		padding: 0.5em 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	}

	.sicm-cookie-table td {
		display: grid;
		grid-template-columns: 7em minmax(0, 1fr);
		gap: 0.5em;
		padding: 0.25em 0;
		border: 0;
	}

	.sicm-cookie-table td::before {
		content: attr(data-label);
		font-weight: 600;
	}
}

/* Inline preferences */
.sicm-inline-preferences {
	max-width: 720px;
	margin: 0 0 1.5em;
	padding: 0.5em 1.25em 1.25em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
}

.sicm-inline-preferences .sicm-category {
	border-bottom-color: rgba(0, 0, 0, 0.1);
}

.sicm-inline-preferences__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
	margin-top: 1em;
}

.sicm-inline-preferences__status {
	margin: 0;
	font-weight: 600;
}

.sicm-inline-preferences__status:empty {
	display: none;
}
