/* Wytex Proof Builder — customer-facing UI */

.wypb-uploader {
	--wypb-proof-aspect-ratio: 3.75 / 2.25;
	--wypb-radius: 12px;
	--wypb-blue-bg: #eff6ff;
	--wypb-blue-border: #bfdbfe;
	--wypb-blue-text: #1e3a8a;
	--wypb-muted: #64748b;
	border: 1px solid #e2e8f0;
	border-radius: var(--wypb-radius);
	padding: 18px;
	margin: 16px 0;
	background: #fff;
	box-sizing: border-box;
}

.wypb-uploader *,
.wypb-uploader *::before,
.wypb-uploader *::after {
	box-sizing: border-box;
}

.wypb-title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
}

.wypb-subtitle {
	margin: 0 0 16px;
	color: var(--wypb-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.wypb-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.wypb-sr-live {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons */
.wypb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	border-radius: 10px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
	background: #f1f5f9;
	color: #0f172a;
}

.wypb-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.wypb-btn-primary {
	background: #16a34a;
	border-color: #15803d;
	color: #fff;
}

.wypb-btn-primary:hover:not(:disabled) {
	background: #15803d;
}

.wypb-btn-secondary {
	background: #fff;
	border-color: #cbd5e1;
	color: #0f172a;
}

.wypb-btn-secondary:hover:not(:disabled) {
	border-color: #94a3b8;
	background: #f8fafc;
}

.wypb-btn-ghost {
	background: transparent;
	border-color: transparent;
	color: #334155;
}

.wypb-btn-ghost:hover:not(:disabled) {
	background: #f1f5f9;
}

.wypb-btn-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.wypb-btn-warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

.wypb-btn--sm {
	min-height: 40px;
	padding: 8px 12px;
	font-size: 0.85rem;
}

/* Flow intro + steps */
.wypb-flow-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	margin-bottom: 16px;
	border: 1px solid var(--wypb-blue-border);
	border-radius: var(--wypb-radius);
	background: var(--wypb-blue-bg);
}

.wypb-flow-intro__headline {
	display: block;
	font-size: 1.05rem;
	color: var(--wypb-blue-text);
	margin-bottom: 6px;
}

.wypb-flow-intro__sub {
	margin: 0;
	font-size: 0.9rem;
	color: #334155;
	line-height: 1.5;
	max-width: 42em;
}

.wypb-step-tracker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.wypb-step-tracker__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #64748b;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e2e8f0;
}

.wypb-step-tracker__item.is-active {
	color: var(--wypb-blue-text);
	border-color: #93c5fd;
	background: #dbeafe;
}

.wypb-step-tracker__item.is-complete {
	color: #166534;
	border-color: #86efac;
	background: #dcfce7;
}

.wypb-step-tracker__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35em;
	height: 1.35em;
	border-radius: 50%;
	background: #e2e8f0;
	font-size: 0.75rem;
}

.wypb-step-tracker__item.is-active .wypb-step-tracker__num {
	background: #3b82f6;
	color: #fff;
}

.wypb-step-tracker__item.is-complete .wypb-step-tracker__num {
	background: #22c55e;
	color: #fff;
}

/* Side cards */
.wypb-side-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.wypb-side-card {
	border: 1px solid #e2e8f0;
	border-radius: var(--wypb-radius);
	padding: 14px;
	background: #fafafa;
}

.wypb-side-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.wypb-side-card__title {
	font-size: 1rem;
	min-width: 0;
	flex: 1;
	line-height: 1.25;
	word-break: normal;
	overflow-wrap: anywhere;
}

.wypb-side-thumb-wrap {
	margin-bottom: 10px;
}

.wypb-side-thumb {
	width: 100%;
	aspect-ratio: var(--wypb-proof-aspect-ratio);
	max-height: none;
	border-radius: 8px;
	background: #fff;
	border: 1px dashed #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.wypb-side-thumb img,
.wypb-side-thumb canvas {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.wypb-side-filename {
	display: block;
	font-size: 0.8rem;
	color: var(--wypb-muted);
	margin-top: 6px;
	word-break: break-all;
}

.wypb-dropzone {
	border: 2px dashed #94a3b8;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	margin-bottom: 12px;
}

.wypb-dropzone:hover,
.wypb-dropzone:focus {
	outline: none;
	border-color: #3b82f6;
	background: #f8fafc;
}

.wypb-dropzone.is-dragover {
	border-color: #16a34a;
	background: #ecfdf5;
}

.wypb-dropzone__icon {
	display: block;
	font-size: 1.5rem;
	font-weight: 300;
	color: #94a3b8;
	margin-bottom: 4px;
}

.wypb-dropzone__text {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
}

.wypb-dropzone__hint {
	display: block;
	font-size: 0.8rem;
	color: var(--wypb-muted);
	margin-top: 4px;
}

.wypb-side-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wypb-side-card__actions .wypb-btn {
	flex: 1 1 auto;
	min-width: 120px;
}

.wypb-link-btn {
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	color: #2563eb;
	text-decoration: underline;
	cursor: pointer;
	text-align: left;
}

.wypb-link-btn:hover {
	color: #1d4ed8;
}

.wypb-link-btn:disabled,
.wypb-link-btn[hidden] {
	display: none !important;
}

.wypb-side-card__uploading {
	font-size: 0.85rem;
	color: var(--wypb-blue-text);
	margin: 8px 0 0;
}

/* Status badges */
.wypb-status {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0.02em;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	white-space: nowrap;
}

.wypb-status--waiting {
	background: #f1f5f9;
	color: #475569;
	border-color: #e2e8f0;
}

.wypb-status--uploaded {
	background: #dbeafe;
	color: #1e40af;
	border-color: #93c5fd;
}

.wypb-status--warning {
	background: #fffbeb;
	color: #b45309;
	border-color: #fcd34d;
}

.wypb-status--approved {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}

.wypb-status--error {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

.wypb-confirm-checklist {
	padding: 14px;
	border: 1px solid var(--wypb-blue-border);
	border-radius: var(--wypb-radius);
	background: var(--wypb-blue-bg);
	color: var(--wypb-blue-text);
}

.wypb-verify-label {
	font-weight: 600;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 10px;
	font-size: 0.88rem;
	color: #334155;
}

.wypb-verify-label--master {
	font-weight: 700;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--wypb-blue-border);
}

.wypb-confirm-checklist__label {
	margin: 0 0 4px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wypb-blue-text);
}

.wypb-approval-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.wypb-approved-state {
	font-size: 0.9rem;
	font-weight: 600;
	background: #dcfce7;
	color: #166534;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #86efac;
}

.wypb-uploader.is-approved {
	border-color: #86efac;
	box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.5);
}

