.pspb-pack-components,
.pspb-pack-components * {
	box-sizing: border-box;
}

.pspb-pack-components {
	width: 100%;
	margin: 1.5rem 0;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	direction: rtl;
	text-align: right;
	clear: both;
}

.pspb-pack-components__header {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.85rem;
}

.pspb-pack-components__title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.8;
}

.pspb-pack-components__message {
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1px solid #f0d99a;
	border-radius: 12px;
	background: #fff9e6;
	color: #6b4d00;
	font-size: 0.95rem;
	line-height: 2;
}

.pspb-pack-components__summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.pspb-pack-components__summary-item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.55rem;
	align-items: center;
	min-width: 0;
	padding: 0.75rem 0.85rem;
	border: 1px solid #eef0f2;
	border-radius: 12px;
	background: #fafafa;
	line-height: 1.8;
}

.pspb-pack-components__summary-label {
	color: #555;
	font-size: 0.92rem;
}

.pspb-pack-components__summary-value {
	font-weight: 700;
}

.pspb-pack-components__summary-item--price .pspb-pack-components__summary-value {
	font-size: 1.05rem;
}

.pspb-pack-components__table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	-webkit-overflow-scrolling: touch;
}

.pspb-pack-components__table {
	width: 100%;
	min-width: 720px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: #fff;
	direction: rtl;
	text-align: right;
}

.pspb-pack-components__table th,
.pspb-pack-components__table td {
	padding: 0.75rem;
	border: 0;
	border-bottom: 1px solid #eef0f2;
	vertical-align: middle;
	font-size: 0.92rem;
	line-height: 1.9;
}

.pspb-pack-components__table thead th {
	background: #f8f9fb;
	color: #333;
	font-weight: 700;
	white-space: nowrap;
}

.pspb-pack-components__table tbody tr:last-child td {
	border-bottom: 0;
}

.pspb-pack-components__cell--index {
	width: 4.25rem;
	text-align: center;
	white-space: nowrap;
}

.pspb-pack-components__cell--thumbnail {
	width: 4.75rem;
	text-align: center;
}

.pspb-pack-components__thumb {
	display: inline-block;
	width: 48px;
	height: 48px;
	max-width: 48px;
	max-height: 48px;
	object-fit: cover;
	border: 1px solid #eef0f2;
	border-radius: 10px;
	background: #fff;
}

.pspb-pack-components__cell--name {
	min-width: 220px;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-pack-components__product-name {
	display: block;
	font-weight: 600;
	line-height: 1.8;
}

.pspb-pack-components__sku {
	display: block;
	margin-top: 0.2rem;
	color: #666;
	font-size: 0.82rem;
	line-height: 1.7;
}

.pspb-pack-components__cell--price {
	white-space: nowrap;
}

.pspb-pack-components__note {
	margin: 0.85rem 0 0;
	color: #666;
	font-size: 0.86rem;
	line-height: 1.9;
}

@media (max-width: 768px) {
	.pspb-pack-components {
		padding: 0.85rem;
		border-radius: 12px;
	}

	.pspb-pack-components__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.pspb-pack-components__summary {
		grid-template-columns: 1fr;
	}

	.pspb-pack-components__table-wrap {
		overflow: visible;
		border: 0;
	}

	.pspb-pack-components__table {
		min-width: 0;
		border: 0;
	}

	.pspb-pack-components__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}

	.pspb-pack-components__table,
	.pspb-pack-components__table tbody,
	.pspb-pack-components__table tr,
	.pspb-pack-components__table td {
		display: block;
		width: 100%;
	}

	.pspb-pack-components__table tbody tr {
		margin-bottom: 0.85rem;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #fff;
		overflow: hidden;
	}

	.pspb-pack-components__table tbody tr:last-child {
		margin-bottom: 0;
	}

	.pspb-pack-components__table td {
		display: flex;
		gap: 0.75rem;
		align-items: flex-start;
		justify-content: space-between;
		padding: 0.65rem 0.75rem;
		border-bottom: 1px solid #eef0f2;
		text-align: left;
		white-space: normal;
	}

	.pspb-pack-components__table td::before {
		content: attr(data-label);
		flex: 0 0 7.25rem;
		color: #555;
		font-weight: 700;
		text-align: right;
	}

	.pspb-pack-components__table td:last-child {
		border-bottom: 0;
	}

	.pspb-pack-components__cell--index,
	.pspb-pack-components__cell--thumbnail {
		text-align: left;
	}

	.pspb-pack-components__cell--name {
		min-width: 0;
	}
}


/* S11 display polish */
.pspb-pack-components {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.pspb-pack-components__summary-item--price {
	border-color: #c7e7d0;
	background: #f3fbf4;
}

.pspb-pack-components__summary-value .woocommerce-Price-amount,
.pspb-pack-components__cell--price .woocommerce-Price-amount {
	direction: ltr;
	unicode-bidi: plaintext;
}

.pspb-pack-components__product-name {
	color: #1d2327;
}

.pspb-pack-components__table tbody tr:hover {
	background: #fbfcfd;
}

/* S12 safe public summary and staff-only internal guide. */
.pspb-pack-summary,
.pspb-internal-guide-placeholder,
.pspb-internal-guide-placeholder *,
.pspb-internal-guide,
.pspb-internal-guide * {
	box-sizing: border-box;
}

.pspb-pack-summary {
	display: flex;
	gap: 0.55rem;
	align-items: center;
	margin: 1rem 0;
	padding: 0.8rem 1rem;
	border: 1px solid #e6edf3;
	border-radius: 12px;
	background: #fbfcfd;
	color: #263238;
	direction: rtl;
	text-align: right;
	font-size: 0.95rem;
	line-height: 1.9;
}

.pspb-pack-summary__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 999px;
	background: #eef7f0;
	font-weight: 700;
	line-height: 1;
	flex: 0 0 auto;
}

.pspb-internal-guide-placeholder {
	clear: both;
	margin: 1.25rem 0;
	direction: rtl;
	text-align: right;
}

.pspb-internal-guide-placeholder__loading,
.pspb-internal-guide--error {
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	line-height: 2;
}

