/* Compact, user-initiated help. Keep clear of right-hand chat widgets. */
#pdp-sa-launcher-wrap {
 position: fixed !important; left: max(12px, env(safe-area-inset-left)) !important;
 bottom: calc(12px + env(safe-area-inset-bottom)) !important; top: auto !important; right: auto !important;
 z-index: 2147483640 !important;
}
html.pdp-sa-assistant-open #pdp-sa-launcher-wrap { display: none !important; }
#pdp-sa-launcher {
 display: inline-flex !important; align-items: center !important; justify-content: center !important;
 width: auto !important; min-width: 64px !important; min-height: 48px !important;
 margin: 0 !important; padding: 10px 16px !important; border: 0 !important; border-radius: 24px !important;
 background: var(--pdp-sa-accent) !important; color: #fff !important;
 font: 700 14px/1.3 sans-serif !important; cursor: pointer !important;
 box-shadow: 0 3px 12px rgba(0,0,0,.2) !important;
}
#pdp-sa-launcher .pdp-sa-launcher-label { color: inherit !important; font: inherit !important; }
#pdp-sa-launcher:focus-visible, #pdp-sa-panel button:focus-visible, #pdp-sa-panel a:focus-visible {
 outline: 3px solid #fff !important; outline-offset: 3px; box-shadow: 0 0 0 6px #222 !important;
}
#pdp-sa-overlay {
	position: fixed; inset: 0; z-index: 2147483630; background: rgba(0,0,0,.62);
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#pdp-sa-overlay.is-open { opacity: 1; pointer-events: auto; }

#pdp-sa-panel {
	position: fixed; top: 0; right: 0; z-index: 2147483635;
	width: min(400px, 100%); height: 100vh; height: 100dvh; background: #111; color: #fff;
	transform: translateX(105%); transition: transform .25s ease;
	box-shadow: -12px 0 40px rgba(0,0,0,.4); display: flex; flex-direction: column;
}
#pdp-sa-panel.is-open { transform: translateX(0); }

