/* Podds Print — print assistant */
.ppp-assist, .ppp-assist-fab, .ppp-assist-inline {
	--pa-navy: #0f2740; --pa-blue: #1e73be; --pa-blue-d: #155a96; --pa-soft: #f4f7fa; --pa-line: #dfe5ec;
	--pa-ink: #17202b; --pa-muted: #5c6776; --pa-magenta: #e5007e;
	font-family: inherit; box-sizing: border-box;
}
.ppp-assist *, .ppp-assist-fab *, .ppp-assist-inline * { box-sizing: border-box; }

/* Floating button */
.ppp-assist-fab { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; background: var(--pa-navy); color: #fff; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; box-shadow: 0 10px 30px rgba(15,39,64,.28); transition: transform .15s, box-shadow .15s; }
.ppp-assist-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,39,64,.32); }
.ppp-assist-fab:focus-visible { outline: 3px solid var(--pa-blue); outline-offset: 3px; }
.ppp-assist-fab strong { color: #ffd200; font-weight: 600; }
.ppp-assist-fab-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #00a3e0 0 22%, transparent 23%), radial-gradient(circle at 70% 30%, #e5007e 0 22%, transparent 23%), radial-gradient(circle at 30% 70%, #ffd200 0 22%, transparent 23%), radial-gradient(circle at 70% 70%, #fff 0 22%, transparent 23%); background-color: rgba(255,255,255,.12); }
.ppp-assist-open .ppp-assist-fab { display: none; }

/* Panel */
.ppp-assist { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 410px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15,39,64,.28), 0 2px 6px rgba(15,39,64,.12); overflow: hidden; color: var(--pa-ink); font-size: 15px; }
.ppp-assist[hidden] { display: none; }
.ppp-assist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--pa-navy); color: #fff; }
.ppp-assist-head strong { display: block; font-size: 16px; }
.ppp-assist-head span { display: block; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.ppp-assist-x { background: rgba(255,255,255,.12) !important; border: 0 !important; color: #fff !important; width: 32px; height: 32px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; font-size: 20px !important; line-height: 1 !important; cursor: pointer; box-shadow: none !important; }
.ppp-assist-x:hover { background: rgba(255,255,255,.22) !important; }
.ppp-assist-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--pa-soft); scroll-behavior: smooth; }