.pspb-internal-guide {
	width: 100%;
	max-width: 100%;
	margin: 1.25rem 0;
	border: 1px solid #dfe6ee;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	direction: rtl;
	text-align: right;
	color: #17212b;
}

.pspb-internal-guide__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem 1.2rem;
	border-bottom: 1px solid #e8eef5;
	background: linear-gradient(135deg, #f7fafc, #eef4f9);
}

.pspb-internal-guide__header h2 {
	margin: 0 0 0.35rem;
	font-size: 1.14rem;
	font-weight: 800;
	line-height: 1.8;
}

.pspb-internal-guide__header p {
	margin: 0;
	color: #52606d;
	font-size: 0.92rem;
	line-height: 1.9;
}

.pspb-internal-guide__header-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: flex-end;
}

.pspb-internal-guide__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.32rem 0.65rem;
	border-radius: 999px;
	background: #17324d;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.pspb-internal-guide__toggle {
	padding: 0.32rem 0.7rem;
	border: 1px solid #c9d6e2;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
}

.pspb-internal-guide__content {
	padding: 1.1rem 1.2rem 1.2rem;
}

.pspb-internal-guide__summary {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.pspb-internal-guide__summary > div {
	min-width: 0;
	padding: 0.8rem;
	border: 1px solid #edf1f5;
	border-radius: 13px;
	background: #fbfcfe;
}

.pspb-internal-guide__summary span {
	display: block;
	margin-bottom: 0.3rem;
	color: #657786;
	font-size: 0.8rem;
	line-height: 1.7;
}

.pspb-internal-guide__summary strong {
	display: block;
	font-size: 0.94rem;
	line-height: 1.8;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-internal-guide__total {
	background: #f8fbf8 !important;
}

.pspb-internal-guide__total strong {
	font-size: 1.06rem;
}

.pspb-internal-guide__warning {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #f0d6a6;
	border-radius: 13px;
	background: #fff9ef;
	color: #6b4300;
	line-height: 1.9;
}

.pspb-internal-guide__warning strong {
	display: block;
	margin-bottom: 0.35rem;
}

.pspb-internal-guide__warning ul,
.pspb-internal-guide__warning-list {
	margin: 0.25rem 1.1rem 0 0;
	padding: 0;
}

.pspb-internal-guide__table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid #e8eef5;
	border-radius: 14px;
	-webkit-overflow-scrolling: touch;
}

.pspb-internal-guide__table {
	width: 100%;
	min-width: 1160px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: #fff;
	direction: rtl;
	text-align: right;
}

.pspb-internal-guide__table th,
.pspb-internal-guide__table td {
	padding: 0.72rem 0.75rem;
	border: 0;
	border-bottom: 1px solid #edf1f5;
	vertical-align: top;
	font-size: 0.88rem;
	line-height: 1.9;
}

.pspb-internal-guide__table thead th {
	background: #f6f8fb;
	color: #314152;
	font-weight: 800;
	white-space: nowrap;
}

.pspb-internal-guide__table tbody tr:last-child td {
	border-bottom: 0;
}

.pspb-internal-guide__table tbody tr.has-warning td {
	background: #fffdf8;
}

.pspb-internal-guide__thumb-cell {
	width: 4.2rem;
	text-align: center;
	vertical-align: middle;
}

.pspb-internal-guide__thumb {
	display: inline-block;
	width: 44px;
	height: 44px;
	max-width: 44px;
	max-height: 44px;
	object-fit: cover;
	border: 1px solid #dfe7ef;
	border-radius: 10px;
	background: #fff;
}

.pspb-internal-guide__thumb-empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px dashed #cbd7e4;
	border-radius: 10px;
	color: #7b8794;
	background: #f8fafc;
}

.pspb-internal-guide__id {
	display: inline-block;
	direction: ltr;
	unicode-bidi: plaintext;
	white-space: nowrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 0.82rem;
}

.pspb-internal-guide__name {
	min-width: 220px;
	font-weight: 700;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-internal-guide__warning-list li {
	margin: 0 0 0.2rem;
}

.pspb-internal-guide__ok {
	display: inline-flex;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: #eef8f0;
	font-size: 0.8rem;
	font-weight: 700;
}

.pspb-internal-guide__edit {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.55rem;
	border: 1px solid #cbd7e4;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}


.pspb-internal-guide__sales-materials {
	margin: 0 0 1rem;
	padding: 1rem;
	border: 1px solid #dce7f1;
	border-radius: 15px;
	background: #fbfdff;
}

.pspb-internal-guide__sales-materials-header {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 0.85rem;
}

.pspb-internal-guide__sales-materials-header h3 {
	margin: 0 0 0.25rem;
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.8;
}

.pspb-internal-guide__sales-materials-header p {
	margin: 0;
	color: #52606d;
	font-size: 0.88rem;
	line-height: 1.9;
}

.pspb-internal-guide__sales-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: #fff3cd;
	color: #6b4d00;
	font-size: 0.78rem;
	font-weight: 800;
	white-space: nowrap;
}

.pspb-internal-guide__sales-notes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.pspb-internal-guide__sales-note-card {
	min-width: 0;
	padding: 0.85rem;
	border: 1px solid #e7edf3;
	border-radius: 13px;
	background: #fff;
}

.pspb-internal-guide__sales-note-card.is-customer-safe {
	border-color: #cae6d2;
	background: #f8fcf9;
}

.pspb-internal-guide__sales-note-card strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.88rem;
	line-height: 1.8;
}

.pspb-internal-guide__sales-note-card p {
	margin: 0;
	color: #334155;
	font-size: 0.88rem;
	line-height: 2;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-internal-guide__sales-files {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}

.pspb-internal-guide__sales-file {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	min-width: 0;
	padding: 0.7rem;
	border: 1px solid #dfe7ef;
	border-radius: 13px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pspb-internal-guide__sales-file:hover,
.pspb-internal-guide__sales-file:focus {
	border-color: #b9ccdc;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	color: inherit;
	text-decoration: none;
	transform: translateY(-1px);
}

.pspb-internal-guide__sales-file-preview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	flex: 0 0 54px;
	overflow: hidden;
}

.pspb-internal-guide__sales-file-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pspb-internal-guide__sales-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.74rem;
	font-weight: 900;
	text-transform: uppercase;
}