.pdp-sa-header {
	padding: 18px 18px 15px; border-bottom: 1px solid rgba(255,255,255,.1);
	display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #161616;
}
.pdp-sa-brand { display: flex; flex-direction: column; }
.pdp-sa-brand strong { font-size: 17px; }
.pdp-sa-brand span { font-size: 11px; color: #aaa; margin-top: 3px; }
.pdp-sa-header-actions { display: flex; gap: 6px; }
.pdp-sa-header button {
	border: 0; background: #272727; color: #ddd; border-radius: 8px;
	padding: 8px 10px; cursor: pointer; font-size: 12px;
}

#pdp-sa-body { padding: 20px 18px 30px; overflow-y: auto; flex: 1; }
.pdp-sa-title { font-size: 23px; line-height: 1.2; margin: 0 0 8px; font-weight: 900; }
.pdp-sa-lead { font-size: 14px; line-height: 1.6; color: #ccc; margin: 0 0 18px; }
.pdp-sa-options { display: grid; gap: 9px; }

.pdp-sa-option {
	width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.1);
	background: #1b1b1b; color: #fff; border-radius: 12px; padding: 14px;
	cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.pdp-sa-option:hover { border-color: var(--pdp-sa-accent); background: #202020; transform: translateY(-1px); }
.pdp-sa-option strong { display: block; font-size: 14px; margin-bottom: 3px; }
.pdp-sa-option span { display: block; font-size: 12px; line-height: 1.45; color: #aaa; }

.pdp-sa-card {
	border: 1px solid rgba(255,255,255,.1); background: #1a1a1a;
	padding: 16px; border-radius: 14px; margin-bottom: 13px;
}
.pdp-sa-card.good { border-color: rgba(70, 210, 120, .38); }
.pdp-sa-card.warn { border-color: rgba(255, 166, 0, .45); }
.pdp-sa-card h3 { margin: 0 0 8px; font-size: 17px; }
.pdp-sa-card p { margin: 0; color: #ccc; font-size: 13px; line-height: 1.6; }

.pdp-sa-note {
	background: rgba(255,255,255,.05); border-radius: 10px; padding: 12px;
	font-size: 12px; line-height: 1.55; color: #ccc; margin: 12px 0;
}
.pdp-sa-note strong { color: #fff; }

.pdp-sa-actions { display: grid; gap: 9px; margin-top: 16px; }
.pdp-sa-link, .pdp-sa-back {
	display: block; width: 100%; box-sizing: border-box; text-align: center;
	border-radius: 10px; padding: 13px 14px; text-decoration: none !important;
	font-size: 13px; font-weight: 900; cursor: pointer;
}
.pdp-sa-link { background: var(--pdp-sa-accent); color: #fff !important; border: 1px solid var(--pdp-sa-accent); }
.pdp-sa-link.secondary { background: #242424; border-color: rgba(255,255,255,.12); color: #fff !important; }
.pdp-sa-back { background: transparent; border: 1px solid rgba(255,255,255,.12); color: #ccc; }

.pdp-sa-mini { font-size: 11px; color: #888; text-align: center; line-height: 1.5; margin-top: 16px; }

@keyframes pdpSaIn {
	from { opacity: 0; transform: translateY(7px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Prevent theme typography/colour rules bleeding into the assistant */

#pdp-sa-panel {
	width: min(400px, 100%) !important;
}

#pdp-sa-panel .pdp-sa-title,
#pdp-sa-panel .pdp-sa-option strong,
#pdp-sa-panel .pdp-sa-option span,
#pdp-sa-panel .pdp-sa-card h3,
#pdp-sa-panel .pdp-sa-card p,
#pdp-sa-panel .pdp-sa-lead,
#pdp-sa-panel .pdp-sa-note {
	letter-spacing: normal !important;
	word-spacing: normal !important;
}

#pdp-sa-panel,
#pdp-sa-panel * {
	box-sizing: border-box;
}

#pdp-sa-panel,
#pdp-sa-panel h1,
#pdp-sa-panel h2,
#pdp-sa-panel h3,
#pdp-sa-panel h4,
#pdp-sa-panel h5,
#pdp-sa-panel h6,
#pdp-sa-panel strong,
#pdp-sa-panel .pdp-sa-title,
#pdp-sa-panel .pdp-sa-card h3,
#pdp-sa-panel .pdp-sa-option strong,
#pdp-sa-panel .pdp-sa-brand strong {
	color: #fff !important;
}

#pdp-sa-panel p,
#pdp-sa-panel span,
#pdp-sa-panel .pdp-sa-lead,
#pdp-sa-panel .pdp-sa-note,
#pdp-sa-panel .pdp-sa-mini,
#pdp-sa-panel .pdp-sa-card p,
#pdp-sa-panel .pdp-sa-option span,
#pdp-sa-panel .pdp-sa-brand span {
	color: #d7d7d7 !important;
}

#pdp-sa-panel a,
#pdp-sa-panel button {
	font-family: inherit !important;
}


#pdp-sa-launcher,
#pdp-sa-prompt button,
#pdp-sa-panel button,
#pdp-sa-panel a {
	pointer-events: auto !important;
	touch-action: manipulation !important;
}












/* Keep the close control visible while the content scrolls, including short phones. */
.pdp-sa-header { flex: 0 0 auto; flex-wrap: wrap; padding-top: max(12px, env(safe-area-inset-top)); }
.pdp-sa-header-actions { margin-left: auto; flex-shrink: 0; }
#pdp-sa-panel .pdp-sa-header button { min-height: 48px; min-width: 48px; padding: 10px 12px; }
#pdp-sa-panel #pdp-sa-close { background: #383838; color: #fff; font-weight: 700; }
#pdp-sa-body { min-height: 0; overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
 #pdp-sa-panel { width: 100% !important; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
 .pdp-sa-header { padding-left: 12px; padding-right: 12px; gap: 8px; }
 .pdp-sa-brand strong { font-size: 15px; }
 .pdp-sa-title { font-size: 21px !important; line-height: 1.3 !important; }
}
@media (prefers-reduced-motion: reduce) {
 #pdp-sa-panel, #pdp-sa-overlay, .pdp-sa-option { transition: none; }
}
