.pfk-sg-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: #1f2937;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.pfk-sg-trigger:hover,
.pfk-sg-trigger:focus {
	background: #111827;
	color: #fff;
	outline: none;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
	transform: translateY(-1px);
}

.pfk-sg-trigger:focus-visible {
	outline: 2px solid #111827;
	outline-offset: 2px;
}

.pfk-sg-trigger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	opacity: 0.92;
}

.pfk-sg-trigger-svg {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.pfk-sg-instance {
	margin: 12px 0;
}

.pfk-sg-instance--pdp {
	margin: 0;
	display: inline-flex;
	max-width: 100%;
}

.pfk-sg-trigger--pdp {
	position: relative;
	min-height: 0;
	min-width: 0;
	height: auto;
	padding: 10px 4px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #0f172a;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.25;
	box-shadow: none;
	transform: none;
	gap: 6px;
	white-space: nowrap;
	align-items: center;
}

.pfk-sg-trigger--pdp::before {
	content: "";
	position: absolute;
	inset: -8px -6px;
	/* Transparent hit area ≥40px without enlarging visual chrome */
}

.pfk-sg-trigger--pdp .pfk-sg-trigger-label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: transparent;
}

.pfk-sg-trigger--pdp .pfk-sg-trigger-svg {
	width: 15px;
	height: 15px;
	flex-basis: 15px;
}

.pfk-sg-trigger--pdp:hover,
.pfk-sg-trigger--pdp:focus {
	background: transparent;
	border: 0;
	color: #1e3a5f;
	box-shadow: none;
	transform: none;
}

.pfk-sg-trigger--pdp:hover .pfk-sg-trigger-label,
.pfk-sg-trigger--pdp:focus-visible .pfk-sg-trigger-label {
	text-decoration-color: currentColor;
}

.pfk-sg-trigger--pdp:focus-visible {
	outline: 2px solid #0f172a;
	outline-offset: 3px;
	background: transparent;
	border-radius: 4px;
}

.pfk-sg-modal-portal {
	/* Footer/body portal host — no layout chrome */
	display: contents;
}

.pfk-sg-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

.pfk-sg-modal[hidden] {
	display: none !important;
}

.pfk-sg-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
}

.pfk-sg-modal-panel {
	position: relative;
	width: min(860px, calc(100vw - 40px));
	max-width: 1040px;
	max-height: min(90dvh, calc(100dvh - 40px - env(safe-area-inset-bottom, 0px)));
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: pfk-sg-fade-in 0.22s ease-out;
	box-sizing: border-box;
}

.pfk-sg-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.06);
	color: #111827;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.pfk-sg-modal-close:hover,
.pfk-sg-modal-close:focus {
	background: rgba(15, 23, 42, 0.12);
	outline: none;
}

.pfk-sg-modal-close:focus-visible {
	outline: 2px solid #111827;
	outline-offset: 2px;
}

.pfk-sg-modal-body {
	padding: 28px 34px 42px;
	overflow-y: auto;
	color: #111827;
	font-size: 15px;
	line-height: 1.55;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable both-edges;
}

.pfk-sg-modal-header {
	padding-right: 0;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eef2f7;
	text-align: center;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.pfk-sg-modal-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	min-height: 48px;
}

.pfk-sg-modal-brand[hidden] {
	display: none !important;
}

.pfk-sg-modal-brand .pfk-sg-brand-logo,
.pfk-sg-brand-logo {
	display: block;
	max-width: min(180px, 100%);
	max-height: 52px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}

.pfk-sg-modal-eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	text-align: center;
}

.pfk-sg-modal-title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
}

.pfk-sg-modal-title.pfk-sg-modal-title--compact {
	font-size: 18px;
	line-height: 1.35;
	font-weight: 600;
	color: #334155;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 6px;
}

.pfk-sg-modal-title.pfk-sg-modal-title--with-logo {
	font-size: 16px;
	font-weight: 600;
	color: #64748b;
}

.pfk-sg-modal-description {
	margin: 0 0 12px;
	font-size: 15px;
	color: #475569;
	text-align: center;
}