.wypb-note {
	margin: 10px 0 0;
	font-size: 0.8rem;
	color: var(--wypb-muted);
}

.wypb-version-notice {
	color: #b45309;
	font-weight: 600;
}

.wypb-disclaimer {
	margin-top: 12px;
	padding: 12px;
	font-size: 0.8rem;
	color: #334155;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
}

.wypb-pdf-pages-prompt {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #93c5fd;
	border-radius: var(--wypb-radius);
	background: var(--wypb-blue-bg);
	color: var(--wypb-blue-text);
}

.wypb-pdf-pages-prompt__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

/* Warnings */
.wypb-warning-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.wypb-warning {
	font-size: 0.85rem;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #f59e0b;
	background: #fffbeb;
	color: #92400e;
}

.wypb-warning--warning {
	border-color: #f59e0b;
	background: #fffbeb;
	color: #92400e;
}

.wypb-warning--error,
.wypb-warning--blocker {
	border-color: #dc2626;
	background: #fef2f2;
	color: #991b1b;
}

.wypb-warning--info {
	border-color: #3b82f6;
	background: #eff6ff;
	color: #1d4ed8;
}

/* Modal — z-index above WP admin bar (99999) and typical theme headers / mini-cart */
.wypb-modal[hidden] {
	display: none !important;
}

.wypb-modal {
	position: fixed;
	inset: 0;
	z-index: 500000;
	isolation: isolate;
}

.wypb-modal-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(2, 6, 23, 0.72);
}

.wypb-modal-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1180px, 96vw);
	max-height: calc(100vh - 80px);
	height: min(94vh, 900px);
	margin: 40px auto 0;
	background: #fff;
	border-radius: var(--wypb-radius);
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.wypb-modal-header {
	flex-shrink: 0;
	padding: 12px 16px;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}

.wypb-modal-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wypb-modal-title {
	margin: 0;
	font-size: 1.15rem;
}

.wypb-modal-close-btn {
	min-height: 44px;
}

.wypb-modal-progress {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--wypb-muted);
}

.wypb-proof-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.wypb-proof-tab {
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 10px;
	border: 2px solid #e2e8f0;
	background: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wypb-proof-tab[aria-selected="true"] {
	border-color: #2563eb;
	background: #eff6ff;
	color: #1e40af;
}

.wypb-proof-tab__badge {
	font-size: 0.7rem;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 6px;
	background: #e2e8f0;
	color: #475569;
}

.wypb-proof-tab .wypb-proof-tab__badge.has-warning {
	background: #fef3c7;
	color: #b45309;
}

.wypb-proof-tab .wypb-proof-tab__badge.has-error {
	background: #fee2e2;
	color: #991b1b;
}

.wypb-proof-tab .wypb-proof-tab__badge.is-ok {
	background: #dcfce7;
	color: #166534;
}

.wypb-modal-body {
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.wypb-proof-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 0;
	height: 100%;
	min-height: 0;
	min-width: 0;
	align-items: start;
}

.wypb-proof-canvas-area {
	padding: 12px 14px 32px;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	max-height: 100%;
}

.wypb-canvas-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.wypb-guides-explainer {
	margin-bottom: 10px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #334155;
}

.wypb-guides-explainer ul {
	margin: 8px 0 0 1.1rem;
	padding: 0;
}

.wypb-setup-summary {
	margin-bottom: 10px;
	padding: 10px 12px;
	border: 1px solid var(--wypb-blue-border);
	border-radius: 8px;
	background: var(--wypb-blue-bg);
	color: var(--wypb-blue-text);
	font-size: 0.8rem;
	line-height: 1.45;
}

.wypb-modal-stage {
	position: relative;
	margin-bottom: 10px;
}

.wypb-canvas-empty-state {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 10px;
	border: 2px dashed #cbd5e1;
}

.wypb-canvas-empty-state[hidden] {
	display: none !important;
}

.wypb-canvas-empty-state__title {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	color: #334155;
}

.wypb-canvas-empty-state__hint {
	margin: 0 0 16px;
	font-size: 0.85rem;
	color: var(--wypb-muted);
	max-width: 280px;
}

.wypb-move-hint,
.wypb-scale-hint {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	z-index: 6;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.88);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	pointer-events: none;
}