.pspb-internal-guide__sales-file-body {
	display: block;
	min-width: 0;
}

.pspb-internal-guide__sales-file-body strong {
	display: block;
	font-size: 0.92rem;
	line-height: 1.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pspb-internal-guide__sales-file-meta {
	display: block;
	color: #64748b;
	font-size: 0.78rem;
	line-height: 1.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 1024px) {
	.pspb-internal-guide__summary,
	.pspb-internal-guide__sales-notes-grid,
	.pspb-internal-guide__sales-files {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.pspb-internal-guide {
		border-radius: 14px;
	}

	.pspb-internal-guide__header {
		flex-direction: column;
		padding: 1rem;
	}

	.pspb-internal-guide__header-actions {
		justify-content: flex-start;
	}

	.pspb-internal-guide__content {
		padding: 1rem;
	}

	.pspb-internal-guide__summary,
	.pspb-internal-guide__sales-notes-grid,
	.pspb-internal-guide__sales-files {
		grid-template-columns: 1fr;
	}

	.pspb-internal-guide__sales-materials-header {
		flex-direction: column;
	}

	.pspb-internal-guide__table {
		min-width: 1080px;
	}

	.pspb-pack-summary {
		align-items: flex-start;
	}
}

/* Stage 05 - hardened AJAX-loaded internal sales guide. */
.pspb-internal-guide,
.pspb-internal-guide-placeholder,
.pspb-print-root,
.pspb-print-root * {
	box-sizing: border-box;
}

.pspb-internal-guide__eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.35rem;
	padding: 0.18rem 0.6rem;
	border: 1px solid #d7e2ee;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: #314152;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.8;
}

.pspb-internal-guide__heading {
	min-width: 0;
}

.pspb-internal-guide__header-actions {
	max-width: 44rem;
}

.pspb-internal-guide__print-button,
.pspb-internal-guide__retry,
.pspb-internal-guide__file-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.05rem;
	padding: 0.35rem 0.8rem;
	border: 1px solid #bfccd9;
	border-radius: 999px;
	background: #fff;
	color: #142235;
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.7;
	text-decoration: none;
	white-space: nowrap;
}

.pspb-internal-guide__print-button:hover,
.pspb-internal-guide__print-button:focus,
.pspb-internal-guide__retry:hover,
.pspb-internal-guide__retry:focus,
.pspb-internal-guide__file-button:hover,
.pspb-internal-guide__file-button:focus {
	border-color: #7f95aa;
	background: #f8fafc;
	color: #142235;
	text-decoration: none;
}

.pspb-internal-guide__print-button.is-customer-safe {
	border-color: #b9ddc5;
	background: #f5fbf7;
}

.pspb-internal-guide__section {
	margin: 0 0 1rem;
	padding: 1rem;
	border: 1px solid #e4ebf2;
	border-radius: 16px;
	background: #fff;
}

.pspb-internal-guide__section:last-child {
	margin-bottom: 0;
}

.pspb-internal-guide__section-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.pspb-internal-guide__section-header h3 {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 900;
	line-height: 1.8;
}

.pspb-internal-guide__section-header p {
	max-width: 44rem;
	margin: 0;
	color: #5b6b7b;
	font-size: 0.88rem;
	line-height: 1.9;
}

.pspb-internal-guide__summary {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 0;
}

.pspb-internal-guide__summary > div {
	position: relative;
	overflow: hidden;
}

.pspb-internal-guide__summary > div::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: #d7e2ee;
}

.pspb-internal-guide__summary span {
	margin: 0 0 0.25rem;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: none;
}

.pspb-internal-guide__summary small {
	display: block;
	margin-top: 0.2rem;
	color: #64748b;
	font-size: 0.76rem;
	line-height: 1.7;
}

.pspb-internal-guide__summary .woocommerce-Price-amount,
.pspb-internal-guide__table .woocommerce-Price-amount {
	direction: ltr;
	unicode-bidi: plaintext;
	white-space: nowrap;
}

.pspb-internal-guide__table {
	min-width: 1040px;
}

.pspb-internal-guide__table th,
.pspb-internal-guide__table td {
	font-size: 0.86rem;
}

.pspb-internal-guide__table td:nth-child(1),
.pspb-internal-guide__table th:nth-child(1) {
	width: 4rem;
	text-align: center;
}

.pspb-internal-guide__table td:nth-child(3),
.pspb-internal-guide__table th:nth-child(3),
.pspb-internal-guide__table td:nth-child(4),
.pspb-internal-guide__table th:nth-child(4),
.pspb-internal-guide__table td:nth-child(5),
.pspb-internal-guide__table th:nth-child(5),
.pspb-internal-guide__table td:nth-child(6),
.pspb-internal-guide__table th:nth-child(6),
.pspb-internal-guide__table td:nth-child(7),
.pspb-internal-guide__table th:nth-child(7),
.pspb-internal-guide__table td:nth-child(8),
.pspb-internal-guide__table th:nth-child(8),
.pspb-internal-guide__table td:nth-child(9),
.pspb-internal-guide__table th:nth-child(9) {
	white-space: nowrap;
}

.pspb-internal-guide__product-cell {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	min-width: 245px;
}

.pspb-internal-guide__product-thumb {
	flex: 0 0 46px;
}

.pspb-internal-guide__product-main {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	min-width: 0;
}

.pspb-internal-guide__product-main small {
	color: #64748b;
	font-size: 0.78rem;
	line-height: 1.7;
}

.pspb-internal-guide__stock-label,
.pspb-internal-guide__muted {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0.3rem 0.25rem;
	padding: 0.13rem 0.5rem;
	border-radius: 999px;
	background: #f1f5f9;
	color: #44566c;
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.7;
}

.pspb-internal-guide__status-cell {
	min-width: 220px;
}

.pspb-internal-guide__empty {
	margin: 0;
	padding: 0.85rem 1rem;
	border: 1px dashed #cbd7e4;
	border-radius: 13px;
	background: #fbfdff;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 2;
}

.pspb-internal-guide__attachment-grid,
.pspb-internal-guide__notes-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.pspb-internal-guide__attachment-card {
	display: flex;
	gap: 0.85rem;
	align-items: stretch;
	min-width: 0;
	padding: 0.85rem;
	border: 1px solid #dfe7ef;
	border-radius: 15px;
	background: #fbfdff;
}

