/**
 * Backorders payload: shortcode mount + after buyer + ?proof=scan OTP redirect.
 */
.cpm-hb-backorders-root {
	margin: 0 0 1.5rem;
}

.cpm-hb-backorders-panel {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	border: 1px solid rgba( 15, 23, 42, 0.12 );
	background: rgba( 248, 250, 252, 0.95 );
}

.cpm-hb-backorders-title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.cpm-hb-backorders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.cpm-hb-backorders-table th,
.cpm-hb-backorders-table td {
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba( 15, 23, 42, 0.1 );
	text-align: left;
	vertical-align: top;
}

.cpm-hb-backorders-table thead th {
	background: rgba( 15, 23, 42, 0.06 );
	font-weight: 600;
}

.cpm-hb-backorders-col-select {
	width: 2.25rem;
	text-align: center;
	vertical-align: middle;
}

.cpm-hb-backorders-col-select input[type='checkbox'] {
	margin: 0;
	vertical-align: middle;
	cursor: pointer;
}

.cpm-hb-backorders-json {
	margin: 0;
	overflow: auto;
	max-height: 60vh;
	font-size: 0.8rem;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
}

.cpm-hb-backorders-empty {
	margin: 0;
	color: #64748b;
}

.cpm-hb-backorders-actions {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba( 15, 23, 42, 0.1 );
}

.cpm-hb-backorders-actions-hint {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	color: #64748b;
}

.cpm-hb-backorders-inline-feedback {
	margin: 0 0 0.65rem;
	font-size: 0.875rem;
}

.cpm-hb-backorders-continue {
	padding: 0.5rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	background: #0f172a;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.cpm-hb-backorders-continue:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.cpm-hb-backorders-continue:not( :disabled ):hover {
	background: #1e293b;
}

body.cpm-hb-backorders-modal-open {
	overflow: hidden;
}

.cpm-hb-backorders-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.cpm-hb-backorders-modal--hidden {
	display: none;
}

.cpm-hb-backorders-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 15, 23, 42, 0.45 );
}

.cpm-hb-backorders-modal-shell {
	position: relative;
	width: 100%;
	max-width: 28rem;
	padding: 1.25rem 1.25rem 1rem;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 20px 40px rgba( 15, 23, 42, 0.12 );
}

.cpm-hb-backorders-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.cpm-hb-backorders-modal-title {
	margin: 0 1.5rem 0.5rem 0;
	font-size: 1.15rem;
	font-weight: 700;
}

.cpm-hb-backorders-modal-text {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.45;
}

.cpm-hb-backorders-modal-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.65rem;
	font-size: 1rem;
	border: 1px solid rgba( 15, 23, 42, 0.2 );
	border-radius: 8px;
}

.cpm-hb-backorders-modal-feedback {
	margin: 0.65rem 0 0;
	min-height: 1.25rem;
	font-size: 0.875rem;
}

.cpm-hb-backorders-modal-feedback--error {
	color: #b91c1c;
}

.cpm-hb-backorders-modal-feedback--ok {
	color: #15803d;
}

.cpm-hb-backorders-modal-buttons {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	margin-top: 1rem;
}

.cpm-hb-backorders-modal-btn {
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
	border-radius: 8px;
	cursor: pointer;
	border: 1px solid transparent;
}

.cpm-hb-backorders-modal-btn--secondary {
	background: #fff;
	border-color: rgba( 15, 23, 42, 0.2 );
	color: #334155;
}

.cpm-hb-backorders-modal-btn--primary {
	background: #0f172a;
	color: #fff;
	border-color: #0f172a;
}
