/* Bestanden-tab in de WC+-basisstijl: witte kaarten (twee per rij vanaf 36rem) met een bestandstype-tegel, naam,
   type · grootte en een downloadknop rechts. */
.files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
@media (min-width: 36rem) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.files .file {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 1rem 0.75rem 0.75rem;
	border: var(--wcp-border-width) solid var(--wcp-color-border);
	border-radius: var(--wcp-radius);
	background: var(--wcp-color-surface);
	color: var(--wcp-color-text);
	text-decoration: none;
	transition: border-color 0.15s ease;
}
.files .file:hover { border-color: var(--wcp-color-primary); }
.files .file__type { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: calc(var(--wcp-radius) * 0.8); background: color-mix(in srgb, var(--wcp-color-primary) 10%, var(--wcp-color-surface)); color: var(--wcp-color-primary); font-size: 0.6875rem; font-weight: var(--wcp-font-weight-bold, 700); letter-spacing: 0.04em; }
.files .file__content { display: flex; flex-direction: column; gap: 0.1rem; flex: 1 1 auto; min-width: 0; }
.files .file__name { font-size: 0.9375rem; font-weight: var(--wcp-font-weight-semibold, 600); color: var(--wcp-color-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .file__meta { font-size: 0.8125rem; color: var(--wcp-color-muted); }
.files .file__action { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--wcp-color-light); position: relative; transition: background-color 0.15s ease; }
.files .file__action::before {
	content: ''; position: absolute; inset: 0; margin: auto; width: 1rem; height: 1rem; background: var(--wcp-color-dark);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.files .file:hover .file__action { background: color-mix(in srgb, var(--wcp-color-primary) 12%, var(--wcp-color-surface)); }
.files .file:hover .file__action::before { background: var(--wcp-color-primary); }
