/* ParkZapp Guided Assistant - styles
 * Everything is namespaced under .pza- so it cannot clash with the theme.
 * Colours are the only thing you usually need to change.
 */

.pza-launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: #0d6efd;
	color: #fff;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
	transition: transform .15s ease, background .15s ease;
}
.pza-launcher:hover {
	background: #0b5ed7;
	transform: translateY(-2px);
}
.pza-launcher:focus-visible {
	outline: 3px solid #ffc107;
	outline-offset: 2px;
}
.pza-launcher[hidden] {
	display: none;
}

.pza-panel {
	position: fixed;
	right: 20px;
	bottom: 90px;
	z-index: 99991;
	display: flex;
	flex-direction: column;
	width: 350px;
	max-width: calc(100vw - 40px);
	height: 480px;
	max-height: calc(100vh - 130px);
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 14px;
	box-shadow: 0 14px 44px rgba(0, 0, 0, .24);
	overflow: hidden;
	font-family: inherit;
	font-size: 14px;
	color: #1c1e21;
}
.pza-panel[hidden] {
	display: none;
}

.pza-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: #0d6efd;
	color: #fff;
}
.pza-head-title {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
}
.pza-head-note {
	font-size: 11px;
	opacity: .85;
	margin-top: 2px;
}
.pza-close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 6px;
}
.pza-close:hover {
	background: rgba(255, 255, 255, .2);
}

.pza-log {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px;
	background: #f6f7f9;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pza-msg {
	max-width: 88%;
	padding: 9px 12px;
	border-radius: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.pza-bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e2e4e8;
	border-bottom-left-radius: 4px;
}
.pza-me {
	align-self: flex-end;
	background: #0d6efd;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.pza-q {
	font-weight: 700;
	display: block;
	margin-bottom: 3px;
}

.pza-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 14px;
	background: #fff;
	border-top: 1px solid #e6e6e6;
}
.pza-chip {
	border: 1px solid #0d6efd;
	background: #fff;
	color: #0d6efd;
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 12px;
	cursor: pointer;
}
.pza-chip:hover {
	background: #0d6efd;
	color: #fff;
}

.pza-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 14px 10px;
	background: #fff;
}
.pza-actions a {
	display: inline-block;
	background: #198754;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12px;
}
.pza-actions a:hover {
	background: #146c43;
}

.pza-form {
	display: flex;
	gap: 8px;
	padding: 10px 14px;
	background: #fff;
	border-top: 1px solid #e6e6e6;
}
.pza-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid #c9ccd1;
	border-radius: 8px;
	font-size: 14px;
}
.pza-input:focus {
	outline: 2px solid #0d6efd;
	outline-offset: -1px;
}
.pza-send {
	border: 0;
	background: #0d6efd;
	color: #fff;
	border-radius: 8px;
	padding: 9px 15px;
	font-size: 14px;
	cursor: pointer;
}
.pza-send:hover {
	background: #0b5ed7;
}

.pza-foot {
	padding: 0 14px 10px;
	background: #fff;
	font-size: 11px;
	color: #6c757d;
}

@media (max-width: 480px) {
	.pza-panel {
		right: 10px;
		left: 10px;
		bottom: 80px;
		width: auto;
		height: 70vh;
	}
	.pza-launcher {
		right: 14px;
		bottom: 14px;
	}
}