.pspb-internal-guide__attachment-card.is-customer-safe {
	border-color: #c9e6d1;
	background: #f8fcf9;
}

.pspb-internal-guide__attachment-preview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	border: 1px solid #dfe7ef;
	border-radius: 14px;
	background: #fff;
	flex: 0 0 74px;
	overflow: hidden;
}

.pspb-internal-guide__attachment-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pspb-internal-guide__attachment-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: #eef4fb;
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pspb-internal-guide__attachment-body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
	flex: 1 1 auto;
}

.pspb-internal-guide__attachment-title-row {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	justify-content: space-between;
	min-width: 0;
}

.pspb-internal-guide__attachment-title-row strong {
	min-width: 0;
	font-size: 0.94rem;
	line-height: 1.8;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-internal-guide__file-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.16rem 0.48rem;
	border-radius: 999px;
	background: #17324d;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1.6;
	white-space: nowrap;
}

.pspb-internal-guide__attachment-meta {
	display: block;
	color: #64748b;
	font-size: 0.8rem;
	line-height: 1.8;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-internal-guide__attachment-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: auto;
}

.pspb-internal-guide__note-card,
.pspb-customer-safe-print {
	min-width: 0;
	padding: 1rem;
	border: 1px solid #e0e7ef;
	border-radius: 15px;
	background: #fbfdff;
}

.pspb-internal-guide__note-card.is-confidential {
	border-color: #f0d6a6;
	background: #fffaf1;
}

.pspb-internal-guide__note-card strong,
.pspb-customer-safe-print__notes strong {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	font-weight: 900;
	line-height: 1.8;
}

.pspb-internal-guide__note-card p,
.pspb-customer-safe-print__notes p {
	margin: 0;
	color: #334155;
	font-size: 0.9rem;
	line-height: 2;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-internal-guide__section--customer-safe {
	border-color: #c9e6d1;
	background: #fbfefc;
}

.pspb-customer-safe-print__header {
	margin-bottom: 0.85rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #dbe8df;
}

.pspb-customer-safe-print__header span {
	display: inline-flex;
	margin-bottom: 0.25rem;
	color: #36613f;
	font-size: 0.8rem;
	font-weight: 900;
	line-height: 1.7;
}

.pspb-customer-safe-print__header h2 {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 900;
	line-height: 1.8;
}

.pspb-customer-safe-print__notes {
	margin-bottom: 0.9rem;
}

.pspb-internal-guide--error p {
	margin: 0 0 0.75rem;
	line-height: 2;
}

.pspb-print-root {
	display: none;
}

@media (max-width: 1024px) {
	.pspb-internal-guide__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.pspb-internal-guide__section-header,
	.pspb-internal-guide__attachment-title-row {
		flex-direction: column;
		gap: 0.35rem;
	}

	.pspb-internal-guide__header-actions {
		width: 100%;
	}

	.pspb-internal-guide__print-button,
	.pspb-internal-guide__toggle {
		flex: 1 1 auto;
	}

	.pspb-internal-guide__summary,
	.pspb-internal-guide__attachment-grid,
	.pspb-internal-guide__notes-grid {
		grid-template-columns: 1fr;
	}

	.pspb-internal-guide__table-wrap {
		overflow: visible;
		border: 0;
	}

	.pspb-internal-guide__table {
		min-width: 0;
		border: 0;
	}

	.pspb-internal-guide__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}

	.pspb-internal-guide__table,
	.pspb-internal-guide__table tbody,
	.pspb-internal-guide__table tr,
	.pspb-internal-guide__table td {
		display: block;
		width: 100%;
	}

	.pspb-internal-guide__table tbody tr {
		margin-bottom: 0.85rem;
		border: 1px solid #e5e7eb;
		border-radius: 14px;
		background: #fff;
		overflow: hidden;
	}

	.pspb-internal-guide__table tbody tr:last-child {
		margin-bottom: 0;
	}

	.pspb-internal-guide__table td {
		display: flex;
		gap: 0.75rem;
		align-items: flex-start;
		justify-content: space-between;
		padding: 0.72rem 0.8rem;
		border-bottom: 1px solid #edf1f5;
		text-align: left;
		white-space: normal !important;
	}

	.pspb-internal-guide__table td::before {
		content: attr(data-label);
		flex: 0 0 8.5rem;
		color: #52606d;
		font-weight: 900;
		text-align: right;
	}

	.pspb-internal-guide__table td:last-child {
		border-bottom: 0;
	}

	.pspb-internal-guide__product-cell {
		min-width: 0;
	}

	.pspb-internal-guide__product-cell::before {
		padding-top: 0.3rem;
	}

	.pspb-internal-guide__attachment-card {
		align-items: flex-start;
	}
}

