/* ReInk: from designer-preview/css/multi-select.css @ 827d893 (oldDesigner-redesign). Everything below this line is that file,
   unchanged. When the prototype changes it, carry the change across: docs/syncing.md. */
/*
 * designer-preview/css/multi-select.css
 *
 * Working with several objects at once (js/multi-select.js): the selection box drawn from the grey
 * area around the design, and the Snap chip next to Guides.
 */

/* the selection box when a drag starts outside the page (on the page, Fabric draws the same box) */
#smSelectionBand {
	position: fixed;
	z-index: 50;
	box-sizing: border-box;
	border: 1px solid rgb(234 0 41 / 0.6);
	background-color: rgb(234 0 41 / 0.08);
	pointer-events: none;
}
#smSelectionBand[hidden] { display: none; }

/* Snap chip: the Guides chip's look (css/workspace.css) with a magnet */
html.sm-ws #smSnapChip {
	position: relative; flex: none;
	box-sizing: border-box; height: 26px; margin: 0; padding: 0 11px 0 28px;
	font: 12px/24px Arial, Helvetica, sans-serif; color: var(--sp-ink-2, var(--sm-ink-2, rgb(31 28 28))); white-space: nowrap;
	background: rgb(255 255 255) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2354575C' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4 2.5h2.5v5.5a1.5 1.5 0 0 0 3 0V2.5H12V8a4 4 0 0 1-8 0Z'/%3E%3Cpath d='M4 5h2.5M9.5 5H12'/%3E%3C/svg%3E") 10px center / 13px 13px no-repeat;
	border: 1px solid var(--sm-ws-chip-edge, rgb(218 220 224)); border-radius: 13px; cursor: pointer;
}
html.sm-ws #smSnapChip:hover { border-color: var(--sp-line-hover, var(--sm-ws-line)); background-color: var(--sp-fill-hover, rgb(241 242 245)); color: var(--sp-ink, var(--sm-ink, rgb(4 0 0))); }
html.sm-ws #smSnapChip:active { background-color: var(--sp-fill-press, rgb(229 231 235)); }
html.sm-ws #smSnapChip[aria-pressed="true"] {
	color: var(--sp-red-text, var(--sm-red-text, rgb(207 0 36))); border-color: var(--sp-red, var(--sm-red, rgb(234 0 41)));
	background-color: var(--sp-red-tint, var(--sm-red-tint, rgb(253 236 238))); box-shadow: inset 0 0 0 1px var(--sp-red, var(--sm-red, rgb(234 0 41)));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23CF0024' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4 2.5h2.5v5.5a1.5 1.5 0 0 0 3 0V2.5H12V8a4 4 0 0 1-8 0Z'/%3E%3Cpath d='M4 5h2.5M9.5 5H12'/%3E%3C/svg%3E");
}
html.sm-ws #smSnapChip[aria-pressed="true"]:hover { color: var(--sp-red-press, var(--sm-red-press, rgb(176 0 31))); background-color: var(--sp-red-tint-strong, var(--sm-red-tint-strong, rgb(250 214 220))); }
html.sm-ws #smSnapChip:focus { outline: none; }
html.sm-ws #smSnapChip:focus-visible { outline: 2px solid var(--sm-focus, rgb(4 0 0)); outline-offset: 2px; }
/* without the design-area layer the chip has nowhere to sit */
html:not(.sm-ws) #smSnapChip { display: none; }

@media (forced-colors: active) {
	#smSelectionBand { border-color: Highlight; background-color: transparent; }
	html.sm-ws #smSnapChip { border-color: ButtonText; }
	html.sm-ws #smSnapChip[aria-pressed="true"] { border: 2px solid Highlight; }
	html.sm-ws #smSnapChip:focus-visible { outline-color: CanvasText; }
}
