/* Stand Banner reuses the Vinyl Banner page shell and Fabric editor layout. */
.ttg-stand-banner-product {
	--ttgb-navy: #073b5c;
	--ttgb-blue: #087bb8;
	--ttgb-blue-soft: #eaf7fd;
	--ttgb-ink: #172c3d;
	--ttgb-muted: #647786;
	--ttgb-line: #dce7ee;
}

.ttg-stand-banner-product .matrix-type-simple > .print-attributes,
.ttg-stand-banner-product .matrix-type-simple > .numbers-list,
.ttg-stand-banner-product .production-speed-row,
.ttg-stand-banner-product select.production-speed,
.ttg-stand-banner-product .finishing-attributes,
.ttg-stand-banner-product .matrix-type-finishing {
	display: none !important;
}

/* The page upload card is narrower than the viewport; use its compact row at all sizes. */
.ttg-stand-banner-product .ttgp-file {
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 9px 11px;
	position: relative;
	padding: 12px 30px 12px 12px;
	overflow: visible;
}

.ttg-stand-banner-product .ttgp-file-thumb {
	width: 56px;
	height: 56px;
}

.ttg-stand-banner-product .ttgp-file-info,
.ttg-stand-banner-product .ttgp-file-actions {
	min-width: 0;
	max-width: 100%;
}

.ttg-stand-banner-product .ttgp-file-name {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ttg-stand-banner-product .ttgp-file-actions {
	grid-column: 2;
	flex-flow: row wrap;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
}

.ttg-stand-banner-product .ttgp-file-review {
	max-width: 100%;
	white-space: normal;
}

.ttg-stand-banner-product .ttgp-file-messages {
	grid-column: 1 / -1;
}

/* Fixed facts shown in the same configuration rail as Vinyl Banner options. */
.ttgm-stand-banner .ttg-banner-editor-layout {
	grid-template-columns: 400px minmax(0, 1fr);
}

.ttg-stand-banner-panel .ttg-banner-section {
	padding-top: 14px;
	padding-bottom: 14px;
}

.ttg-stand-banner-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 13px;
}

.ttg-stand-banner-facts > div {
	display: grid;
	gap: 3px;
	padding: 10px;
	border: 1px solid #d8e5ec;
	border-radius: 8px;
	background: #f8fbfd;
}

.ttg-stand-banner-facts span {
	color: #587080;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.ttg-stand-banner-facts strong {
	color: var(--ttgb-ink);
	font-size: 13px;
	line-height: 1.3;
}

.ttg-stand-banner-quantity {
	display: block;
}

.ttg-stand-banner-quantity > small {
	display: block;
	margin-top: 5px;
	color: var(--ttgb-muted);
	font-size: 10.5px;
	line-height: 1.35;
}

.ttg-stand-banner-included {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttg-stand-banner-included li {
	position: relative;
	padding-left: 20px;
	color: #334e60;
	font-size: 11.5px;
	line-height: 1.4;
}

.ttg-stand-banner-included li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	color: #168454;
	font-weight: 900;
}

.ttgm-stand-banner .ttg-stand-banner-tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
}

.ttgm-stand-banner .ttg-stand-banner-tiers > span {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 8px 6px;
	border: 1px solid #cadce6;
	border-radius: 8px;
	background: #fff;
	color: #476274;
	font-size: 9.5px;
	line-height: 1.3;
	text-align: center;
}

.ttgm-stand-banner .ttg-stand-banner-tiers > span strong {
	color: var(--ttgb-navy);
	font-size: 11px;
}

.ttgm-stand-banner .ttg-stand-banner-tiers > span.is-current {
	border-color: var(--ttgb-blue);
	background: var(--ttgb-blue-soft);
	box-shadow: 0 0 0 2px rgba(8, 123, 184, .09);
}

.ttg-stand-banner-service p {
	margin: 0 0 6px;
	color: #415b6c;
	font-size: 11px;
	line-height: 1.45;
}

.ttg-stand-banner-service .ttg-stand-banner-ship-date {
	color: var(--ttgb-navy);
	font-weight: 800;
}

.ttg-stand-banner-service > small {
	display: block;
	color: var(--ttgb-muted);
	font-size: 10px;
	line-height: 1.4;
}

@media (max-width: 1180px) {
	.ttgm-stand-banner .ttg-banner-editor-layout {
		grid-template-columns: 330px minmax(0, 1fr);
	}
}

@media (max-width: 860px) {
	.ttgm-stand-banner .ttg-banner-editor-layout {
		display: block;
	}
}

@media (max-width: 520px) {
	.ttg-stand-banner-facts,
	.ttgm-stand-banner .ttg-stand-banner-tiers {
		grid-template-columns: 1fr;
	}
}


/* Compact, accessible artwork warning tooltip. */
.ttg-stand-banner-product .ttg-stand-banner-warning {
	position: absolute;
	z-index: 5;
	top: 9px;
	right: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 1px solid #d59a19;
	border-radius: 50%;
	outline: 0;
	background: #fff7dc;
	color: #8a5a00;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	cursor: help;
}

.ttg-stand-banner-product .ttg-stand-banner-warning::after {
	content: attr(data-tooltip);
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	right: -1px;
	width: min(240px, calc(100vw - 80px));
	padding: 9px 11px;
	border: 1px solid #e2bd62;
	border-radius: 7px;
	background: #fffaf0;
	box-shadow: 0 8px 24px rgba(46, 56, 64, .16);
	color: #5f450d;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.45;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-3px);
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.ttg-stand-banner-product .ttg-stand-banner-warning:hover::after,
.ttg-stand-banner-product .ttg-stand-banner-warning:focus-visible::after {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ttg-stand-banner-product .ttg-stand-banner-warning:focus-visible {
	box-shadow: 0 0 0 3px rgba(213, 154, 25, .22);
}

/* Approval success appears briefly in the existing status location. */
.ttg-stand-banner-product .ttgp-status.ttg-stand-banner-toast {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 10px 0 0;
	padding: 8px 11px;
	border: 1px solid #9ed7ba;
	border-radius: 8px;
	background: #effaf4;
	box-shadow: 0 7px 18px rgba(22, 132, 84, .1);
	color: #11633f;
	font-size: 11.5px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .2s ease, transform .2s ease;
}

.ttg-stand-banner-product .ttgp-status.ttg-stand-banner-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ttg-stand-banner-product .ttgp-status.ttg-stand-banner-toast.is-leaving {
	opacity: 0;
	transform: translateY(-2px);
}

.ttg-stand-banner-product .ttg-signage-engine-status[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.ttg-stand-banner-product .ttg-stand-banner-warning::after,
	.ttg-stand-banner-product .ttgp-status.ttg-stand-banner-toast {
		transition: none;
	}
}