.wypb-move-hint[hidden],
.wypb-scale-hint[hidden] {
	display: none !important;
}

.wypb-artboard {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: var(--wypb-proof-aspect-ratio);
	border: 2px dashed #111827;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.wypb-modal-artboard {
	max-height: none;
}

.wypb-canvas {
	display: block;
	width: 100%;
	height: auto;
}

.wypb-pdf-layer {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.wypb-preview-frame {
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

.wypb-guide-layer {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.wypb-guide {
	position: absolute;
	border: 1px dashed;
}

.wypb-guide--trim {
	border-color: #dc2626;
}

.wypb-guide--safe {
	border-color: #2563eb;
}

.wypb-guide-layer.is-hide-safe .wypb-guide--safe {
	display: none;
}

.wypb-guide-layer.is-hide-trim .wypb-guide--trim {
	display: none;
}

.wypb-guide span {
	position: absolute;
	left: 4px;
	top: -18px;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.92);
	color: #334155;
}

.wypb-guide-bleed-label {
	position: absolute;
	right: 6px;
	bottom: 6px;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(241, 245, 249, 0.95);
	color: #334155;
}

.wypb-preview-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	text-align: center;
	font-size: 12px;
	color: #64748b;
	background: rgba(255, 255, 255, 0.92);
	z-index: 4;
}

/* Toolbar */
.wypb-proof-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e2e8f0;
}

.wypb-proof-toolbar-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 6px;
}

.wypb-proof-toolbar-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wypb-proof-toolbar-buttons .wypb-btn {
	flex: 0 1 auto;
}

.wypb-proof-toolbar.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.wypb-advanced-toggle {
	width: 100%;
	justify-content: center;
}

.wypb-proof-toolbar-advanced {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e2e8f0;
}

.wypb-proof-side-panel {
	position: sticky;
	top: 0;
	align-self: start;
	max-height: min(calc(100vh - 120px), 900px);
	border-left: 1px solid #e2e8f0;
	padding: 14px;
	padding-bottom: 28px;
	background: #f8fafc;
	overflow-y: auto;
	min-width: 0;
	min-height: 0;
}

.wypb-proof-checklist__title {
	display: block;
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.wypb-proof-checklist__list {
	margin: 0;
	padding: 0 0 0 1.2rem;
	font-size: 0.85rem;
	line-height: 1.55;
	color: #334155;
}

.wypb-proof-checklist__list li.is-done {
	color: #166534;
}

.wypb-modal-primary-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.wypb-modal-primary-actions .wypb-btn {
	width: 100%;
}

.wypb-modal-continue-hint {
	margin: 0;
	font-size: 0.8rem;
	color: var(--wypb-muted);
	line-height: 1.4;
}

.wypb-btn.is-cta-blocked {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Replace artwork guard */
.wypb-replace-guard[hidden] {
	display: none !important;
}

.wypb-replace-guard {
	position: fixed;
	inset: 0;
	z-index: 500200;
	isolation: isolate;
}

.wypb-replace-guard-dialog {
	position: relative;
	width: min(420px, 92vw);
	margin: 15vh auto;
	padding: 22px;
	background: #fff;
	border-radius: var(--wypb-radius);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	z-index: 1;
}

.wypb-replace-guard__text {
	margin: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #334155;
}

.wypb-replace-guard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* Mobile action bar */
.wypb-mobile-action-bar {
	display: none;
}

.wypb-mobile-primary-wrap {
	display: none;
}

.wypb-bottom-sheet[hidden] {
	display: none !important;
}

.wypb-bottom-sheet {
	position: absolute;
	inset: 0;
	z-index: 50;
	pointer-events: none;
}

.wypb-bottom-sheet.is-open {
	pointer-events: auto;
}

.wypb-bottom-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	opacity: 0;
	transition: opacity 0.2s;
}

.wypb-bottom-sheet.is-open .wypb-bottom-sheet__backdrop {
	opacity: 1;
}

.wypb-bottom-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 72vh;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(100%);
	transition: transform 0.25s ease;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	overflow-y: auto;
	pointer-events: auto;
}

.wypb-bottom-sheet.is-open .wypb-bottom-sheet__panel {
	transform: translateY(0);
}