@media print {
	@page {
		margin: 12mm;
	}

	body.pspb-print-mode > :not(.pspb-print-root) {
		display: none !important;
	}

	body.pspb-print-mode .pspb-print-root {
		display: block !important;
		direction: rtl !important;
		text-align: right !important;
		background: #fff !important;
		color: #111 !important;
		font-size: 11pt !important;
		line-height: 1.75 !important;
	}

	body.pspb-print-mode #wpadminbar,
	body.pspb-print-mode header,
	body.pspb-print-mode footer,
	body.pspb-print-mode nav,
	body.pspb-print-mode aside,
	body.pspb-print-mode .site-header,
	body.pspb-print-mode .site-footer,
	body.pspb-print-mode .woocommerce-breadcrumb,
	body.pspb-print-mode .related,
	body.pspb-print-mode .upsells {
		display: none !important;
	}

	.pspb-print-root [data-pspb-no-print="1"],
	.pspb-print-root .pspb-internal-guide__header-actions,
	.pspb-print-root .pspb-internal-guide__attachment-actions,
	.pspb-print-root .pspb-internal-guide__edit {
		display: none !important;
	}

	.pspb-print-root .pspb-internal-guide,
	.pspb-print-root .pspb-internal-guide__section,
	.pspb-print-root .pspb-customer-safe-print,
	.pspb-print-root .pspb-internal-guide__note-card,
	.pspb-print-root .pspb-internal-guide__attachment-card {
		box-shadow: none !important;
		background: #fff !important;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.pspb-print-root .pspb-internal-guide {
		margin: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		overflow: visible !important;
	}

	.pspb-print-root .pspb-internal-guide__header {
		padding: 0 0 0.8rem !important;
		border: 0 !important;
		border-bottom: 2px solid #111 !important;
		background: #fff !important;
	}

	.pspb-print-root .pspb-internal-guide__content {
		padding: 0.8rem 0 0 !important;
	}

	.pspb-print-root .pspb-internal-guide__section {
		padding: 0.65rem 0 !important;
		border: 0 !important;
		border-bottom: 1px solid #ddd !important;
		border-radius: 0 !important;
	}

	.pspb-print-root .pspb-internal-guide__summary,
	.pspb-print-root .pspb-internal-guide__attachment-grid,
	.pspb-print-root .pspb-internal-guide__notes-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.45rem !important;
	}

	.pspb-print-root .pspb-internal-guide__summary > div,
	.pspb-print-root .pspb-internal-guide__attachment-card,
	.pspb-print-root .pspb-internal-guide__note-card,
	.pspb-print-root .pspb-customer-safe-print {
		padding: 0.5rem !important;
		border: 1px solid #ddd !important;
		border-radius: 0 !important;
	}

	.pspb-print-root .pspb-internal-guide__table-wrap {
		overflow: visible !important;
		border: 0 !important;
	}

	.pspb-print-root .pspb-internal-guide__table {
		min-width: 0 !important;
		font-size: 8.5pt !important;
	}

	.pspb-print-root .pspb-internal-guide__table th,
	.pspb-print-root .pspb-internal-guide__table td {
		padding: 0.3rem !important;
		border: 1px solid #ddd !important;
	}

	.pspb-print-root .pspb-internal-guide__table thead th {
		background: #f2f2f2 !important;
		color: #111 !important;
	}

	.pspb-print-root .pspb-internal-guide__attachment-preview,
	.pspb-print-root .pspb-internal-guide__thumb,
	.pspb-print-root .pspb-internal-guide__thumb-empty {
		width: 40px !important;
		height: 40px !important;
		max-width: 40px !important;
		max-height: 40px !important;
	}

	.pspb-print-root--customer .pspb-internal-guide__section--customer-safe {
		border-bottom: 0 !important;
	}

	.pspb-print-root--customer .pspb-internal-guide__section-header p,
	.pspb-print-root--customer .pspb-internal-guide__attachment-meta {
		color: #333 !important;
	}
}

/* Stage 11 frontend safety polish. Public/customer-facing selectors stay scoped to Pack Builder containers. */
.pspb-pack-components,
.pspb-pack-summary,
.pspb-internal-guide-placeholder,
.pspb-internal-guide {
	max-width: 100%;
	overflow-wrap: anywhere;
}

.pspb-pack-components *,
.pspb-pack-summary *,
.pspb-internal-guide-placeholder *,
.pspb-internal-guide * {
	box-sizing: border-box;
}

.pspb-pack-components__table-wrap,
.pspb-internal-guide__table-wrap {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

.pspb-pack-components__product-name,
.pspb-pack-components__sku,
.pspb-internal-guide__name,
.pspb-internal-guide__product-main,
.pspb-internal-guide__attachment-title-row strong,
.pspb-internal-guide__attachment-meta,
.pspb-internal-guide__note-card p,
.pspb-customer-safe-print__notes p {
	min-width: 0;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-pack-summary {
	max-width: 100%;
}

@media (max-width: 768px) {
	.pspb-pack-components,
	.pspb-pack-summary,
	.pspb-internal-guide-placeholder,
	.pspb-internal-guide {
		width: 100%;
	}

	.pspb-internal-guide__attachment-card {
		min-width: 0;
	}
}

/* Stage 19 - final compact commercial staff guide UI/UX. */
.pspb-internal-guide,
.pspb-internal-guide * {
	box-sizing: border-box;
}

.pspb-internal-guide {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 12px 0;
	border: 1px solid #dbe7f5;
	border-radius: 18px;
	background: #f8fbff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	font-size: 13px;
	line-height: 1.75;
	color: #172033;
}

.pspb-internal-guide__header {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	padding: 12px;
	border-bottom: 1px solid #deebf7;
	background: linear-gradient(135deg, #f8fbff 0%, #edf6ff 100%);
}

.pspb-internal-guide__heading {
	min-width: 0;
}

.pspb-internal-guide__eyebrow,
.pspb-internal-guide__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	margin: 0 0 4px;
	padding: 2px 9px;
	border: 1px solid #c7d7e8;
	border-radius: 999px;
	background: #fff;
	color: #27415e;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.pspb-internal-guide__header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.55;
	color: #10243d;
}

.pspb-internal-guide__header p {
	margin: 2px 0 0;
	color: #4b6075;
	font-size: 12px;
	line-height: 1.75;
}

.pspb-internal-guide__header-actions,
.pspb-ig-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: flex-start;
	max-width: none;
	width: 100%;
}

.pspb-internal-guide__print-button,
.pspb-internal-guide__retry,
.pspb-internal-guide__file-button,
.pspb-internal-guide__toggle {
	min-width: 0;
	min-height: 32px;
	padding: 6px 10px;
	border: 1px solid #c6d5e5;
	border-radius: 10px;
	background: #fff;
	color: #15304c;
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.pspb-ig-toolbar .pspb-internal-guide__print-button,
.pspb-ig-toolbar .pspb-internal-guide__toggle,
.pspb-ig-toolbar .pspb-internal-guide__badge {
	flex: 1 1 106px;
}

.pspb-internal-guide__print-button:hover,
.pspb-internal-guide__print-button:focus,
.pspb-internal-guide__retry:hover,
.pspb-internal-guide__retry:focus,
.pspb-internal-guide__file-button:hover,
.pspb-internal-guide__file-button:focus,
.pspb-internal-guide__toggle:hover,
.pspb-internal-guide__toggle:focus {
	border-color: #7fa3c7;
	background: #f6fbff;
	color: #09233d;
	text-decoration: none;
	transform: translateY(-1px);
}

.pspb-internal-guide__print-button.pspb-ig-btn--primary {
	border-color: #006b95;
	background: #0077a3;
	color: #fff;
}

.pspb-internal-guide__print-button.pspb-ig-btn--primary:hover,
.pspb-internal-guide__print-button.pspb-ig-btn--primary:focus {
	border-color: #005e83;
	background: #00698f;
	color: #fff;
}

.pspb-internal-guide__print-button.is-customer-safe {
	border-color: #b9dfc7;
	background: #f3fbf6;
	color: #175b2c;
}

.pspb-internal-guide__content {
	padding: 10px;
}

.pspb-internal-guide__section {
	margin: 0 0 10px;
	padding: 10px;
	border: 1px solid #e1ebf5;
	border-radius: 15px;
	background: #fff;
	box-shadow: none;
}

.pspb-internal-guide__section:last-child {
	margin-bottom: 0;
}

.pspb-internal-guide__section-header {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	margin: 0 0 8px;
}

.pspb-internal-guide__section-header h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.65;
	color: #14243a;
}

.pspb-internal-guide__section-header p {
	margin: 0;
	max-width: none;
	color: #607086;
	font-size: 11.5px;
	line-height: 1.7;
}

.pspb-internal-guide__section--summary {
	border-color: #d8e9f8;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.pspb-ig-summary-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-bottom: 8px;
}

.pspb-ig-summary-hero__main {
	padding: 10px;
	border: 1px solid #b9dcf5;
	border-radius: 14px;
	background: linear-gradient(135deg, #eff8ff 0%, #ffffff 100%);
}

.pspb-ig-summary-hero__main span,
.pspb-ig-metrics span,
.pspb-ig-item__facts em {
	display: block;
	margin: 0 0 2px;
	color: #607086;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	line-height: 1.55;
}

.pspb-ig-summary-hero__main strong {
	display: block;
	color: #004e7c;
	font-size: 18px;
	font-weight: 950;
	line-height: 1.6;
}

.pspb-ig-summary-hero__main small,
.pspb-ig-metrics small {
	display: block;
	margin-top: 2px;
	color: #6b7f93;
	font-size: 10.5px;
	line-height: 1.55;
}

.pspb-ig-summary-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.pspb-ig-summary-hero__chips span,
.pspb-ig-item__status b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef8f1;
	color: #17612b;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.5;
}

.pspb-ig-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 7px;
}

