/* Quality advice belongs to Uploads, not over the image being edited. */
.dcpd-designer__drawer-body .dcpd-designer__quality-warning {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e9a7a7;
	border-radius: 8px;
	background: #fff1f1;
	color: #a11b1b;
	font-size: 0.82rem;
	line-height: 1.45;
	white-space: normal;
}
.dcpd-designer__drawer-body .dcpd-designer__quality-warning[hidden] {
	display: none !important;
}

/* Mobile: the warning is a floating message above the tools, not a fourth
   grid row. Hidden notices therefore leave no blank space, and toggling the
   warning never resizes the canvas or moves the bottom tool rail. */
.dcpd-designer__quality-mobile-slot {
	display: none;
}

@container dcpd ( max-width: 759px ) {
	.dcpd-designer__drawer-body .dcpd-designer__quality-warning {
		display: none !important;
	}

	/* No box / grid track is created for the mobile slot. */
	.dcpd-designer__quality-mobile-slot {
		display: contents;
	}

	.dcpd-designer__quality-mobile-slot .dcpd-designer__quality-warning {
		position: absolute;
		z-index: 8;
		left: 10px;
		right: 10px;
		/* Floating just above the Uploads/Layers navigation, not over the case. */
		bottom: calc( 60px + env( safe-area-inset-bottom, 0px ) );
		box-sizing: border-box;
		width: auto;
		max-height: min( 132px, 32vh );
		margin: 0;
		padding: 8px 10px;
		overflow-y: auto;
		border: 1px solid #e9a7a7;
		border-radius: 8px;
		background: #fff1f1;
		box-shadow: 0 4px 16px rgba( 17, 24, 39, 0.12 );
		color: #a11b1b;
		font-size: 0.75rem;
		font-weight: 600;
		line-height: 1.28;
		text-align: left;
	}
}