.wypb-bottom-sheet__close {
	position: absolute;
	right: 12px;
	top: 10px;
	width: 44px;
	height: 44px;
	border: 0;
	background: #f1f5f9;
	border-radius: 10px;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.wypb-bottom-sheet__content .wypb-btn {
	width: 100%;
	margin-bottom: 8px;
}

/* Confirm modal */
.wypb-confirm-modal[hidden] {
	display: none !important;
}

.wypb-confirm-modal {
	position: fixed;
	inset: 0;
	z-index: 500100;
	isolation: isolate;
}

.wypb-confirm-dialog {
	position: relative;
	width: min(540px, 94vw);
	max-height: min(92vh, calc(100dvh - 48px));
	overflow: auto;
	margin: 4vh auto;
	background: #fff;
	border-radius: var(--wypb-radius);
	padding: 20px;
	padding-bottom: calc(20px + env(safe-area-inset-bottom));
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.wypb-confirm-warn-intro {
	font-size: 0.88rem;
	font-weight: 700;
	color: #b45309;
	margin: 0 0 10px;
}

.wypb-confirm-side-status {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: 0.85rem;
	color: #334155;
}

.wypb-confirm-actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	margin-top: 16px;
}

.wypb-confirm-actions .wypb-btn {
	width: 100%;
	min-height: 48px;
}

.wypb-confirm-step2__title {
	margin: 0 0 10px;
	font-size: 1.1rem;
}

.wypb-confirm-final-copy {
	margin: 0 0 16px;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #334155;
}

.wypb-confirm-close {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 44px;
	height: 44px;
	border: 0;
	background: #f1f5f9;
	border-radius: 10px;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.wypb-confirm-lead {
	font-size: 0.9rem;
	color: var(--wypb-muted);
	margin: 0 0 10px;
}

.wypb-confirm-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 10px 0;
}

.wypb-confirm-thumb {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px;
	background: #fafafa;
}

.wypb-confirm-thumb canvas {
	width: 100%;
	height: auto;
	display: block;
}

body.wypb-modal-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.wypb-confirm-dialog {
		width: 100%;
		max-width: none;
		max-height: 92dvh;
		margin: 0;
		border-radius: 16px 16px 0 0;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		padding-bottom: calc(20px + env(safe-area-inset-bottom));
	}

	.wypb-confirm-actions {
		position: sticky;
		bottom: 0;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 12px);
		padding-top: 12px;
		margin-bottom: calc(-4px - env(safe-area-inset-bottom));
	}

	.wypb-confirm-actions__primary {
		width: 100%;
		min-height: 48px;
	}
}

/* Print Commerce bridge */
.wypc-st-proof-builder-slot .wypb-uploader {
	margin: 8px 0 0;
}

.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-flow-intro,
.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-dropzone,
.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-side-thumb-wrap,
.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-note:not([data-wypb-global-status]),
.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-disclaimer,
.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-step-tracker,
.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-version-notice {
	display: none;
}

.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-side-cards,
.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-grid {
	grid-template-columns: 1fr;
}

.wypb-uploader[data-wypc-proof-bridge="1"] .wypb-side-card {
	background: #fff;
}

/* Mobile layout — phones only; avoids iPad/narrow-desktop losing the checklist column at 768px */
@media (max-width: 639px) {
	.wypb-modal-dialog {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		margin: 0;
		border-radius: 0;
		max-height: none;
	}

	.wypb-modal-header {
		position: sticky;
		top: 0;
		z-index: 10;
	}

	.wypb-proof-tabs {
		position: sticky;
		top: 0;
		z-index: 9;
		background: #fff;
		padding-bottom: 4px;
	}

	.wypb-modal-body {
		overflow: hidden;
		padding-bottom: calc(120px + env(safe-area-inset-bottom));
	}

	.wypb-proof-workspace {
		grid-template-columns: 1fr;
		height: auto;
	}

	.wypb-proof-canvas-area {
		padding: 10px 12px 12px;
		padding-bottom: calc(88px + env(safe-area-inset-bottom));
	}

	.wypb-proof-side-panel {
		display: none;
	}

	.wypb-proof-toolbar {
		display: none;
	}

	.wypb-modal-artboard {
		max-height: none;
		min-height: 0;
	}

	.wypb-mobile-action-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: calc(56px + env(safe-area-inset-bottom));
		z-index: 15;
		background: #fff;
		border-top: 1px solid #e2e8f0;
		padding: 8px 10px;
		gap: 8px;
		justify-content: space-between;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
	}

	.wypb-mobile-bar__btn {
		flex: 1;
		min-height: 48px;
		border: 2px solid #e2e8f0;
		border-radius: 10px;
		background: #f8fafc;
		font-weight: 700;
		font-size: 0.85rem;
		cursor: pointer;
	}

	.wypb-mobile-bar__btn.is-active {
		border-color: #2563eb;
		background: #eff6ff;
		color: #1e40af;
	}

	.wypb-mobile-primary-wrap {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 16;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #e2e8f0;
	}

	.wypb-mobile-primary-cta {
		width: 100%;
		min-height: 48px;
	}

	.wypb-bottom-sheet {
		position: fixed;
	}

	.wypb-flow-intro {
		flex-direction: column;
	}

	.wypb-step-tracker__item {
		font-size: 0.7rem;
	}
}

@media (max-width: 480px) {
	.wypb-side-card__actions .wypb-btn {
		min-width: 100%;
	}
}

/* -------------------------------------------------------------------------
   Logged-out gate, artwork option messages, login-required modal, overflow
   ------------------------------------------------------------------------- */

.wypb-uploader {
	max-width: 100%;
	min-width: 0;
	overflow-x: hidden;
}

.wypb-login-gate {
	max-width: 100%;
	padding: 18px;
	margin-bottom: 16px;
	border: 1px solid var(--wypb-blue-border);
	border-radius: var(--wypb-radius);
	background: var(--wypb-blue-bg);
	overflow-wrap: anywhere;
	word-break: normal;
	text-align: center;
}

.wypb-login-gate__icon {
	font-size: 1.75rem;
	line-height: 1;
	margin-bottom: 8px;
}

.wypb-login-gate__title {
	margin: 0 0 10px;
	font-size: 1.1rem;
	color: var(--wypb-blue-text);
}

.wypb-login-gate__body {
	margin: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #334155;
	text-align: left;
}

.wypb-login-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	margin-bottom: 12px;
}

.wypb-login-gate__actions .wypb-btn {
	width: 100%;
	min-height: 48px;
	justify-content: center;
	text-decoration: none;
}

.wypb-login-gate__helper {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wypb-muted);
	text-align: left;
}