.pspb-ig-metrics > div {
	min-width: 0;
	padding: 8px;
	border: 1px solid #e5edf6;
	border-radius: 12px;
	background: #fff;
}

.pspb-ig-metrics strong {
	display: block;
	color: #10243d;
	font-size: 12.5px;
	font-weight: 900;
	line-height: 1.65;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-internal-guide .woocommerce-Price-amount,
.pspb-internal-guide bdi {
	direction: rtl;
	unicode-bidi: normal;
	white-space: normal;
}

.pspb-internal-guide__warning {
	margin: 0 0 8px;
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 12px;
	line-height: 1.75;
}

.pspb-ig-items-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 7px;
}

.pspb-ig-item {
	min-width: 0;
	padding: 8px;
	border: 1px solid #e3edf7;
	border-radius: 14px;
	background: #fff;
}

.pspb-ig-item.has-warning {
	border-color: #f1d4a8;
	background: #fffdf8;
}

.pspb-ig-item.is-service-row {
	border-color: #b9dfc7;
	background: #f8fcf9;
}

.pspb-ig-item__identity {
	display: grid;
	grid-template-columns: 24px 38px minmax(0, 1fr);
	gap: 7px;
	align-items: center;
}

.pspb-ig-item__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #edf5ff;
	color: #16446f;
	font-size: 11px;
	font-weight: 900;
}

.pspb-ig-item__thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid #dce7f2;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.pspb-ig-item__thumb img,
.pspb-ig-item__thumb .pspb-internal-guide__thumb {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

.pspb-ig-item__thumb--service {
	background: #eef8f1;
	color: #17612b;
	font-size: 17px;
	font-weight: 900;
}

.pspb-ig-item__name-wrap {
	display: block;
	min-width: 0;
}

.pspb-ig-item__name-wrap strong {
	display: block;
	color: #10243d;
	font-size: 12.8px;
	font-weight: 900;
	line-height: 1.65;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-ig-item__name-wrap small {
	display: block;
	color: #74879b;
	font-size: 10.7px;
	line-height: 1.55;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-ig-item__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
	gap: 5px;
	margin-top: 7px;
}

.pspb-ig-item__facts > span {
	min-width: 0;
	padding: 5px 7px;
	border: 1px solid #edf2f7;
	border-radius: 10px;
	background: #fbfdff;
}

.pspb-ig-item__facts b {
	display: block;
	color: #10243d;
	font-size: 11.5px;
	font-weight: 900;
	line-height: 1.55;
	word-break: normal;
	overflow-wrap: anywhere;
}

.pspb-ig-item__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}

.pspb-internal-guide__warning-list {
	flex: 1 1 100%;
	margin: 0;
	padding: 0 16px 0 0;
	color: #7a4b00;
	font-size: 11px;
	line-height: 1.7;
}

.pspb-internal-guide__edit {
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
}

.pspb-internal-guide__attachment-grid,
.pspb-internal-guide__notes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 7px;
}

.pspb-internal-guide__attachment-card,
.pspb-internal-guide__note-card,
.pspb-customer-safe-print {
	padding: 8px;
	border-radius: 13px;
}

.pspb-internal-guide__attachment-card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
}

.pspb-internal-guide__attachment-preview {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	flex-basis: 44px;
}

.pspb-internal-guide__attachment-icon {
	width: 34px;
	height: 34px;
	font-size: 10px;
}

.pspb-internal-guide__attachment-title-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px;
}

.pspb-internal-guide__attachment-title-row strong {
	font-size: 12px;
	line-height: 1.55;
}

.pspb-internal-guide__attachment-meta,
.pspb-internal-guide__note-card p,
.pspb-customer-safe-print__notes p {
	font-size: 11.5px;
	line-height: 1.75;
}

.pspb-internal-guide__attachment-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 5px;
}

