/* Puhdas+ Support Bot — widget styles */
#ppsb-root, #ppsb-root * { box-sizing: border-box; }

.ppsb-launcher {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none;
	border-radius: 999px;
	background: var(--ppsb-accent, #0d9488);
	color: #fff;
	font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(0,0,0,.22);
	transition: transform .15s ease, box-shadow .15s ease;
}
.ppsb-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.ppsb-launcher svg { width: 20px; height: 20px; }
.ppsb-launcher.ppsb-hidden { display: none; }

.ppsb-panel {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	width: 380px;
	max-width: calc(100vw - 24px);
	height: 600px;
	max-height: calc(100vh - 40px);
	display: none;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0,0,0,.28);
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1d1d1f;
}
.ppsb-panel.ppsb-open { display: flex; }

.ppsb-header {
	background: var(--ppsb-accent, #0d9488);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.ppsb-header h3 { margin: 0; font-size: 15px; font-weight: 700; }
.ppsb-header .ppsb-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.ppsb-close {
	background: transparent; border: none; color: #fff; cursor: pointer;
	font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.ppsb-close:hover { background: rgba(255,255,255,.15); }

.ppsb-messages {
	flex: 1; overflow-y: auto; padding: 16px; background: #f6f7f8;
	display: flex; flex-direction: column; gap: 10px;
}
.ppsb-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.ppsb-msg a { color: var(--ppsb-accent, #0d9488); }
.ppsb-bot { align-self: flex-start; background: #fff; border: 1px solid #e6e6e6; border-bottom-left-radius: 4px; }
.ppsb-user { align-self: flex-end; background: var(--ppsb-accent, #0d9488); color: #fff; border-bottom-right-radius: 4px; }
.ppsb-user a { color: #fff; text-decoration: underline; }

.ppsb-typing { display: inline-flex; gap: 4px; align-items: center; }
.ppsb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b5b5b5; animation: ppsb-bounce 1.2s infinite; }
.ppsb-typing span:nth-child(2) { animation-delay: .2s; }
.ppsb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ppsb-bounce { 0%,60%,100% { transform: translateY(0); opacity:.5 } 30% { transform: translateY(-5px); opacity:1 } }

.ppsb-footer { border-top: 1px solid #ececec; background: #fff; }
.ppsb-inputrow { display: flex; align-items: flex-end; gap: 8px; padding: 10px; }
.ppsb-inputrow textarea {
	flex: 1; resize: none; border: 1px solid #d8d8d8; border-radius: 10px;
	padding: 10px 12px; font: inherit; max-height: 110px; outline: none;
}
.ppsb-inputrow textarea:focus { border-color: var(--ppsb-accent, #0d9488); }
.ppsb-sendbtn {
	border: none; background: var(--ppsb-accent, #0d9488); color: #fff;
	border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 600;
}
.ppsb-sendbtn:disabled { opacity: .5; cursor: default; }

.ppsb-toolbar { display: flex; gap: 8px; padding: 0 10px 8px; flex-wrap: wrap; }
.ppsb-chip {
	border: 1px solid #d8d8d8; background: #fff; border-radius: 999px;
	padding: 5px 11px; font-size: 12px; cursor: pointer; color: #444;
}
.ppsb-chip:hover { border-color: var(--ppsb-accent, #0d9488); color: var(--ppsb-accent, #0d9488); }

.ppsb-disclaimer { font-size: 10.5px; color: #8a8a8a; text-align: center; padding: 0 12px 8px; }

/* Contact form */
.ppsb-contact { padding: 14px; display: none; flex-direction: column; gap: 8px; background: #fff; overflow-y: auto; }
.ppsb-contact.ppsb-open { display: flex; }
.ppsb-contact label { font-size: 12px; font-weight: 600; color: #444; }
.ppsb-contact input, .ppsb-contact textarea {
	border: 1px solid #d8d8d8; border-radius: 9px; padding: 9px 11px; font: inherit; width: 100%;
}
.ppsb-contact textarea { resize: vertical; min-height: 90px; }
.ppsb-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.ppsb-note { font-size: 12px; padding: 10px; border-radius: 9px; }
.ppsb-note.ok { background: #e7f5ec; color: #1d6b3b; }
.ppsb-note.err { background: #fdecec; color: #a3261f; }