.wypb-artwork-option-msg.wypb-notice {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: var(--wypb-radius);
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #334155;
	max-width: 100%;
	width: 100%;
	overflow-wrap: anywhere;
	white-space: normal;
}

.wypb-login-required-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.wypb-login-required-modal[hidden] {
	display: none !important;
}

.wypb-login-required-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 420px;
	max-height: min(90vh, 640px);
	overflow: auto;
	padding: 22px 20px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

.wypb-login-required-title {
	margin: 0 0 10px;
	font-size: 1.1rem;
}

.wypb-login-required-body {
	margin: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #334155;
}

.wypb-login-required-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.wypb-login-required-actions .wypb-btn {
	width: 100%;
	min-height: 48px;
	justify-content: center;
	text-decoration: none;
}

.wypb-login-required-hint {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--wypb-muted);
}

.wypb-login-required-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	padding: 4px 8px;
}

body.wypb-login-required-open {
	overflow: hidden;
}

.wypb-side-card,
.wypb-login-gate,
.wypb-notice,
.wypb-upload-error {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: normal;
}

.wypb-status {
	max-width: 100%;
	white-space: normal;
	line-height: 1.25;
}

.wypb-modal-dialog {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.wypb-notice,
.wypb-alert,
.wypb-upload-error {
	width: 100%;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (max-width: 639px) {
	.wypb-side-card {
		display: flex;
		flex-direction: column;
		gap: 12px;
		min-width: 0;
	}

	.wypb-side-card__head {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.wypb-side-card__actions {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.wypb-side-card__actions .wypb-btn,
	.wypb-side-card__actions button,
	.wypb-side-card__actions a {
		width: 100%;
		min-height: 48px;
	}
}

/* My Account — artwork workflow */
.wypb-myaccount-dashboard-wrap {
	margin-bottom: 24px;
}

/* Checkout — order received: same palette as My Account banners */
.wypb-thankyou-artwork {
	box-sizing: border-box;
	margin: 1.75rem 0 2rem;
	width: 100%;
	max-width: 720px;
}

.woocommerce-order .wypb-thankyou-artwork {
	clear: both;
}

/* Do not use .woocommerce-message here — it forces “success” green in many themes */
.wypb-artwork-card {
	box-sizing: border-box;
	position: relative;
	max-width: 720px;
	margin: 0 0 24px;
	padding: 0;
	border-radius: 12px;
	border: 2px solid #ea580c;
	border-left: 6px solid #c2410c;
	background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 55%, #fffbeb 100%);
	box-shadow: 0 4px 20px rgba(194, 65, 12, 0.2);
	overflow: hidden;
}

.wypb-artwork-card--pending {
	animation: wypb-artwork-pulse 2.8s ease-in-out infinite;
}

/* Thank you: match orders-banner gradient + shadow (no pulse on checkout) */
.wypb-artwork-card--thankyou {
	max-width: 100%;
	border-left-width: 2px;
	border-left-color: #ea580c;
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fffbeb 100%);
	box-shadow: 0 6px 22px rgba(194, 65, 12, 0.18);
}

.wypb-artwork-card--thankyou.wypb-artwork-card--pending {
	animation: none;
}

@keyframes wypb-artwork-pulse {
	0%,
	100% {
		box-shadow: 0 4px 20px rgba(194, 65, 12, 0.2);
	}
	50% {
		box-shadow: 0 6px 28px rgba(194, 65, 12, 0.32), 0 0 0 2px rgba(251, 146, 60, 0.35);
	}
}

.wypb-artwork-card__ribbon {
	background: linear-gradient(90deg, #991b1b, #dc2626 45%, #b91c1c);
	color: #fff;
	text-align: center;
	padding: 8px 14px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.wypb-artwork-card__inner {
	padding: 18px 22px 22px;
}

.wypb-artwork-card__masthead {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 12px;
}

.wypb-artwork-card__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(254, 243, 199, 0.9);
	color: #c2410c;
	border: 1px solid #fdba74;
}

.wypb-artwork-card__top {
	flex: 1;
	min-width: 0;
	margin-bottom: 0;
}

.wypb-artwork-card__kicker {
	margin: 0 0 6px;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #9a3412;
}

.wypb-artwork-card__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #78350f;
}

.wypb-artwork-card__body {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #92400e;
}

.wypb-artwork-card__facts {
	list-style: none;
	margin: 0 0 14px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid #fde68a;
	border-radius: 10px;
	display: grid;
	gap: 10px;
}

.wypb-artwork-card__facts li {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(0, 110px) 1fr;
	gap: 8px 12px;
	align-items: start;
	font-size: 0.9rem;
}

.wypb-artwork-card__facts li:last-child {
	grid-template-columns: 1fr;
}

.wypb-artwork-card__fact-label {
	font-weight: 600;
	color: #78350f;
}

.wypb-artwork-card__fact-val {
	color: #451a03;
	word-break: break-word;
}

.wypb-artwork-card__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fef3c7;
	border: 1px solid #f59e0b;
	font-size: 0.8rem;
	font-weight: 600;
	color: #92400e;
}

.wypb-artwork-card__muted {
	font-size: 0.88rem;
	color: #78716c;
	margin: 0 0 16px;
	line-height: 1.45;
}

.wypb-artwork-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.wypb-artwork-card__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 10px;
	border: none;
	background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
	box-shadow: 0 2px 0 #9a3412, 0 6px 16px rgba(194, 65, 12, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.wypb-artwork-card__cta-label {
	display: block;
}

.wypb-artwork-card__cta-sub {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	opacity: 0.92;
	line-height: 1.3;
}

.wypb-artwork-card__cta:hover,
.wypb-artwork-card__cta:focus {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 3px 0 #9a3412, 0 10px 22px rgba(194, 65, 12, 0.4);
	color: #fff !important;
}

.wypb-artwork-card__cta:focus-visible {
	outline: 3px solid #fdba74;
	outline-offset: 2px;
}

.wypb-artwork-card__secondary {
	font-size: 0.88rem;
	color: #78716c;
	margin: 0;
	text-align: center;
}

.wypb-artwork-card__warn {
	margin: 0;
	font-size: 0.9rem;
	color: #b45309;
}

/* Order artwork detail page — same visual language as dashboard pending cards */
.wypb-artwork-card--order-detail {
	max-width: 100%;
}

.wypb-artwork-card__title--order-detail {
	font-size: 1.35rem;
}

.wypb-artwork-card__facts--order-detail .wypb-artwork-card__facts-progress-row {
	grid-template-columns: minmax(0, 110px) 1fr;
}

.wypb-artwork-card__fact-val--stack {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.wypb-artwork-detail-progress-text {
	font-weight: 600;
	color: #451a03;
}

.wypb-artwork-card__badge--block {
	display: inline-block;
}

.wypb-artwork-card__badge--with-icon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wypb-artwork-card__badge-icon {
	display: flex;
	flex-shrink: 0;
	color: #c2410c;
}

.wypb-artwork-card__hint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.45;
	color: #57534e;
	background: rgba(255, 255, 255, 0.65);
	border: 1px dashed #fdba74;
	border-radius: 10px;
	padding: 12px 14px;
}

.wypb-artwork-card__hint--order-detail {
	margin-bottom: 0;
}

.wypb-artwork-card__hint-icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: #ea580c;
	display: flex;
}