.pspb-internal-guide__empty {
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 11.5px;
	line-height: 1.75;
}

.pspb-internal-guide.is-collapsed .pspb-internal-guide__content,
.pspb-internal-guide.is-collapsed [data-pspb-internal-guide-content="1"] {
	display: none;
}

@media (min-width: 700px) {
	.pspb-internal-guide__header {
		grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
		align-items: start;
	}

	.pspb-ig-summary-hero {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: stretch;
	}

	.pspb-ig-summary-hero__chips {
		align-content: start;
		justify-content: flex-start;
		max-width: 260px;
	}
}

@media (max-width: 420px) {
	.pspb-internal-guide {
		border-radius: 14px;
		font-size: 12px;
	}

	.pspb-internal-guide__header,
	.pspb-internal-guide__content,
	.pspb-internal-guide__section {
		padding: 8px;
	}

	.pspb-ig-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pspb-ig-toolbar .pspb-internal-guide__print-button,
	.pspb-ig-toolbar .pspb-internal-guide__toggle,
	.pspb-ig-toolbar .pspb-internal-guide__badge {
		flex-basis: calc(50% - 4px);
	}

	.pspb-ig-item__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media print {
	.pspb-print-root .pspb-ig-toolbar,
	.pspb-print-root .pspb-internal-guide__header-actions,
	.pspb-print-root [data-pspb-no-print="1"] {
		display: none !important;
	}

	.pspb-print-root .pspb-internal-guide {
		box-shadow: none !important;
		border: 1px solid #000 !important;
		background: #fff !important;
	}

	.pspb-print-root .pspb-ig-metrics,
	.pspb-print-root .pspb-ig-item__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Stage 20 - wide commercial staff guide redesign. The staff guide is rendered after the main product summary, so it can use a full-width compact layout instead of a narrow sidebar column. */
.pspb-internal-guide-wide-slot,
.pspb-internal-guide-wide-slot * {
	box-sizing: border-box;
}

.pspb-internal-guide-wide-slot {
	clear: both;
	width: min(100%, 1180px);
	max-width: calc(100vw - 32px);
	margin: 24px auto 30px;
	direction: rtl;
	text-align: right;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide-placeholder {
	width: 100%;
	margin: 0;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide-placeholder__loading,
.pspb-internal-guide-wide-slot .pspb-internal-guide--error {
	padding: 14px 16px;
	border: 1px solid #d9e8d9;
	border-radius: 14px;
	background: #f3fff5;
	color: #24402a;
	font-size: 13px;
	line-height: 1.9;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide {
	width: 100%;
	max-width: 100%;
	margin: 0;
	border: 1px solid #bfebcd;
	border-radius: 14px;
	background: #f3fff6;
	box-shadow: none;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.65;
	color: #153321;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__header {
	display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.8fr);
	gap: 14px;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid #d5efd9;
	background: linear-gradient(135deg, #effcf1 0%, #ffffff 100%);
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__heading {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: 'badge title' 'badge text';
	gap: 2px 10px;
	align-items: center;
	min-width: 0;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__eyebrow {
	grid-area: badge;
	margin: 0;
	padding: 4px 10px;
	border-color: #c2e5ce;
	background: #ffffff;
	color: #23552f;
	font-size: 11px;
	line-height: 1.6;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__header h2 {
	grid-area: title;
	margin: 0;
	color: #12351d;
	font-size: 16px;
	font-weight: 950;
	line-height: 1.45;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__header p {
	grid-area: text;
	margin: 0;
	color: #42624b;
	font-size: 12px;
	line-height: 1.6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__header-actions,
.pspb-internal-guide-wide-slot .pspb-ig-toolbar {
	display: grid;
	grid-template-columns: repeat(6, minmax(92px, 1fr));
	gap: 6px;
	align-items: center;
	justify-content: stretch;
	width: 100%;
	max-width: none;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__badge {
	display: none;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__print-button,
.pspb-internal-guide-wide-slot .pspb-internal-guide__toggle,
.pspb-internal-guide-wide-slot .pspb-internal-guide__retry,
.pspb-internal-guide-wide-slot .pspb-internal-guide__file-button {
	width: 100%;
	min-height: 30px;
	padding: 5px 8px;
	border-radius: 10px;
	font-size: 11.5px;
	line-height: 1.45;
	font-weight: 850;
	white-space: nowrap;
}

.pspb-internal-guide-wide-slot .pspb-ig-toolbar .pspb-internal-guide__print-button,
.pspb-internal-guide-wide-slot .pspb-ig-toolbar .pspb-internal-guide__toggle {
	flex: 0 1 auto;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__content {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
	grid-template-areas:
		'summary summary'
		'warnings warnings'
		'items attachments'
		'items notes'
		'items customer';
	gap: 10px;
	padding: 12px;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section {
	min-width: 0;
	margin: 0;
	padding: 10px;
	border: 1px solid #dceee2;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section--summary {
	grid-area: summary;
	background: #ffffff;
	border-color: #cfeada;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__warning {
	grid-area: warnings;
	margin: 0;
	padding: 8px 10px;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section--items {
	grid-area: items;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section--attachments {
	grid-area: attachments;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section--notes {
	grid-area: notes;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section--customer-safe {
	grid-area: customer;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eef4f0;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section-header h3 {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 950;
	color: #12351d;
	white-space: nowrap;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__section-header p {
	margin: 0;
	max-width: none;
	color: #668070;
	font-size: 11px;
	line-height: 1.55;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pspb-internal-guide-wide-slot .pspb-ig-summary-hero {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 8px;
	margin: 0 0 8px;
}

.pspb-internal-guide-wide-slot .pspb-ig-summary-hero__main {
	min-width: 0;
	padding: 9px 10px;
	border-color: #bfe8cb;
	background: linear-gradient(135deg, #f0fff3 0%, #ffffff 100%);
}

.pspb-internal-guide-wide-slot .pspb-ig-summary-hero__main span,
.pspb-internal-guide-wide-slot .pspb-ig-metrics span,
.pspb-internal-guide-wide-slot .pspb-ig-item__facts em {
	font-size: 10.5px;
	line-height: 1.45;
}

.pspb-internal-guide-wide-slot .pspb-ig-summary-hero__main strong {
	font-size: 17px;
	line-height: 1.45;
	color: #0c5d23;
}

.pspb-internal-guide-wide-slot .pspb-ig-summary-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-content: center;
	justify-content: flex-start;
	max-width: none;
}

.pspb-internal-guide-wide-slot .pspb-ig-summary-hero__chips span,
.pspb-internal-guide-wide-slot .pspb-ig-item__status b {
	min-height: 22px;
	padding: 2px 7px;
	font-size: 10.5px;
	line-height: 1.4;
}

.pspb-internal-guide-wide-slot .pspb-ig-metrics {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
}

.pspb-internal-guide-wide-slot .pspb-ig-metrics > div {
	min-height: 60px;
	padding: 7px 8px;
	border-radius: 10px;
}

.pspb-internal-guide-wide-slot .pspb-ig-metrics strong {
	font-size: 12px;
	line-height: 1.5;
}

.pspb-internal-guide-wide-slot .pspb-ig-items-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.pspb-internal-guide-wide-slot .pspb-ig-item {
	display: grid;
	grid-template-columns: minmax(260px, 1.15fr) minmax(360px, 1fr) auto;
	gap: 8px;
	align-items: center;
	padding: 7px;
	border-radius: 11px;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__identity {
	display: grid;
	grid-template-columns: 22px 34px minmax(0, 1fr);
	gap: 6px;
	align-items: center;
	min-width: 0;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__index {
	width: 22px;
	height: 22px;
	font-size: 10.5px;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__thumb {
	width: 34px;
	height: 34px;
	border-radius: 9px;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__name-wrap strong {
	font-size: 12px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__name-wrap small {
	font-size: 10px;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__facts {
	display: grid;
	grid-template-columns: repeat(5, minmax(62px, 1fr));
	gap: 4px;
	margin: 0;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__facts > span {
	padding: 4px 5px;
	border-radius: 8px;
	text-align: center;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__facts b {
	font-size: 10.8px;
	line-height: 1.45;
}

.pspb-internal-guide-wide-slot .pspb-ig-item__footer {
	margin: 0;
	justify-content: flex-end;
	align-self: center;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__edit {
	min-height: 26px;
	padding: 3px 8px;
	font-size: 10.5px;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__attachment-grid,
.pspb-internal-guide-wide-slot .pspb-internal-guide__notes-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__attachment-card,
.pspb-internal-guide-wide-slot .pspb-internal-guide__note-card,
.pspb-internal-guide-wide-slot .pspb-customer-safe-print {
	padding: 7px;
	border-radius: 10px;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__attachment-card {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 7px;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__attachment-preview {
	width: 38px;
	height: 38px;
	border-radius: 9px;
	flex-basis: 38px;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__attachment-title-row strong,
.pspb-internal-guide-wide-slot .pspb-internal-guide__note-card strong,
.pspb-internal-guide-wide-slot .pspb-customer-safe-print__notes strong {
	font-size: 11.5px;
	line-height: 1.5;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__attachment-meta,
.pspb-internal-guide-wide-slot .pspb-internal-guide__note-card p,
.pspb-internal-guide-wide-slot .pspb-customer-safe-print__notes p,
.pspb-internal-guide-wide-slot .pspb-internal-guide__empty {
	font-size: 11px;
	line-height: 1.65;
}

.pspb-internal-guide-wide-slot .pspb-internal-guide__file-button {
	min-height: 25px;
	padding: 3px 7px;
	font-size: 10.5px;
}

.pspb-internal-guide-wide-slot .pspb-customer-safe-print__header {
	margin-bottom: 6px;
	padding-bottom: 6px;
}

.pspb-internal-guide-wide-slot .pspb-customer-safe-print__header h2 {
	font-size: 12.5px;
	line-height: 1.55;
}

@media (max-width: 1180px) {
	.pspb-internal-guide-wide-slot .pspb-internal-guide__header {
		grid-template-columns: 1fr;
	}
	.pspb-internal-guide-wide-slot .pspb-internal-guide__header-actions,
	.pspb-internal-guide-wide-slot .pspb-ig-toolbar {
		grid-template-columns: repeat(3, minmax(110px, 1fr));
	}
	.pspb-internal-guide-wide-slot .pspb-internal-guide__content {
		grid-template-columns: 1fr;
		grid-template-areas:
			'summary'
			'warnings'
			'items'
			'attachments'
			'notes'
			'customer';
	}
	.pspb-internal-guide-wide-slot .pspb-ig-metrics {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.pspb-internal-guide-wide-slot .pspb-ig-item {
		grid-template-columns: minmax(260px, 1fr) minmax(330px, 1fr) auto;
	}
}

@media (max-width: 860px) {
	.pspb-internal-guide-wide-slot {
		max-width: calc(100vw - 20px);
		margin: 18px auto;
	}
	.pspb-internal-guide-wide-slot .pspb-internal-guide__header-actions,
	.pspb-internal-guide-wide-slot .pspb-ig-toolbar {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}
	.pspb-internal-guide-wide-slot .pspb-ig-summary-hero,
	.pspb-internal-guide-wide-slot .pspb-ig-item {
		grid-template-columns: 1fr;
	}
	.pspb-internal-guide-wide-slot .pspb-ig-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.pspb-internal-guide-wide-slot .pspb-internal-guide__header,
	.pspb-internal-guide-wide-slot .pspb-internal-guide__content,
	.pspb-internal-guide-wide-slot .pspb-internal-guide__section {
		padding: 8px;
	}
	.pspb-internal-guide-wide-slot .pspb-internal-guide__header-actions,
	.pspb-internal-guide-wide-slot .pspb-ig-toolbar,
	.pspb-internal-guide-wide-slot .pspb-ig-metrics,
	.pspb-internal-guide-wide-slot .pspb-ig-item__facts {
		grid-template-columns: 1fr;
	}
	.pspb-internal-guide-wide-slot .pspb-internal-guide__section-header {
		align-items: flex-start;
		flex-direction: column;
	}
	.pspb-internal-guide-wide-slot .pspb-internal-guide__section-header p,
	.pspb-internal-guide-wide-slot .pspb-internal-guide__header p {
		white-space: normal;
	}
}


