/**
 * Accelerate Patterns — tacg/accpattern minimal palette tokens, button bar, editor canvas.
 *
 * CURSOR APR-LIST-SORTABLE-002 - Mod-list drag handle: left -40px, top 50% + translateY(-50%) (vertical center), border + box-shadow; list ui-sortable placeholder.
 * CURSOR APR-LIST-SORTABLE-003 - Sorting fix is JS handle selector (see accpattern.js); CSS position left -40px.
 * CURSOR APR-ICON-MODULE-001 - .accpattern-mod-icon layout + placeholder opacity; editor canvas pointer on icon.
 * CURSOR APR-ICON-MODULE-SELECT-001 - Editor canvas: selected icon module outline (toolbar opens chooser).
 * CURSOR APR-IMAGE-MODULE-001 - Image module layout; empty frame 400x300 dashed + stripes; populated img responsive; editor selected outline + pointer.
 * CURSOR APR-LIST-MODULE-BULLET-001 - Mod-list list-style-type from data-accpattern-list-style; editor selected outline on list root.
 * CURSOR APR-LIST-MODULE-OL-001 - ol.accpattern-mod-list + class-based list-style rules shared with ul.
 * CURSOR APR-LIST-DRAG-VIS-001 - Editor canvas: mod-list drag handles idle opacity 0.15; opacity 1 on list hover/focus-within and while li.ui-sortable-helper.
 * CURSOR APR-PLACEHOLDER-INHERIT-001 - Editable ::before placeholder uses color inherit + opacity 0.5.
 * CURSOR APR-STYLE-MINIMAL-001 - Minimal --acc-* tokens on block wrapper; .accpattern-mod-button-bar layout; editor canvas placeholders + button bar edit targets (content-only SSR; no wrapper palette classes).
 * CURSOR APR-LEGACY-SURFACE-CLEANUP-001 - Removed .accpattern-inner rules (block render no longer emits); header comment aligned with content-only SSR.
 * CURSOR APR-BUTTON-BAR-SORTABLE-001 - Button bar items use grab cursor + sortable placeholder in editor canvas (plate remains pointer-events none; drag hits item shell).
 * CURSOR APR-BUTTON-BAR-ITEM-SELECT-001 - Selected button bar item outline in editor canvas (moduleToolContext + click shell).
 * CURSOR APR-BUTTON-BAR-SORTABLE-002 - Placeholder is a flex item with non-collapsing width for horizontal jQuery sortable.
 * CURSOR APR-BUTTON-BAR-SORTABLE-003 - Unscoped .track.ui-sortable placeholder rules for block iframe; dashed slot styling on front-safe selectors.
 * CURSOR APR-BUTTON-DATA-PLACEHOLDER-001 - Button bar .acctxtobj uses same pointer/cursor rules as prior [data-accpattern-editable] span.
 * CURSOR APR-BUTTON-BAR-LINK-TEXT-001 - Link mode: .accpattern-mod-button-bar__link no padding; plain text link (no underline); interactive color from --acc-interactive.
 * CURSOR APR-BUTTON-BAR-LINK-GAP-001 - Link mode: .accpattern-mod-button-bar__track gap 20px (wider spacing between text links).
 * CURSOR APR-BUTTON-BAR-ICON-001 - Bar item icon .accpattern-mod-button-bar__icon + glyph use font-size inherit only (no fixed icon dimensions); link mode control uses inline-flex + frow.
 * CURSOR APR-FEATURE-BAR-001 - Feature bar: track fwrap cards; head frow + title; body 0.9em; icon glyph inherit; editor grab/select/placeholder/add chip + acctxtobj edit targets.
 * CURSOR APR-ACCORDION-MODULE-001 - Accordion: details/summary row 1.3em + optional icon (inherit); chevron plus/minus; panel body; editor drag/add/sortable slot + selected outline.
 * @package AMP_Publisher
 * @since 2.0.0
 */

/*
 * CURSOR PFLEX-004 - The frow / fcol / fwrap copies that lived here are gone; they ship
 * once now, from common/pattern_render/pattern_render.css. Two definitions of the same classes
 * inside one plugin is a trap: this copy was scoped to .wp-block-tacg-accpattern, which ties on
 * specificity with a template's own `{{scope}} .thing` rule, so source order picked the winner and
 * the hardcoded gap:10px silently beat every template's spacing.
 */

ul.accpattern-mod-list,
ol.accpattern-mod-list{margin:0;}

.accpattern-mod-list[data-accpattern-list-style="disc"]{list-style-type:disc;}
.accpattern-mod-list[data-accpattern-list-style="circle"]{list-style-type:circle;}
.accpattern-mod-list[data-accpattern-list-style="square"]{list-style-type:square;}
.accpattern-mod-list[data-accpattern-list-style="none"]{list-style-type:none;}
.accpattern-mod-list[data-accpattern-list-style="decimal"]{list-style-type:decimal;}
.accpattern-mod-list[data-accpattern-list-style="decimal-leading-zero"]{list-style-type:decimal-leading-zero;}
.accpattern-mod-list[data-accpattern-list-style="lower-alpha"]{list-style-type:lower-alpha;}
.accpattern-mod-list[data-accpattern-list-style="upper-alpha"]{list-style-type:upper-alpha;}
.accpattern-mod-list[data-accpattern-list-style="lower-roman"]{list-style-type:lower-roman;}
.accpattern-mod-list[data-accpattern-list-style="upper-roman"]{list-style-type:upper-roman;}