.wypb-artwork-card__facts-progress-row {
	grid-template-columns: minmax(0, 110px) 1fr;
}

.wypb-artwork-progress-track {
	display: block;
	height: 10px;
	border-radius: 999px;
	background: rgba(254, 243, 199, 0.85);
	border: 1px solid #fde68a;
	overflow: hidden;
	box-sizing: border-box;
}

.wypb-artwork-progress-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #f59e0b, #ea580c);
	transition: width 0.35s ease;
}

.wypb-artwork-card__muted--order-detail {
	margin-bottom: 0;
}

.wypb-myaccount-hero--compact {
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 20px;
	border: 2px solid #6ee7b7;
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.wypb-myaccount-line-card--detail {
	position: relative;
	border: 2px solid #ea580c;
	border-left: 6px solid #c2410c;
	border-radius: 12px;
	background: linear-gradient(165deg, #fffdfb 0%, #fff7ed 40%, #fffbeb 100%);
	box-shadow: 0 4px 18px rgba(194, 65, 12, 0.14);
	padding: 18px 20px 20px;
	margin-bottom: 28px;
	overflow: hidden;
}

.wypb-myaccount-line-card--detail .wypb-myaccount-uploader-intro {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #fdba74;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.wypb-myaccount-line-card--detail .wypb-uploader--order-item {
	background: rgba(255, 255, 255, 0.65);
	border-radius: 10px;
	padding: 14px;
	border: 1px solid #fed7aa;
}

/* Orders page + list: wide banner */
.wypb-artwork-banner {
	box-sizing: border-box;
	margin: 0 0 24px;
	padding: 0;
	border-radius: 12px;
	border: 2px solid #ea580c;
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fffbeb 100%);
	box-shadow: 0 6px 22px rgba(194, 65, 12, 0.18);
}

.wypb-artwork-banner__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px 22px;
}

@media (min-width: 600px) {
	.wypb-artwork-banner__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}
}

.wypb-artwork-banner__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 700;
	color: #78350f;
}

.wypb-artwork-banner__lead {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #92400e;
	max-width: 42em;
}

.wypb-artwork-banner__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	min-width: min(100%, 280px);
}

.wypb-artwork-banner__btn {
	display: block;
	box-sizing: border-box;
	padding: 12px 18px;
	text-align: center;
	font-weight: 700;
	font-size: 0.98rem;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 10px;
	background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
	box-shadow: 0 2px 0 #9a3412;
}

.wypb-artwork-banner__btn:hover {
	filter: brightness(1.06);
	color: #fff !important;
}

.wypb-artwork-banner__btn--secondary {
	background: transparent !important;
	color: #c2410c !important;
	border: 2px solid #ea580c;
	box-shadow: none;
}

.wypb-artwork-banner__btn--secondary:hover {
	filter: none;
	background: rgba(234, 88, 12, 0.1) !important;
	color: #9a3412 !important;
}

.wypb-artwork-banner__status {
	margin: 12px 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #78350f;
}

.wypb-artwork-banner__status strong {
	color: #92400e;
}

.wypb-artwork-banner__actions--stack {
	flex-direction: column;
	align-items: stretch;
	align-self: stretch;
}

@media (min-width: 600px) {
	.wypb-artwork-banner__inner:has(.wypb-artwork-banner__actions--stack) {
		align-items: flex-start;
	}
}

.wypb-artwork-banner--view-order {
	margin-bottom: 20px;
}

/* My Account: full width of theme content column (undo narrow caps from inline/plugin rules). */
body.woocommerce-account .woocommerce-MyAccount-wrapper {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	max-width: 100%;
	box-sizing: border-box;
}

