/*
 * Module: Trash — styles
 * Chips, rows, badges and checkboxes are global (mcms-global.css).
 *
 * SECTIONS
 *   1. Type chips (scroll sideways on phones)
 *   2. Rows
 *   3. Restore modal checklist
 */

/* ==================================================================
   1. TYPE CHIPS
   ================================================================== */
.mcms-trash__types {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}

.mcms-trash__types::-webkit-scrollbar {
	display: none;
}

.mcms-trash__types .mcms-chip {
	flex-shrink: 0;
}

/* ==================================================================
   2. ROWS
   ================================================================== */
.mcms-wrap .mcms-row.mcms-trash__row,
.mcms-wrap .mcms-row.mcms-trash__row:hover {
	background: var(--mcms-surface);
}

/* Text first, full width and wrapping (nothing cut off), button below. */
.mcms-wrap .mcms-row.mcms-trash__row {
	flex-direction: column;
	align-items: stretch;
}

.mcms-trash__row .mcms-row__title,
.mcms-trash__row .mcms-row__sub {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	overflow-wrap: anywhere;
}

.mcms-wrap .mcms-trash__row > .mcms-btn {
	align-self: flex-start;
}

.mcms-wrap .mcms-row.mcms-trash__done {
	background: var(--mcms-brand-softer);
}

/* ==================================================================
   3. RESTORE MODAL CHECKLIST
   ================================================================== */
.mcms-trash__children {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
}

.mcms-wrap .mcms-trash__child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: var(--mcms-radius-sm);
	background: var(--mcms-surface-muted);
	font-size: var(--mcms-text-sm);
	font-weight: 600;
}

.mcms-trash__child-title {
	overflow-wrap: anywhere;
}