.wp-block-tacg-accpattern .accpattern-mod-list > li{position:relative;}
.wp-block-tacg-accpattern .accpattern-mod-list > li > .accpattern-mod-list__drag{
	position:absolute;
	left:-40px;
	top:50%;
	transform:translateY(-50%);
	z-index:1;
	cursor:grab;
	line-height:1;
	min-width:1em;
	padding:2px 4px;
	border-radius:4px;
	border:1px solid var(--acc-border, #dcdcde);
	box-shadow:0 1px 2px rgba(0, 0, 0, 0.08);
	background:var(--acc-surface-elevated, #f6f7f7);
	text-align:center;
	user-select:none;
	box-sizing:border-box;
}
.wp-block-tacg-accpattern .accpattern-mod-list > li > .accpattern-mod-list__drag:active{cursor:grabbing;}
.wp-block-tacg-accpattern .accpattern-mod-list.ui-sortable > .ui-sortable-placeholder,
.wp-block-tacg-accpattern .accpattern-mod-list.ui-sortable > .accpattern-mod-list__sortable-slot{
	visibility:visible !important;
	opacity:1 !important;
	display:block !important;
	box-sizing:border-box !important;
	border:2px dashed var(--acc-border, #dcdcde) !important;
	border-radius:4px;
	background:rgba(34, 113, 177, .12) !important;
	min-height:1.25em;
}

.wp-block-tacg-accpattern .accpattern-mod-icon{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	box-sizing:border-box;
	min-width:1.25em;
	min-height:1.25em;
	line-height:1;
	vertical-align:middle;
}
.wp-block-tacg-accpattern .accpattern-mod-icon__glyph--placeholder{
	opacity:0.45;
}

.wp-block-tacg-accpattern .accpattern-mod-image{display:flex;flex-direction:column;gap:8px;}
.wp-block-tacg-accpattern .accpattern-mod-image__frame{box-sizing:border-box;}
.wp-block-tacg-accpattern .accpattern-mod-image__frame--empty{
	box-sizing:border-box;
	width:400px;
	max-width:100%;
	height:300px;
	border:2px dotted var(--acc-border,#c3c4c7);
	border-radius:4px;
	background-color:#fdfdfd;
	background-image:repeating-linear-gradient(-45deg,rgba(200,200,205,.38) 0,rgba(200,200,205,.38) 5px,transparent 5px,transparent 10px);
	flex-shrink:0;
}
.wp-block-tacg-accpattern .accpattern-mod-image__img{display:block;max-width:100%;height:auto;}

/* --- Block editor canvas: editable placeholders + editor focus ------------------------------ */
.editor-styles-wrapper .accpattern-canvas-preview .acctxtobj.accpattern-editable-is-empty[data-placeholder]::before,
.block-editor-block-list__layout .wp-block-tacg-accpattern .acctxtobj.accpattern-editable-is-empty[data-placeholder]::before {
	content: attr(data-placeholder);
	color: inherit;
	opacity: 0.5;
	pointer-events: none;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-icon{
	cursor:pointer;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-icon.accpattern-mod-icon--selected{
	outline:2px solid #2271b1;
	outline-offset:2px;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-image{
	cursor:pointer;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-image.accpattern-mod-image--selected{
	outline:2px solid #2271b1;
	outline-offset:2px;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-list.accpattern-mod-list--selected{
	outline:2px solid #2271b1;
	outline-offset:2px;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-list > li > .accpattern-mod-list__drag{
	opacity:0.15;
	transition:opacity .12s ease;
}
.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-list:hover > li > .accpattern-mod-list__drag,
.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-list:focus-within > li > .accpattern-mod-list__drag{
	opacity:1;
}
.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-list > li.ui-sortable-helper > .accpattern-mod-list__drag{
	opacity:1 !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .acctxtobj[contenteditable]:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item {
	cursor: grab !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item.accpattern-mod-button-bar__item--selected{
	outline:2px solid #2271b1;
	outline-offset:2px;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item.ui-sortable-helper {
	cursor: grabbing !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__track > .ui-sortable-placeholder {
	visibility: visible !important;
	display: inline-flex !important;
	flex: 0 0 auto !important;
	align-self: stretch !important;
	float: none !important;
	min-height: 2.5em;
	min-width: 2em;
	box-sizing: border-box;
	border: 1px dashed var(--acc-border, #dcdcde) !important;
	border-radius: 6px;
	background: rgba( 34, 113, 177, 0.08 );
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item .accpattern-mod-button-bar__plate {
	pointer-events: none !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item .wp-block-button {
	pointer-events: none !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item a.accpattern-mod-button-bar__plate-link,
.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item a.accpattern-mod-button-bar__link,
.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item a.wp-block-button__link,
.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item button.accpattern-mod-button-bar__btn {
	pointer-events: none !important;
	cursor: text !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__item .acctxtobj {
	pointer-events: auto !important;
	cursor: text !important;
	display: inline-block;
	min-width: 0.5em;
	min-height: 1.2em;
	vertical-align: baseline;
	box-sizing: border-box;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-button-bar__add {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 0.5em 1em !important;
	font: inherit !important;
	line-height: 1.25 !important;
	border: 1px solid var(--acc-border) !important;
	border-radius: 6px !important;
	background: var(--acc-surface-elevated) !important;
	color: var(--acc-text) !important;
	pointer-events: auto !important;
	cursor: pointer !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__item {
	cursor: grab !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__item.accpattern-mod-feature-bar__item--selected {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__item.ui-sortable-helper {
	cursor: grabbing !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__track > .ui-sortable-placeholder {
	visibility: visible !important;
	display: block !important;
	flex: 0 0 auto !important;
	align-self: stretch !important;
	float: none !important;
	min-height: 3em;
	min-width: 6em;
	box-sizing: border-box;
	border: 1px dashed var(--acc-border, #dcdcde) !important;
	border-radius: 6px;
	background: rgba( 34, 113, 177, 0.08 );
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__icon {
	pointer-events: none !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__item .acctxtobj {
	pointer-events: auto !important;
	cursor: text !important;
	display: inline-block;
	min-width: 0.5em;
	min-height: 1.2em;
	vertical-align: baseline;
	box-sizing: border-box;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__body .acctxtobj {
	display: block;
	width: 100%;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-feature-bar__add {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 0.5em 1em !important;
	font: inherit !important;
	line-height: 1.25 !important;
	border: 1px solid var(--acc-border) !important;
	border-radius: 6px !important;
	background: var(--acc-surface-elevated) !important;
	color: var(--acc-text) !important;
	pointer-events: auto !important;
	cursor: pointer !important;
}

/* --- Default --acc-* tokens on block wrapper (button bar + add chip) ------------------------- */
.wp-block-tacg-accpattern {
	--acc-surface: #fff;
	--acc-surface-elevated: #f6f7f7;
	--acc-border: #dcdcde;
	--acc-text: #1e1e1e;
	--acc-text-muted: #646970;
	--acc-accent: #2271b1;
	--acc-accent-contrast: #fff;
	--acc-interactive: #1e1e1e;
	--acc-interactive-contrast: #fff;
	--acc-medium: #2271b1;
	--acc-block-gap: 0.75rem;
	color: var(--acc-text);
	/* CURSOR PPAL-002 - No background here. This is the block WRAPPER, and a surface painted on
	   it sits behind the design with none of the design's shape: every rounded card shipped with
	   square corners showing behind it, invisible only while the palette happened to be white on a
	   white page. The ground is the template's to paint, on the element it also rounds - and a
	   template that paints none gets the banner's band under the full-width constraint, by rule. */
	box-sizing: border-box;
}

/* --- Button bar (minimal horizontal controls + token-colored button kind) ------------------- */
.wp-block-tacg-accpattern .accpattern-mod-button-bar {
	width: 100%;
	box-sizing: border-box;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__track {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar[data-accpattern-button-bar-kind="link"] .accpattern-mod-button-bar__track{
	gap: 20px;
}

/* Drop slot while dragging: matches track with .ui-sortable (no .editor-styles-wrapper prefix — block editor iframe). */
.wp-block-tacg-accpattern .accpattern-mod-button-bar__track.ui-sortable > .ui-sortable-placeholder,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__track.ui-sortable > .accpattern-mod-button-bar__sortable-slot {
	visibility: visible !important;
	opacity: 1 !important;
	display: inline-flex !important;
	flex: 0 0 auto !important;
	align-self: stretch !important;
	float: none !important;
	box-sizing: border-box !important;
	border: 2px dashed var(--acc-border, #dcdcde) !important;
	border-radius: 6px !important;
	background: rgba( 34, 113, 177, 0.2 ) !important;
	min-height: 2em !important;
	min-width: 2.5em !important;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__item {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__plate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 6px;
	background: var(--acc-accent);
	color: var(--acc-accent-contrast);
	border: 1px solid transparent;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__plate-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	text-decoration-line: none;
	color: inherit;
	box-sizing: border-box;
	padding: 0.5em 1em;
	font: inherit;
	line-height: 1.25;
	cursor: pointer;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__plate-link:hover,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__plate-link:focus,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__plate-link:focus-visible,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__plate-link:active,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__plate-link:visited {
	text-decoration: none;
	text-decoration-line: none;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__link{
	display:inline-flex;
	align-items:center;
	padding:0;
	margin:0;
	text-decoration:none;
	text-decoration-line:none;
	color:var(--acc-interactive);
	box-sizing:border-box;
	font:inherit;
	line-height:inherit;
	cursor:pointer;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__link:hover,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__link:focus,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__link:focus-visible,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__link:active,
.wp-block-tacg-accpattern .accpattern-mod-button-bar__link:visited{
	text-decoration:none;
	text-decoration-line:none;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__icon{
	display:inline-flex;
	align-items:center;
	font-size:inherit;
	line-height:1;
}

.wp-block-tacg-accpattern .accpattern-mod-button-bar__icon .accpattern-mod-icon__glyph{
	font-size:inherit;
	line-height:1;
}

/* --- Feature bar (stacked title row + supporting text; track wraps) -------------------------- */
.wp-block-tacg-accpattern .accpattern-mod-feature-bar {
	width: 100%;
	box-sizing: border-box;
}

.wp-block-tacg-accpattern .accpattern-mod-feature-bar__track {
	box-sizing: border-box;
	gap: 0.75rem;
}

.wp-block-tacg-accpattern .accpattern-mod-feature-bar__track.ui-sortable > .ui-sortable-placeholder,
.wp-block-tacg-accpattern .accpattern-mod-feature-bar__track.ui-sortable > .accpattern-mod-feature-bar__sortable-slot {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;
	flex: 0 1 200px !important;
	align-self: stretch !important;
	float: none !important;
	box-sizing: border-box !important;
	border: 2px dashed var(--acc-border, #dcdcde) !important;
	border-radius: 6px !important;
	background: rgba( 34, 113, 177, 0.2 ) !important;
	min-height: 3em !important;
	min-width: 6em !important;
}

.wp-block-tacg-accpattern .accpattern-mod-feature-bar__item {
	flex: 1 1 200px;
	min-width: 12em;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.wp-block-tacg-accpattern .accpattern-mod-feature-bar__head {
	align-items: center;
}

.wp-block-tacg-accpattern .accpattern-mod-feature-bar__body {
	font-size: 0.9em;
	line-height: 1.35;
	box-sizing: border-box;
}

.wp-block-tacg-accpattern .accpattern-mod-feature-bar__icon {
	display: inline-flex;
	align-items: center;
	font-size: inherit;
	line-height: 1;
}

.wp-block-tacg-accpattern .accpattern-mod-feature-bar__icon .accpattern-mod-icon__glyph {
	font-size: inherit;
	line-height: 1;
}

/* --- Accordion (details/summary FAQ-style) ------------------------------------------------ */
.wp-block-tacg-accpattern .accpattern-mod-accordion {
	width: 100%;
	box-sizing: border-box;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__list {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__item {
	box-sizing: border-box;
	border: 1px solid var(--acc-border, #dcdcde);
	border-radius: 6px;
	background: var(--acc-surface, #fff);
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__summary {
	font-size: 1.3em;
	line-height: 1.25;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	box-sizing: border-box;
	width: 100%;
	padding: 0.5em 0.65em;
	margin: 0;
	gap: 0.5em;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__summary::-webkit-details-marker {
	display: none;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__icon {
	display: inline-flex;
	align-items: center;
	font-size: inherit;
	line-height: 1;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__icon .accpattern-mod-icon__glyph {
	font-size: inherit;
	line-height: 1;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__title {
	font: inherit;
	font-size: 1em;
	line-height: inherit;
	flex: 1 1 auto;
	min-width: 0;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__chev {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	position: relative;
	box-sizing: border-box;
	opacity: 0.65;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__chev-bar {
	position: absolute;
	background: currentColor;
	border-radius: 1px;
	box-sizing: border-box;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__chev-bar--h {
	left: 10%;
	right: 10%;
	height: 2px;
	top: calc(50% - 1px);
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__chev-bar--v {
	top: 10%;
	bottom: 10%;
	width: 2px;
	left: calc(50% - 1px);
	transition: opacity 0.12s ease, transform 0.12s ease;
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__item[open] .accpattern-mod-accordion__chev-bar--v {
	opacity: 0;
	transform: rotate(90deg);
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__panel {
	padding: 0 0.65em 0.65em;
	font-size: 0.95em;
	line-height: 1.45;
	box-sizing: border-box;
	color: var(--acc-text, #1e1e1e);
}

.wp-block-tacg-accpattern .accpattern-mod-accordion__list.ui-sortable > .ui-sortable-placeholder,
.wp-block-tacg-accpattern .accpattern-mod-accordion__list.ui-sortable > .accpattern-mod-accordion__sortable-slot {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;
	box-sizing: border-box !important;
	border: 2px dashed var(--acc-border, #dcdcde) !important;
	border-radius: 6px !important;
	background: rgba(34, 113, 177, 0.12) !important;
	min-height: 2.5em !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__item {
	cursor: grab !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__item.accpattern-mod-accordion__item--selected {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__item.ui-sortable-helper {
	cursor: grabbing !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__drag {
	pointer-events: auto !important;
	cursor: grab !important;
	line-height: 1;
	padding: 2px 4px;
	margin-right: 2px;
	border-radius: 4px;
	border: 1px solid var(--acc-border, #dcdcde);
	background: var(--acc-surface-elevated, #f6f7f7);
	user-select: none !important;
	box-sizing: border-box;
	flex: 0 0 auto;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__drag:active {
	cursor: grabbing !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__chev,
.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__icon {
	pointer-events: none !important;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__summary .acctxtobj {
	pointer-events: auto !important;
	cursor: text !important;
	display: inline-block;
	min-width: 0.5em;
	min-height: 1.2em;
	vertical-align: baseline;
	box-sizing: border-box;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__panel .acctxtobj {
	pointer-events: auto !important;
	cursor: text !important;
	display: block;
	width: 100%;
	min-height: 1.2em;
	box-sizing: border-box;
}

.editor-styles-wrapper .accpattern-canvas-preview .wp-block-tacg-accpattern .accpattern-mod-accordion__add {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 0.5em 1em !important;
	margin-top: 0.35em !important;
	font: inherit !important;
	line-height: 1.25 !important;
	border: 1px solid var(--acc-border) !important;
	border-radius: 6px !important;
	background: var(--acc-surface-elevated) !important;
	color: var(--acc-text) !important;
	pointer-events: auto !important;
	cursor: pointer !important;
}

/**
 * Buyer shell (P3): placeholder text, selection outline, and the template picker.
 *
 * CURSOR PSHELL-004 - Editor-only affordances for the package shell. Deliberately minimal:
 * everything visual about a pattern belongs to its own template.css, so these rules style only the
 * editing chrome and never the pattern itself.
 */
.block-editor-block-list__layout .accpt-shell__canvas [data-accpt-node][contenteditable].accpt-is-empty::before {
	content: attr(data-placeholder);
	opacity: 0.5;
	pointer-events: none;
}

.block-editor-block-list__layout .accpt-shell__canvas [data-accpt-node][contenteditable]:focus {
	outline: 2px solid var(--wp-admin-theme-color, #3858e9);
	outline-offset: 2px;
}

.block-editor-block-list__layout .accpt-shell__canvas [data-accpt-node]:not([contenteditable]):hover {
	outline: 1px dashed var(--wp-admin-theme-color, #3858e9);
	outline-offset: 2px;
	cursor: pointer;
}

.accpt-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

/*
 * CURSOR PSHELL-009 - Canvas busy state while a re-render is in flight. Picking an image or
 * a link is a server round trip; with no feedback the buyer reads the pause as a dead control.
 */
.block-editor-block-list__layout .accpt-shell__canvas.is-busy {
	opacity: 0.55;
	transition: opacity 0.12s ease-in;
	pointer-events: none;
}

/*
 * CURSOR PSHELL-010 - Editable nodes must be clickable and must look it.
 *
 * Core's content.css sets `.wp-block img:not([draggable]) { pointer-events: none }`, so a block
 * image swallows every click. The renderer now emits draggable="false" to opt out of that rule;
 * this restores pointer-events for every editable node as a backstop, because the same trap exists
 * for svg and for any future core rule of that shape.
 *
 * The affordance matters as much as the fix: a text node advertises itself with a placeholder, but
 * an image or an icon looks exactly like content until you happen to click it.
 */
.block-editor-block-list__layout .accpt-shell__canvas [data-accpt-node] {
	pointer-events: auto;
}

.block-editor-block-list__layout .accpt-shell__canvas [data-accpt-node][tabindex]:hover {
	outline: 2px dashed var(--wp-admin-theme-color, #3858e9);
	outline-offset: 3px;
	cursor: pointer;
}

.block-editor-block-list__layout .accpt-shell__canvas [data-accpt-node][tabindex]:focus,
.block-editor-block-list__layout .accpt-shell__canvas [data-accpt-node][tabindex]:focus-visible {
	outline: 2px solid var(--wp-admin-theme-color, #3858e9);
	outline-offset: 3px;
}

/* A broken or still-loading image collapses to a couple of pixels and becomes unclickable. */
.block-editor-block-list__layout .accpt-shell__canvas img[data-accpt-node] {
	min-height: 2rem;
}

/*
 * Image editor.
 *
 * CURSOR PIMG-002 - The picture at a workable size with the crop window over it. The window
 * shows the picture at full strength while everything outside it is dimmed, so the buyer is looking
 * at the result rather than at a rectangle they have to imagine through.
 */

/* The window takes the screen it is given. A picture is the thing being judged here, so making the
   buyer squint at it inside a small box - or scroll a dialog with empty screen all around it - is the
   one thing this editor must not do. */

.accpt-image-modal.components-modal__frame {
	width: 96vw;
	max-width: 96vw;
	height: 94vh;
	max-height: 94vh;
}

.accpt-image-modal .components-modal__content {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* min-height: 0 on the row and the column is what lets the canvas shrink to the space instead of
   pushing the dialog taller than the screen - a flex item's floor is its content otherwise. */

.accpt-image-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	gap: 1.5rem;
	align-items: stretch;
}

.accpt-image-modal__canvas {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.accpt-image-modal__side {
	flex: 0 0 20rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow-y: auto;
}

@media screen and (max-width: 60rem) {

	.accpt-image-modal__body {
		flex-wrap: wrap;
		overflow-y: auto;
	}

	.accpt-image-modal__side {
		flex: 1 1 100%;
	}
}

.accpt-image-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.5rem;
}

/* The frame shrink-wraps the picture rather than the other way round: every crop fraction is read
   against this box, so it has to be exactly the box the picture occupies. Letterboxing the image
   inside a larger frame would silently shift every crop the buyer set. */

.accpt-crop {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
}

.accpt-crop__frame {
	position: relative;
	display: inline-block;
	overflow: hidden;
	background: #1e1e1e;
	user-select: none;
	line-height: 0;
}

.accpt-crop__source {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	opacity: 0.35;
}

.accpt-confirm__actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-top: 1.5rem;
}

/* The window is the same picture again, undimmed and offset so the two line up exactly. */

.accpt-crop__window {
	position: absolute;
	overflow: hidden;
	box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0, 0, 0, 0.4);
	cursor: move;
}

.accpt-crop__window.is-circle {
	border-radius: 50%;
}

.accpt-crop__cutout {
	position: absolute;
	max-width: none;
	pointer-events: none;
}

.accpt-crop__window::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
	background-size: 33.333% 33.333%;
	pointer-events: none;
}

.accpt-crop__handle {
	position: absolute;
	width: 14px;
	height: 14px;
	background: #fff;
	border: 1px solid #1e1e1e;
	border-radius: 2px;
}

.accpt-crop__handle--nw {
	top: -7px;
	left: -7px;
	cursor: nwse-resize;
}

.accpt-crop__handle--ne {
	top: -7px;
	right: -7px;
	cursor: nesw-resize;
}

.accpt-crop__handle--sw {
	bottom: -7px;
	left: -7px;
	cursor: nesw-resize;
}

.accpt-crop__handle--se {
	bottom: -7px;
	right: -7px;
	cursor: nwse-resize;
}

/* CURSOR PSCHEMA-003 - Schema panel note. */
.block-editor-block-inspector .accpt-schema-note {
	margin: 0 0 1em;
	font-size: 12px;
	color: #646970;
}

/* CURSOR PSCHEMA-008 - Group heading, for a template describing more than one thing. Three
   sets of the same four questions run together into one long column otherwise, and a buyer fills the
   second card's brand into the first. The rule reads as a heading and the line separates the groups;
   the first group needs neither, since the panel title is already above it. */
.block-editor-block-inspector .accpt-schema-group {
	margin: 0 0 0.75em;
	font-size: 14px;
	font-weight: 700;
	color: #1e1e1e;
}

.block-editor-block-inspector .accpt-schema-group ~ .accpt-schema-group,
.block-editor-block-inspector .components-base-control + .accpt-schema-group {
	margin-top: 1.5em;
	padding-top: 1.25em;
	border-top: 1px solid #dcdcde;
}

/* CURSOR PITEM-001 - Collection item rows in the Inspector. Add, remove and reorder were
   only reachable from the block toolbar, which appears after clicking into an item - so a buyer
   looking for "how do I add a feature" had nothing to find. */
.block-editor-block-inspector .accpt-items {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 8px;
}

.block-editor-block-inspector .accpt-items__row {
	display: flex;
	flex-flow: row;
	justify-content: space-between;
	align-items: center;
	padding: 2px 2px 2px 8px;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #fff;
}

/* Shrinks rather than grows, so space-between keeps the buttons hard right and a long item name
   ellipses instead of shoving them off the edge. */
.block-editor-block-inspector .accpt-items__label {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 12px;
}

.block-editor-block-inspector .accpt-items__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}

.block-editor-block-inspector .accpt-items__note {
	margin: 8px 0 0;
	font-size: 12px;
	color: #646970;
}

/**
 * Full-width constrained.
 *
 * CURSOR PSEL-003 - Block-level content alignment, available to every template.
 *
 * Two independent settings make the effect. `align: full` bleeds the block to the browser edges -
 * that is WordPress's own alignment and it is what paints a background across the whole window.
 * `contentAlignment` then pulls the contents back onto the page's own content column, so the words
 * line up with the paragraphs above and below the block while the color or the picture behind them
 * does not.
 *
 * The constraint is spent on an inner element rather than on the block wrapper for two reasons. A
 * template's own padding sits on the wrapper and is written at a higher specificity than anything
 * here, so a rule on the wrapper would lose to it. And a backdrop positioned against the wrapper has
 * to keep resolving against the full width - this element is static, so it never becomes a
 * containing block and never drags an absolutely placed backdrop in with it.
 *
 * display: contents is what makes this free: with no alignment chosen the element has no box at all,
 * so every template that does not use the feature lays out exactly as it did before the wrapper
 * existed.
 *
 * The width reads the theme's own value, so a pattern lines up on any site at any content width with
 * nothing to configure. The fallback is the default WordPress ships for a theme that publishes none.
 */

.wp-block-tacg-accpattern > .accpt-cc {
	display: contents;
}

.wp-block-tacg-accpattern.fullcc > .accpt-cc {
	display: block;
	width: 100%;
	max-width: var(--accpt-cc-width, var(--wp--style--global--content-size, 1300px));
	margin-left: auto;
	margin-right: auto;
}

/*
 * Banner.
 *
 * CURSOR PSEL-007 - Full-width constrained on a template that paints nothing of its own.
 * The contents sit on the content column and the band behind them is what makes the full width mean
 * something. Vertical padding follows the template's edge padding when it declared one, so the band
 * is in proportion to the design rather than to a number picked here.
 */

.wp-block-tacg-accpattern.accpt-banner.fullcc {
	background-color: var(--acc-surface-elevated);
	padding-top: var(--accpt-bleed-pad, 3rem);
	padding-bottom: var(--accpt-bleed-pad, 3rem);
}

/*
 * Full width on a theme that does not do alignment.
 *
 * CURSOR PSEL-005 - alignfull is only a class name; the theme supplies the layout behind it.
 * This class is added by the render, and only when the theme supports neither block layout nor
 * align-wide, so a theme that handles its own alignment never meets these rules.
 *
 * --accpt-vw is the viewport without its scrollbar, measured in the browser. 100vw is the fallback
 * and it is the wrong number by exactly the width of the scrollbar - which is a page that scrolls
 * sideways - so the measurement is what makes this usable rather than the other way round.
 *
 * The one case this cannot reach: an ancestor with overflow: hidden or a transform becomes the
 * containing block, and the bleed is clipped to it. Nothing in CSS can detect that.
 */

/*
 * Edge padding.
 *
 * CURSOR PSEL-006 - The space between the design and the browser edge, declared by the
 * template and spent only where it means anything: the block is bled and its contents are not being
 * pulled back to the content column. At content width the card's own padding is already the answer,
 * and under fullcc the contents are centered on the column, which is the answer there.
 *
 * Gated on accpt-bleed, which the render adds only for a template that declares a value, so this
 * cannot quietly override the padding of a template that says nothing.
 */

.wp-block-tacg-accpattern.accpt-bleed.alignfull:not(.fullcc),
.wp-block-tacg-accpattern.accpt-bleed.alignwide:not(.fullcc) {
	padding-left: var(--accpt-bleed-pad);
	padding-right: var(--accpt-bleed-pad);
}

.wp-block-tacg-accpattern.accpt-selfalign.alignfull {
	width: var(--accpt-vw, 100vw);
	max-width: var(--accpt-vw, 100vw);
	margin-left: calc(50% - var(--accpt-vw, 100vw) / 2);
	margin-right: calc(50% - var(--accpt-vw, 100vw) / 2);
}

/*
 * Float.
 *
 * CURSOR PFLOAT-001 - A narrow design beside the page's running text, the way a pull quote or
 * a table of contents sits in an article. The template opts in with `float: true` and the buyer picks
 * a side from the toolbar; the width is the template's to set through --accpt-float-width on its
 * scope, and 22rem otherwise. The outer margin is the gutter the wrapped text keeps.
 *
 * Below the point where a floated box and a column of text can no longer share the line, the float
 * drops back into the flow at full width - a 22rem box beside 12rem of text is worse than either
 * alone. In the editor every block is its own row, so there is nothing to wrap: the width is shown
 * and the float itself is not.
 */

.wp-block-tacg-accpattern.accpt-float {
	width: min(100%, var(--accpt-float-width, 22rem));
	margin-bottom: var(--acc-space-3, 1rem);
}

.wp-block-tacg-accpattern.accpt-float-left {
	float: left;
	margin-right: var(--acc-space-4, 1.5rem);
}

.wp-block-tacg-accpattern.accpt-float-right {
	float: right;
	margin-left: var(--acc-space-4, 1.5rem);
}

@media (max-width: 40rem) {
	.wp-block-tacg-accpattern.accpt-float {
		float: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

.block-editor-block-list__layout .accpt-shell.accpt-float-left .wp-block-tacg-accpattern,
.block-editor-block-list__layout .accpt-shell.accpt-float-right .wp-block-tacg-accpattern {
	width: min(100%, var(--accpt-float-width, 22rem));
}

.block-editor-block-list__layout .accpt-shell.accpt-float-right .wp-block-tacg-accpattern {
	margin-left: auto;
}

/*
 * Palette chooser.
 *
 * CURSOR PPAL-001 - Palettes are recognized by their colors, not their names, so the
 * swatch strip is the control and the name is the caption under it. Wide enough tiles that the
 * strip reads as a scheme rather than seven dots.
 */

.accpt-palette-modal.components-modal__frame {
	width: 60rem;
	max-width: 92vw;
}

.accpt-palette__intro {
	margin: 0 0 1rem;
	max-width: 44rem;
	color: #50575e;
}

.accpt-palette__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.accpt-palette__choice {
	flex: 1 1 14rem;
	max-width: 18rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.5rem;
	background: none;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	cursor: pointer;
	text-align: left;
}

.accpt-palette__choice:hover {
	border-color: #949494;
}

.accpt-palette__choice.is-active {
	border-color: var(--wp-admin-theme-color, #3858e9);
	box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #3858e9);
}

.accpt-palette__swatches {
	display: flex;
	height: 3rem;
	border-radius: 3px;
	overflow: hidden;
}

.accpt-palette__swatch {
	flex: 1 1 0;
}

/* Nothing chosen has nothing to show, so it says so with a hatch rather than a blank tile that
   reads as a palette whose colors failed to load. */

.accpt-palette__swatches--none {
	background-image: repeating-linear-gradient(45deg, #f0f0f1 0 6px, #fff 6px 12px);
	border: 1px solid #dcdcde;
}

.accpt-palette__name {
	font-weight: 600;
}

.accpt-palette__manage {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #dcdcde;
}

/*
 * Alignment inside the editor canvas.
 *
 * CURSOR PALIGN-001 - The canvas has no theme layout around the content: no constrained
 * wrapper, none of the theme's own width rules, and therefore nothing for alignfull to mean. The
 * block bleeds itself to the canvas document instead, which is the same shape the front end takes on
 * a theme that does not align.
 *
 * Scoped to the editor's own block list so none of it can reach a page.
 */

.block-editor-block-list__layout .accpt-shell.alignfull {
	width: var(--accpt-vw, 100vw);
	max-width: var(--accpt-vw, 100vw);
	margin-left: calc(50% - var(--accpt-vw, 100vw) / 2);
	margin-right: calc(50% - var(--accpt-vw, 100vw) / 2);
}

/* Wide bleeds the same way and is then capped at the theme's wide size. In a canvas narrower than
   that cap - which is most of them, with a sidebar open - wide and full are the same width, and
   that is the honest answer rather than a made-up difference. */

/* The class is doubled and the margins are flagged, both to answer the editor's own global-styles
   sheet. It centers every root-level block on the content column with `margin: auto !important`, and
   exempts `.alignfull` from that - but not `.alignwide`, which is why full bled correctly and wide
   did not. Auto margins on a box wider than its container resolve to nothing on the left and the
   overflow on the right, so a wide block sat at the content column's left edge and ran off the
   canvas, taking a horizontal scrollbar with it. */

.block-editor-block-list__layout .accpt-shell.alignwide.alignwide {
	--accpt-wide: min(var(--accpt-vw, 100vw), var(--wp--style--global--wide-size, 1250px));
	width: var(--accpt-wide);
	max-width: var(--accpt-wide);
	margin-left: calc(50% - var(--accpt-wide) / 2) !important;
	margin-right: calc(50% - var(--accpt-wide) / 2) !important;
}

/*
 * The content constraint, inside the canvas.
 *
 * CURSOR PALIGN-003 - The page's content width is usually wider than the canvas, so
 * constraining the contents to it changed nothing on screen and the setting read as broken. In the
 * canvas the constraint is the column the canvas itself gives an ordinary block - which is what the
 * buyer is being shown either way: the contents line up with the blocks above and below, while the
 * band behind them runs to the edge.
 *
 * Still capped by the page's own width, so a canvas wider than the content column shows the real one.
 */

.block-editor-block-list__layout .accpt-shell .wp-block-tacg-accpattern.fullcc > .accpt-cc {
	max-width: min(
		var(--accpt-cc-width, var(--wp--style--global--content-size, 1300px)),
		var(--accpt-cc-canvas, 100%)
	);
}

/* CURSOR PLINK-001 - The icon pair on a link's panel: choose beside clear, not stacked. */

.accpt-linkicon {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

/* CURSOR PFX-002 - The Effects panel: flex and gap throughout, no margins. Each effect is one
   container holding its switch and, while it is on, its sub-switches inset beneath it. */

.accpt-fx-panel {
	display: flex;
	flex-flow: column;
	gap: 10px;
}

.accpt-fx-replay {
	width: 100%;
	justify-content: center;
}

.accpt-fx {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.accpt-fx .components-base-control,
.accpt-fx .components-base-control__field {
	margin-bottom: 0;
}

.accpt-fx__sub {
	padding-left: 20px;
}

.accpt-fx__sub .components-base-control,
.accpt-fx__sub .components-base-control__field,
.accpt-fx__sub .components-input-control {
	margin-bottom: 0;
}

.accpt-fx__sub select.components-select-control__input,
.accpt-fx__sub select {
	height: 24px !important;
	min-height: 24px !important;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 24px;
}