/* Shoptimizer-style nav icons for custom endpoints (default is solid square mask). */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--order-artwork a:before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--designs a:before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 20h4l10.5-10.5a2.121 2.121 0 0 0-3-3L5 17v3zM13.5 6.5l4 4' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 20h4l10.5-10.5a2.121 2.121 0 0 0-3-3L5 17v3zM13.5 6.5l4 4' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wypb-order-artwork-cta {
	white-space: nowrap;
}

.wypb-order-artwork-hint {
	margin-top: 4px;
	line-height: 1.3;
}

.wypb-order-artwork-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 600;
}

.wypb-order-artwork-pill--ok {
	background: #d1fae5;
	color: #065f46;
}

.wypb-order-artwork-pill--info {
	background: #e0f2fe;
	color: #075985;
}

.wypb-myaccount-hero {
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	border: 1px solid #e2e8f0;
}

.wypb-myaccount-hero--warn {
	background: #fffbeb;
	border-color: #fcd34d;
}

.wypb-myaccount-hero--ok {
	background: #ecfdf5;
	border-color: #6ee7b7;
}

.wypb-myaccount-hero__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.wypb-myaccount-timeline {
	box-sizing: border-box;
	border-radius: 14px;
	padding: 22px 22px 20px;
	margin-bottom: 28px;
	background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 45%, #fff 100%);
	border: 1px solid #cbd5e1;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.wypb-myaccount-timeline--pending {
	border-color: #fdba74;
	background: linear-gradient(155deg, #fffbeb 0%, #fff7ed 38%, #f8fafc 100%);
	box-shadow: 0 6px 22px rgba(194, 65, 12, 0.1);
}

.wypb-myaccount-timeline--complete {
	border-color: #6ee7b7;
	background: linear-gradient(145deg, #ecfdf5 0%, #f0fdf4 50%, #f8fafc 100%);
	box-shadow: 0 4px 18px rgba(5, 150, 105, 0.08);
}

.wypb-myaccount-timeline__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.wypb-myaccount-timeline__head-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #e2e8f0;
	color: #0f172a;
}

.wypb-myaccount-timeline--pending .wypb-myaccount-timeline__head-icon {
	color: #c2410c;
	border-color: #fdba74;
	background: rgba(255, 247, 237, 0.95);
}

.wypb-myaccount-timeline--complete .wypb-myaccount-timeline__head-icon {
	color: #047857;
	border-color: #6ee7b7;
	background: rgba(236, 253, 245, 0.95);
}

.wypb-myaccount-timeline__head-text {
	min-width: 0;
	flex: 1;
}

.wypb-myaccount-timeline__title {
	margin: 0 0 6px;
	font-size: 1.28rem;
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
}

.wypb-myaccount-timeline__tagline {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #64748b;
}

.wypb-myaccount-timeline__steps {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 720px) {
	.wypb-myaccount-timeline__steps {
		grid-template-columns: 1fr;
	}
}

.wypb-myaccount-timeline__step {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	padding: 12px 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wypb-myaccount-timeline--pending .wypb-myaccount-timeline__step {
	background: rgba(255, 255, 255, 0.88);
}

.wypb-myaccount-timeline__step.is-current {
	border-color: #fb923c;
	box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.35), 0 4px 14px rgba(194, 65, 12, 0.12);
}

.wypb-myaccount-timeline__step.is-done {
	border-color: #86efac;
	opacity: 0.92;
}

.wypb-myaccount-timeline__step-marker {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.wypb-myaccount-timeline__step.is-current .wypb-myaccount-timeline__step-marker {
	background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%);
	color: #c2410c;
	border-color: #fdba74;
}

.wypb-myaccount-timeline__step.is-done .wypb-myaccount-timeline__step-marker {
	background: #dcfce7;
	color: #15803d;
	border-color: #86efac;
}

.wypb-myaccount-timeline__step-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wypb-myaccount-timeline__step-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
}

.wypb-myaccount-timeline__step-desc {
	font-size: 0.8rem;
	line-height: 1.45;
	color: #64748b;
}

.wypb-myaccount-timeline__body {
	margin: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #334155;
	max-width: 52em;
}

.wypb-myaccount-timeline__dates {
	margin: 8px 0 0;
	font-size: 1.05rem;
	color: #0f172a;
}