.pfk-sg-modal-subtitle {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.pfk-sg-modal-section {
	margin-bottom: 20px;
}

.pfk-sg-modal-section:last-child {
	margin-bottom: 0;
}

.pfk-sg-modal-notes p {
	margin: 0;
	white-space: pre-wrap;
	color: #475569;
}

.pfk-sg-richtext p:last-child {
	margin-bottom: 0;
}

.pfk-sg-table-section {
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
}

.pfk-sg-table-scroll-hint {
	display: none;
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.4;
	color: #64748b;
}

.pfk-sg-table-section.is-scrollable .pfk-sg-table-scroll-hint:not([hidden]) {
	display: block;
}

.pfk-sg-table-scroll-hint[hidden] {
	display: none !important;
}

.pfk-sg-table-wrap {
	position: relative;
	overflow-x: auto;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	-webkit-overflow-scrolling: touch;
}

.pfk-sg-table {
	width: 100%;
	min-width: 520px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

.pfk-sg-table th,
.pfk-sg-table td {
	padding: 14px 20px;
	border-bottom: 1px solid #eef2f7;
	text-align: left;
	line-height: 1.45;
	white-space: nowrap;
}

.pfk-sg-table th:first-child,
.pfk-sg-table td:first-child {
	padding-left: 22px;
	min-width: 150px;
	background: #f8fafc;
	font-weight: 700;
	color: #0f172a;
}

.pfk-sg-table th:last-child,
.pfk-sg-table td:last-child {
	padding-right: 20px;
}

.pfk-sg-table th {
	background: #f8fafc;
	font-weight: 700;
	color: #0f172a;
}

.pfk-sg-table thead th:first-child {
	background: #f8fafc;
}

.pfk-sg-table tbody tr:last-child td {
	border-bottom: 0;
}

.pfk-sg-table tbody tr:hover td {
	background: #fafbfc;
}

.pfk-sg-table tbody tr:hover td:first-child {
	background: #f1f5f9;
}

.pfk-sg-modal-diagram {
	margin: 0 0 20px;
	text-align: center;
}

.pfk-sg-modal-diagram .pfk-sg-diagram-img,
.pfk-sg-diagram-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	background: #fff;
}

body.pfk-sg-modal-open {
	overflow: hidden;
}

@keyframes pfk-sg-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 640px) {
	.pfk-sg-modal {
		padding: 14px;
		padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		align-items: center;
	}

	.pfk-sg-modal-panel {
		width: calc(100vw - 28px);
		max-height: min(92dvh, calc(100dvh - 28px - env(safe-area-inset-bottom, 0px)));
		border-radius: 16px;
	}

	.pfk-sg-modal-body {
		padding: 20px 16px 36px;
		font-size: 14px;
		scrollbar-gutter: auto;
	}

	.pfk-sg-modal-header {
		padding-right: 0;
		margin-bottom: 14px;
		padding-bottom: 12px;
	}

	.pfk-sg-modal-brand {
		margin-bottom: 6px;
	}

	.pfk-sg-modal-brand .pfk-sg-brand-logo,
	.pfk-sg-brand-logo {
		max-width: min(160px, 100%);
		max-height: 48px;
		margin-bottom: 0;
	}

	.pfk-sg-modal-title,
	.pfk-sg-modal-title.pfk-sg-modal-title--compact {
		font-size: 16px;
		line-height: 1.3;
	}

	.pfk-sg-modal-title.pfk-sg-modal-title--with-logo {
		font-size: 15px;
	}

	.pfk-sg-modal-description,
	.pfk-sg-richtext {
		font-size: 14px;
	}

	.pfk-sg-modal-close {
		top: 10px;
		right: 10px;
		width: 34px;
		height: 34px;
		font-size: 22px;
	}

	.pfk-sg-table-wrap {
		padding: 8px;
		overflow-x: auto;
	}

	.pfk-sg-table {
		font-size: 12px;
		min-width: 480px;
	}

	.pfk-sg-table th,
	.pfk-sg-table td {
		padding: 11px 14px;
	}

	.pfk-sg-table th:first-child,
	.pfk-sg-table td:first-child {
		padding-left: 16px;
		min-width: 130px;
	}

	.pfk-sg-table th:last-child,
	.pfk-sg-table td:last-child {
		padding-right: 18px;
	}

	.pfk-sg-trigger:not(.pfk-sg-trigger--pdp) {
		width: 100%;
	}

	.pfk-sg-trigger--pdp {
		font-size: 13.5px;
		padding: 10px 2px;
	}
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
	.pfk-sg-modal-panel {
		width: min(860px, calc(100vw - 40px));
		max-width: min(860px, calc(100vw - 40px));
	}
}

/* Desktop ≥1024px — viewport-owned useful width */
@media (min-width: 1024px) {
	.pfk-sg-modal {
		padding: 48px;
	}

	.pfk-sg-modal-panel {
		width: min(1040px, calc(100vw - 96px));
		max-width: 1040px;
		min-width: 0;
	}
}
