.pp-theme { --pp-primary: #a8b58b; --pp-bg: #ffffff; --pp-text: #0f172a; --pp-accent: #6f7f52; }
.pp-chatbot { position: fixed; right: 16px; bottom: 96px; z-index: 999999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif; }
.pp-button { background: var(--pp-primary); color: #ffffff; border: none; border-radius: 999px; width: 56px; height: 56px; box-shadow: 0 6px 20px rgba(0,0,0,.15); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s ease, box-shadow .15s ease; }
.pp-button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.pp-button svg { width: 30px; height: 30px; display: block; }
.pp-panel { display: none; width: 360px; height: 520px; background: var(--pp-bg); color: var(--pp-text); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.2); overflow: hidden; margin-bottom: 16px; position: relative; padding-bottom: 72px; box-sizing: border-box; }
.pp-header { padding: 12px 16px; background: var(--pp-primary); color: #fff; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pp-header-actions { display: flex; align-items: center; gap: 8px; }
.pp-quiz-btn { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.pp-quiz-btn:hover { background: rgba(255,255,255,0.3); }
.pp-close { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.pp-body { padding: 12px; height: 400px; overflow: auto; background: #f7fafc; }
.pp-input { display: flex; gap: 8px; padding: 8px; border-top: 1px solid #e5e7eb; position: absolute; left: 0; right: 0; bottom: 0; background: var(--pp-bg); }
.pp-input input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid #cbd5e1; }
.pp-input button { background: var(--pp-primary); color: white; border: none; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.pp-msg { margin: 8px 0; }
.pp-msg.user { text-align: right; }
.pp-bubble { display: inline-block; padding: 10px 14px; border-radius: 14px; max-width: 80%; line-height: 1.5; font-size: 15.5px; }
.pp-bubble.user { background: var(--pp-accent); color: white; border-bottom-right-radius: 6px; }
.pp-bubble.bot { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-bottom-left-radius: 6px; }

.pp-contact-overlay { display: none; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.25); backdrop-filter: blur(2px); align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.pp-contact-overlay.visible { display: flex; }
.pp-contact-card { position: relative; width: 100%; max-width: 280px; background: var(--pp-bg); color: var(--pp-text); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.24); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.pp-contact-card h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--pp-text); }
.pp-contact-sub { margin: 0; font-size: 13px; color: var(--pp-text); opacity: 0.75; }
.pp-contact-field { display: flex; flex-direction: column; gap: 4px; }
.pp-contact-field label { font-size: 12px; font-weight: 600; color: var(--pp-text); opacity: 0.85; }
.pp-contact-card input { border: 1px solid rgba(15, 23, 42, 0.18); border-radius: 8px; padding: 9px 10px; font-size: 14px; color: var(--pp-text); background: #fff; }
.pp-contact-card input:focus { border-color: var(--pp-primary); outline: none; box-shadow: 0 0 0 2px rgba(168, 181, 139, 0.25); }
.pp-contact-error { margin: 0; min-height: 16px; font-size: 12px; color: #d64545; }
.pp-contact-start { background: var(--pp-primary); color: #fff; border: none; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.pp-contact-start:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.pp-contact-skip { position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: var(--pp-accent); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }

/* Readability tweaks */
.pp-bubble.bot p { margin: 0 0 8px; }
.pp-bubble.bot ul { margin: 8px 0; padding-left: 20px; }
.pp-bubble.bot li { margin: 4px 0; }
.pp-bubble a { color: #075985; text-decoration: none; border-bottom: 1px solid #93c5fd; }
.pp-bubble a:hover { background: #e0f2fe; }
.pp-bubble a.pp-link { color: #075985; border-bottom-color: #60a5fa; }