.pa-msg { max-width: 88%; margin: 0 0 10px; padding: 10px 13px; border-radius: 14px; line-height: 1.5; font-size: 14.5px; white-space: normal; overflow-wrap: anywhere; }
.pa-msg p { margin: 0 0 6px; } .pa-msg p:last-child { margin: 0; }
.pa-msg ul { margin: 4px 0 6px; padding-left: 18px; } .pa-msg li { margin: 2px 0; }
.pa-bot { background: #fff; border: 1px solid var(--pa-line); border-bottom-left-radius: 4px; }
.pa-me { margin-left: auto; background: var(--pa-blue); color: #fff; border-bottom-right-radius: 4px; }
.pa-err { background: #fff4f4; border: 1px solid #f3c8c8; color: #8a1f1f; }
.pa-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.pa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b4; animation: pa-bounce 1.1s infinite ease-in-out; }
.pa-typing i:nth-child(2) { animation-delay: .15s; } .pa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pa-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.pa-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.pa-examples button { background: #fff !important; color: var(--pa-blue-d) !important; border: 1px solid #c9daea !important; border-radius: 999px !important; padding: 6px 12px !important; min-height: 0 !important; font: inherit !important; font-size: 13px !important; cursor: pointer; box-shadow: none !important; }
.pa-examples button:hover { border-color: var(--pa-blue) !important; background: #eef5fc !important; }

/* Product cards */
.pa-cards { margin: 0 0 12px; display: grid; gap: 8px; }
.pa-card { display: grid; grid-template-columns: 72px 1fr; gap: 10px; background: #fff; border: 1px solid var(--pa-line); border-radius: 12px; padding: 10px; }
.pa-card img, .pa-card .pa-ph { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; background: #e8eef5; }
.pa-card h4 { margin: 0; font-size: 14.5px; line-height: 1.3; color: var(--pa-ink); }
.pa-why { font-size: 12.5px; color: var(--pa-muted); margin: 2px 0 4px; font-style: italic; }
.pa-spec { font-size: 12px; color: var(--pa-muted); line-height: 1.45; }
.pa-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--pa-line); }
.pa-price { white-space: nowrap; font-weight: 700; font-size: 16px; color: var(--pa-ink); }
.pa-price small { font-weight: 400; font-size: 11.5px; color: var(--pa-muted); margin-left: 3px; }
.pa-actions { display: flex; align-items: center; gap: 10px; }
.pa-actions a { font-size: 12.5px; color: var(--pa-blue-d); }
.pa-btn { text-decoration: none !important; display: inline-block; background: var(--pa-blue) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 8px 14px !important; min-height: 0 !important; font: inherit !important; font-size: 13px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; white-space: nowrap; }
.pa-btn:hover { background: var(--pa-blue-d) !important; }
.pa-btn[disabled] { opacity: .6; cursor: default; }
.pa-btn.is-done { background: #1a7f37 !important; }
.pa-all { display: flex; justify-content: flex-end; }
.pa-all .pa-btn { background: var(--pa-navy) !important; }
.pa-added { font-size: 13px; background: #eaf7ee; border: 1px solid #bfe3c9; color: #14532d; border-radius: 10px; padding: 9px 12px; margin: 0 0 10px; }
.pa-added a { color: #14532d; font-weight: 600; }
.pa-quote { background: #fff; border: 1px solid var(--pa-line); border-left: 4px solid var(--pa-magenta); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 13.5px; }
.pa-quote p { margin: 0 0 8px; color: var(--pa-muted); }
.pa-quote .pa-actions { flex-wrap: wrap; }

/* Input */
.ppp-assist-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--pa-line); background: #fff; }
.ppp-assist-form textarea { flex: 1; resize: none; max-height: 120px; min-height: 42px; padding: 10px 12px; border: 1px solid var(--pa-line); border-radius: 12px; font: inherit; font-size: 15px; line-height: 1.4; color: var(--pa-ink); background: #fff; }
.ppp-assist-form textarea:focus { outline: 2px solid var(--pa-blue); outline-offset: 0; border-color: transparent; }
.ppp-assist-form button { width: 42px; height: 42px; min-height: 0 !important; flex: none; border: 0 !important; border-radius: 50% !important; background: var(--pa-blue) !important; color: #fff !important; font-size: 16px !important; padding: 0 !important; cursor: pointer; box-shadow: none !important; }
.ppp-assist-form button[disabled] { opacity: .5; }
.ppp-assist-note { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 11px; line-height: 1.4; color: #8a939d; }

/* Inline box from the [podds_assistant] shortcode */
.ppp-assist-inline { background: var(--pa-navy); color: #fff; border-radius: 16px; padding: 26px 28px; margin: 24px 0; }
.ppp-assist-inline h3 { color: #fff; margin: 0 0 6px; font-size: 1.35rem; }
.ppp-assist-inline p { margin: 0 0 14px; opacity: .85; }
.ppp-assist-inline form { display: flex; gap: 8px; }
.ppp-assist-inline input { flex: 1; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; }
.ppp-assist-inline button { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: #ffd200; color: var(--pa-navy); font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 960px) {
	.ppp-assist-fab { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; }
	.single-product .ppp-assist-fab, .woocommerce-cart .ppp-assist-fab, .woocommerce-checkout .ppp-assist-fab, .nav-open .ppp-assist-fab { bottom: calc(14px + env(safe-area-inset-bottom)); }
	.nav-open .ppp-assist-fab { display: none; }
}
@media (max-width: 600px) {
	.ppp-assist-fab { padding: 10px; }
	.ppp-assist-fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ppp-assist-fab-dot { width: 34px; height: 34px; }
	.ppp-assist { inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border-radius: 0; }
	.ppp-assist-inline form { flex-direction: column; }
}
