/* SNP Assessment Drawer */
.snp-drawer-trigger {
	position: fixed;
	z-index: 99998;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.snp-drawer-trigger--hidden {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.9);
}

/* Position variants */
.snp-drawer-trigger--bottom-right {
	bottom: 28px;
	right: 28px;
}

.snp-drawer-trigger--bottom-left {
	bottom: 28px;
	left: 28px;
}

.snp-drawer-trigger--right-center {
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.snp-drawer-trigger--right-center.snp-drawer-trigger--hidden {
	transform: translateY(-50%) scale(0.9);
}

/* Trigger button */
.snp-drawer-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	color: #FFFFFF;
	background: #1A1A1A;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.snp-drawer-btn:hover {
	background: #333333;
	box-shadow: 0 6px 32px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

.snp-drawer-btn:active {
	transform: translateY(0);
}

/* Side tab variant */
.snp-drawer-trigger--right-center .snp-drawer-btn {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	border-radius: 6px 0 0 6px;
	padding: 24px 14px;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Pulse animation */
.snp-drawer-btn--pulse {
	animation: snp-drawer-pulse 3s ease-in-out infinite;
}

@keyframes snp-drawer-pulse {
	0%, 100% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1); }
	50% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 6px rgba(26, 26, 26, 0.08); }
}

/* Overlay */
.snp-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0);
	visibility: hidden;
	transition: background 0.35s ease, visibility 0s linear 0.35s;
}

.snp-drawer-overlay--open {
	background: rgba(0, 0, 0, 0.4);
	visibility: visible;
	transition: background 0.35s ease, visibility 0s linear 0s;
}

/* Drawer panel -- slides from right (default) */
.snp-drawer-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9999999;
	width: 520px;
	max-width: 92vw;
	background: #F4F0EB;
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.snp-drawer-panel--open {
	transform: translateX(0);
}

/* Drawer panel -- slides from left */
.snp-drawer-panel--left {
	right: auto;
	left: 0;
	transform: translateX(-100%);
	box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.snp-drawer-panel--left.snp-drawer-panel--open {
	transform: translateX(0);
}

/* Drawer header */
.snp-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(26, 26, 26, 0.08);
	flex-shrink: 0;
	background: inherit;
}

.snp-drawer-header--minimal {
	justify-content: flex-end;
	border-bottom: none;
	padding: 10px 14px;
}

.snp-drawer-header-title {
	font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8A8680;
}

.snp-drawer-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	color: #8A8680;
	font-size: 18px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.snp-drawer-close:hover {
	background: rgba(26, 26, 26, 0.06);
	color: #1A1A1A;
}

/* Drawer body */
.snp-drawer-body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════════════════
   Assessment overrides inside drawer
   ══════════════════════════════════════════════ */

/* Root: fill drawer, match bg, no rounding */
.snp-drawer-body .snp-assess {
	min-height: 100%;
	border-radius: 0;
	box-shadow: none;
	background: inherit;
	display: flex;
	flex-direction: column;
}

/* Hide the widget's own header and footer bar */
.snp-drawer-body .snp-assess__header {
	display: none !important;
}

.snp-drawer-body .snp-assess__footer-bar {
	display: none !important;
}

/* Active screen: flex column for vertical distribution */
.snp-drawer-body .snp-assess__screen--active {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Push footer to bottom via auto margin on divider */
.snp-drawer-body .snp-assess__screen .snp-assess__divider {
	margin-top: auto;
}

/* ── Fix text overflow in narrow drawer ── */
.snp-drawer-body .snp-assess__option {
	overflow: visible;
	overflow-wrap: break-word;
	word-wrap: break-word;
	white-space: normal;
	min-width: 0;
}

.snp-drawer-body .snp-assess__option-text {
	overflow-wrap: break-word;
	word-wrap: break-word;
	white-space: normal;
	min-width: 0;
}

.snp-drawer-body .snp-assess__screen {
	overflow-x: hidden;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Responsive */
@media (max-width: 600px) {
	.snp-drawer-panel {
		width: 100vw;
		max-width: 100vw;
	}

	.snp-drawer-trigger--bottom-right,
	.snp-drawer-trigger--bottom-left {
		bottom: 16px;
		right: 16px;
		left: auto;
	}
}
