/* Plugbase help tab "New to electric?" (site-wide). Self-contained: does not rely on plugbase.css. */
.pbhelp { --h-ink: #10202B; --h-text: #1E2D37; --h-muted: #55636D; --h-line: #E4E8EB; --h-green: #0B7A4B; --h-tint: #DCEFE3; font-family: var(--pb-font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif); color: var(--h-ink); }
.pbhelp[hidden], .pbhelp [hidden] { display: none !important; }
.pbhelp *, .pbhelp *::before, .pbhelp *::after { box-sizing: border-box; }
.pbhelp button { font-family: inherit; cursor: pointer; margin: 0; }
.pbhelp button:focus-visible, .pbhelp a:focus-visible { outline: 3px solid var(--h-green); outline-offset: 2px; }

/* Edge tab: slim brand-green pill on the right edge, close button tucked on its corner */
.pbhelp-tabwrap { position: fixed; right: 0; top: 50%; z-index: 9990; transform: translate(0, -50%); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.pbhelp:not(.is-in) .pbhelp-tabwrap { transform: translate(110%, -50%); opacity: 0; }
.pbhelp .pbhelp-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; background: var(--h-green); color: #fff; border: 0; border-radius: 12px 0 0 12px; padding: 12px 8px 14px; box-shadow: -3px 6px 18px rgba(11, 122, 75, .25); line-height: 1; transition: background .15s, padding .15s; }
.pbhelp .pbhelp-tab:hover, .pbhelp .pbhelp-tab:focus { background: #08603B; color: #fff; padding-right: 11px; }
.pbhelp-tab__q { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--h-green); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pbhelp-tab__t { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: 13px; letter-spacing: .02em; white-space: nowrap; color: #fff; }
.pbhelp .pbhelp-x { position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 1px solid var(--h-line); background: #fff; color: var(--h-muted); font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 6px rgba(16, 32, 43, .15); opacity: .95; }
.pbhelp .pbhelp-x:hover, .pbhelp .pbhelp-x:focus { background: #fff; color: var(--h-ink); border-color: var(--h-ink); opacity: 1; }

/* Greeting (once per visit) */
.pbhelp-hello { position: fixed; z-index: 9991; right: 56px; top: 50%; transform: translateY(-50%); width: 290px; background: #fff; color: var(--h-ink); border: 1px solid var(--h-line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 12px 36px rgba(16, 32, 43, .16); animation: pbhelp-pop .35s cubic-bezier(.2,.8,.2,1); }
.pbhelp-hello::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--h-line); border-top: 1px solid var(--h-line); transform: translateY(-50%) rotate(45deg); }
.pbhelp-hello p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--h-text); }
.pbhelp-hello p b { display: block; font-size: 16px; color: var(--h-ink); margin-bottom: 2px; }
.pbhelp-hello__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pbhelp .pbhelp-yes { background: var(--h-green); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.pbhelp .pbhelp-yes:hover, .pbhelp .pbhelp-yes:focus { background: #08603B; color: #fff; }
.pbhelp .pbhelp-no { background: #fff; color: var(--h-ink); border: 1px solid var(--h-line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.pbhelp .pbhelp-no:hover, .pbhelp .pbhelp-no:focus { background: #fff; color: var(--h-ink); border-color: var(--h-ink); }
@keyframes pbhelp-pop { from { opacity: 0; transform: translate(12px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

/* Panel */
.pbhelp-scrim { position: fixed; inset: 0; z-index: 99990; background: rgba(16, 32, 43, .45); animation: pbhelp-fade .2s; }
.pbhelp-panel { position: fixed; z-index: 99991; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; color: var(--h-ink); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(16, 32, 43, .2); animation: pbhelp-slide .3s cubic-bezier(.2,.8,.2,1); outline: none; }
.pbhelp-panel__head { position: relative; padding: 26px 64px 16px 26px; border-bottom: 1px solid var(--h-line); }
.pbhelp-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--h-green); }
.pbhelp-panel h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--h-ink); }
.pbhelp-close { position: absolute; top: 20px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--h-line); background: #fff; color: var(--h-ink); font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.pbhelp-close:hover { border-color: var(--h-ink); }
.pbhelp-panel__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 20px 26px 24px; }
.pbhelp-panel h3 { margin: 26px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); }
.pbhelp .pbhelp-start { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--h-ink); color: #fff; border-radius: 16px; padding: 18px 18px 18px 20px; text-decoration: none; }
.pbhelp .pbhelp-start:hover { background: #1B3342; color: #fff; }
.pbhelp-start span { display: flex; flex-direction: column; gap: 3px; }
.pbhelp-start b { font-size: 17px; line-height: 1.3; color: #fff; }
.pbhelp-start small { font-size: 14px; line-height: 1.4; color: #C9D3D9; }
.pbhelp-start svg { width: 22px; height: 22px; flex: 0 0 auto; }
.pbhelp-hints { margin: 0; border-top: 1px solid var(--h-line); }
.pbhelp-hints > div { padding: 12px 0; border-bottom: 1px solid var(--h-line); }
.pbhelp-hints dt { font-weight: 800; font-size: 16px; color: var(--h-ink); margin: 0 0 3px; }
.pbhelp-hints dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--h-text); }
.pbhelp-hints dd b { color: var(--h-ink); }
.pbhelp-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pbhelp .pbhelp-quick a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border: 1.5px solid var(--h-line); border-radius: 12px; text-decoration: none; color: var(--h-ink); font-weight: 700; font-size: 16px; line-height: 1.3; }
.pbhelp .pbhelp-quick a:hover { border-color: var(--h-ink); }
.pbhelp-quick svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--h-green); }
.pbhelp-panel__foot { border-top: 1px solid var(--h-line); padding: 12px 26px calc(12px + env(safe-area-inset-bottom)); text-align: center; }
.pbhelp-panel__foot span { color: #9AA6AE; }
.pbhelp-never { background: none; border: 0; padding: 6px; color: var(--h-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.pbhelp-never:hover { color: var(--h-ink); }
@keyframes pbhelp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pbhelp-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pbhelp-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.pbhelp ul.pbhelp-quick, .pbhelp dl.pbhelp-hints { padding-left: 0 !important; margin-left: 0 !important; }
/* Keep theme (Astra) button colours out of the help tab */
.pbhelp .pbhelp-never, .pbhelp .pbhelp-never:hover, .pbhelp .pbhelp-never:focus { background: none; box-shadow: none; border: 0; }
.pbhelp .pbhelp-never:hover, .pbhelp .pbhelp-never:focus { color: var(--h-ink); }
.pbhelp .pbhelp-close:hover, .pbhelp .pbhelp-close:focus { background: #fff; color: var(--h-ink); }

/* Phones: slim "?" tab low on the edge, tucks away while you scroll down; panel is a bottom sheet. */
@media (max-width: 760px) {
	.pbhelp-tabwrap { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); transform: none; }
	.pbhelp:not(.is-in) .pbhelp-tabwrap, .pbhelp.is-tucked .pbhelp-tabwrap, .pbhelp.is-hello .pbhelp-tabwrap { transform: translateX(110%); opacity: 0; }
	.pbhelp .pbhelp-tab, .pbhelp .pbhelp-tab:hover, .pbhelp .pbhelp-tab:focus { flex-direction: row; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px 0 0 999px; }
	.pbhelp-tab__t { writing-mode: horizontal-tb; transform: none; font-size: 14px; }
	.pbhelp-tab__q { width: 22px; height: 22px; font-size: 14px; }
	.pbhelp .pbhelp-x { top: -10px; left: -10px; width: 26px; height: 26px; font-size: 16px; }
	.pbhelp-hello { top: auto; right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; transform: none; padding: 14px 16px; animation: pbhelp-up .3s cubic-bezier(.2,.8,.2,1); }
	.pbhelp-hello::after { display: none; }
	.pbhelp-hello p { font-size: 15px; margin-bottom: 10px; }
	.pbhelp-panel { top: auto; left: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 20px 20px 0 0; animation: pbhelp-up .3s cubic-bezier(.2,.8,.2,1); }
	.pbhelp-panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #CBD3D8; }
	.pbhelp-panel__head { padding: 24px 60px 14px 20px; }
	.pbhelp-panel h2 { font-size: 22px; }
	.pbhelp-close { top: 16px; right: 14px; }
	.pbhelp-panel__body { padding: 16px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.pbhelp *, .pbhelp-tabwrap { animation: none !important; transition: none !important; }
}
@media print { .pbhelp { display: none !important; } }