.wypb-myaccount-est-spotlight {
	margin: 4px 0 14px;
	padding: 16px 18px;
	border-radius: 12px;
	background: linear-gradient(125deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #cbd5e1;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.wypb-myaccount-est-spotlight__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #475569;
}

.wypb-myaccount-est-spotlight__eyebrow-icon {
	display: flex;
	color: #2563eb;
}

.wypb-myaccount-est-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.wypb-myaccount-est-grid--single {
	grid-template-columns: minmax(0, 360px);
}

.wypb-myaccount-timeline__muted--footnote {
	margin-top: 10px;
	font-size: 0.82rem;
	color: #64748b;
	line-height: 1.45;
}

.wypb-myaccount-est-grid li {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 0.88rem;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wypb-myaccount-est-grid__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 6px;
}

.wypb-myaccount-est-grid__val {
	display: block;
	font-size: 1.2rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.wypb-myaccount-line-card__main {
	min-width: 0;
	flex: 1;
}

.wypb-myaccount-line-card__chips {
	list-style: none;
	margin: 10px 0 14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wypb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #e2e8f0;
	color: #334155;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wypb-chip__icon {
	display: flex;
	flex-shrink: 0;
	opacity: 0.85;
}

.wypb-chip--qty {
	background: #f8fafc;
}

.wypb-chip--method {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

.wypb-chip--method .wypb-chip__icon {
	color: #2563eb;
}

.wypb-chip--status.wypb-chip--warn {
	background: #fffbeb;
	border-color: #fcd34d;
	color: #92400e;
}

.wypb-chip--status.wypb-chip--warn .wypb-chip__icon {
	color: #d97706;
}

.wypb-chip--status.wypb-chip--info {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1e3a8a;
}

.wypb-chip--status.wypb-chip--info .wypb-chip__icon {
	color: #2563eb;
}

.wypb-chip--status.wypb-chip--ok {
	background: #ecfdf5;
	border-color: #6ee7b7;
	color: #065f46;
}

.wypb-chip--status.wypb-chip--ok .wypb-chip__icon {
	color: #059669;
}

.wypb-chip--status.wypb-chip--neutral {
	background: #f1f5f9;
	color: #475569;
}

.wypb-myaccount-line-card__progress-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 420px;
}

.wypb-myaccount-line-card__progress-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #451a03;
}

.wypb-artwork-progress-track--line-card {
	height: 8px;
}

.wypb-myaccount-line-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 24px;
}

.wypb-myaccount-line-card__head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 12px;
}

.wypb-uploader--order-item {
	margin-top: 12px;
}

/* Apparel MVP (WYPC): file drop only, no placement modal */
.wypb-uploader--apparel-mvp .wypb-flow-intro--apparel-mvp {
	margin-bottom: 16px;
	padding: 14px 16px;
	border-radius: var(--wypb-radius);
	background: var(--wypb-blue-bg);
	border: 1px solid var(--wypb-blue-border);
	color: var(--wypb-blue-text);
}

.wypb-uploader--apparel-mvp .wypb-flow-intro--apparel-mvp .wypb-flow-intro__headline {
	display: block;
	margin-bottom: 8px;
	font-size: 1.05rem;
}

.wypb-uploader--apparel-mvp .wypb-flow-intro--apparel-mvp .wypb-flow-intro__sub {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #334155;
}

.wypb-apparel-mvp-approve {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

.wypb-apparel-mvp-approve__inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 520px;
}

.wypb-apparel-mvp-approve__label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #334155;
	cursor: pointer;
}

.wypb-apparel-mvp-approve__label input {
	margin-top: 3px;
	flex-shrink: 0;
}

.wypb-disclaimer--apparel {
	font-size: 0.82rem;
	color: var(--wypb-muted);
	line-height: 1.45;
}

/* Keep location title readable (avoid single-column “vertical” lettering beside badges). */
.wypb-uploader--apparel-mvp .wypb-side-card__head {
	flex-wrap: wrap;
	align-items: flex-start;
	row-gap: 8px;
}

.wypb-uploader--apparel-mvp .wypb-side-card__title {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.wypb-uploader--apparel-mvp .wypb-side-card__head .wypb-status {
	flex: 0 1 auto;
	max-width: 100%;
	white-space: normal;
}

/* Clear disabled state (theme overrides sometimes fight opacity-only styles). */
.wypb-uploader--apparel-mvp .wypb-apparel-mvp-approve__btn:disabled,
.wypb-uploader--apparel-mvp .wypb-apparel-mvp-approve__btn.is-cta-blocked:disabled {
	background: #94a3b8 !important;
	border-color: #64748b !important;
	color: #fff !important;
	opacity: 1;
	cursor: not-allowed;
	box-shadow: none;
}

.wypb-uploader--apparel-mvp .wypb-apparel-mvp-approve__btn:not(:disabled):not(.is-cta-blocked) {
	opacity: 1;
}

/* Order artwork detail: urgent strip + uploader intro */
.wypb-myaccount-alert {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	margin: 0 0 20px;
	border-radius: 12px;
	border: 2px solid #dc2626;
	background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
	box-shadow: 0 4px 18px rgba(220, 38, 38, 0.12);
}

.wypb-myaccount-alert--urgent .wypb-myaccount-alert__icon {
	flex-shrink: 0;
	color: #b91c1c;
}

.wypb-myaccount-alert__label {
	display: block;
	font-size: 0.95rem;
	color: #7f1d1d;
	margin-bottom: 6px;
}

.wypb-myaccount-alert__msg {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #991b1b;
}

.wypb-post-approval-banner {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: var(--wypb-radius);
	font-size: 0.9rem;
	line-height: 1.45;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #334155;
}

.wypb-post-approval-banner--open {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1e3a8a;
}

.wypb-post-approval-banner--closed {
	border-color: #fcd34d;
	background: #fffbeb;
	color: #78350f;
}

.wypb-myaccount-revision-window {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #93c5fd;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 0.9rem;
	line-height: 1.45;
}

.wypb-myaccount-revision-window__text {
	margin: 0;
}

.wypb-myaccount-uploader-intro {
	margin: 0 0 14px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #eff6ff;
	border: 1px solid #93c5fd;
}

.wypb-myaccount-uploader-intro__title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 700;
	color: #1e3a8a;
}

.wypb-myaccount-uploader-intro__hint {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #1e40af;
}

.wypb-myaccount-line-card__info--ok {
	padding: 12px 14px;
	border-radius: 8px;
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #065f46;
	font-size: 0.92rem;
}
