/* Now What nav tool widget - Spot design pass 2026-08-10, matches approved mockup
   (EPCD 26-39 DNW Navigation Widget_APPROVED.pdf). Debug-only for now.
   Original (pre-Spot, unstyled shell) backed up at backups/2026-08-10-nav-tool-spot-design/nav-tool-widget.css.original */

#nav-tool-widget {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	font-family: inherit;
}

#nav-tool-bubble {
	position: relative;
	display: flex;
	align-items: center;
	border: none;
	border-radius: 999px;
	height: 64px;
	padding: 5px 5px 5px 64px;
	max-width: 64px;
	box-sizing: border-box;
	overflow: visible;
	background: #1c62bc;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	opacity: 0;
	transform: translateY(12px) scale(0.85);
	transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.15s ease,
		max-width 0.5s ease, padding-right 0.5s ease;
	pointer-events: none;
}

/* Entrance: fades/scales in as a plain circle (avatar only) */
#nav-tool-bubble.nav-tool-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* Brief attention-getting wiggle once it's appeared, before it opens into the pill */
@keyframes nav-tool-shake-kf {
	0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
	15% { transform: translateY(0) scale(1) rotate(-8deg); }
	30% { transform: translateY(0) scale(1) rotate(8deg); }
	45% { transform: translateY(0) scale(1) rotate(-6deg); }
	60% { transform: translateY(0) scale(1) rotate(6deg); }
	75% { transform: translateY(0) scale(1) rotate(-3deg); }
	90% { transform: translateY(0) scale(1) rotate(3deg); }
}

#nav-tool-bubble.nav-tool-shake {
	animation: nav-tool-shake-kf 0.6s ease-in-out;
}

/* Opens from a circle into the full pill, revealing the text */
#nav-tool-bubble.nav-tool-expanded {
	max-width: 320px;
	padding-right: 22px;
}

#nav-tool-bubble:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.32);
}

#nav-tool-bubble-avatar-wrap {
	position: absolute;
	left: 5px;
	bottom: 5px;
	width: 54px;
	height: 54px;
	z-index: 1;
	pointer-events: none;
}

#nav-tool-bubble-avatar-wrap img {
	position: absolute;
	left: 0;
	top: 0;
	width: 54px;
	height: auto;
	display: block;
}

#nav-tool-bubble-text {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.35s ease 0.15s;
}

#nav-tool-bubble.nav-tool-expanded #nav-tool-bubble-text {
	opacity: 1;
}

#nav-tool-panel {
	position: absolute;
	right: 0;
	bottom: 84px;
	width: 320px;
	max-width: calc(100vw - 32px);
	max-height: 70vh;
	background: #fff;
	border: 3px solid #e70405;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: translateY(16px) scale(0.96);
	transform-origin: bottom right;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

#nav-tool-panel.nav-tool-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

#nav-tool-panel-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	background: #f4f5f7;
	border: none;
	border-radius: 50%;
	color: #1c0087;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

#nav-tool-panel-body {
	padding: 16px;
	padding-top: 20px;
	overflow-y: auto;
	flex: 1;
}

#nav-tool-panel-intro {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
}

#nav-tool-panel-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex: none;
	object-fit: cover;
}

#nav-tool-panel-prompt {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #333;
	padding-top: 4px;
	padding-right: 26px;
}

.nav-tool-button-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nav-tool-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	text-align: left;
	background: #5b84bf;
	border: none;
	border-radius: 8px;
	padding: 13px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
	text-decoration: none;
}

.nav-tool-btn:hover {
	background: #1c62bc;
	color: #fff;
}

.nav-tool-more-buttons {
	display: none;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.nav-tool-more-buttons.nav-tool-expanded {
	display: flex;
}

#nav-tool-more-toggle {
	display: block;
	width: 100%;
	background: none;
	border: none;
	color: #1c62bc;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 10px 0 0;
	text-align: center;
}

#nav-tool-more-toggle:hover {
	text-decoration: underline;
}

#nav-tool-form-view {
	display: none;
}

#nav-tool-form-view.nav-tool-active {
	display: block;
}

.nav-tool-form-field {
	margin-bottom: 10px;
}

.nav-tool-form-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #444;
	margin-bottom: 4px;
}

.nav-tool-form-field input[type="text"],
.nav-tool-form-field input[type="email"],
.nav-tool-form-field input[type="tel"],
.nav-tool-form-field select,
.nav-tool-form-field textarea {
	width: 100%;
	border: 1px solid #dcdfe4;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	box-sizing: border-box;
}

.nav-tool-form-field textarea {
	resize: vertical;
	min-height: 60px;
}

#nav-tool-form-back {
	background: none;
	border: none;
	color: #1c62bc;
	font-size: 13px;
	cursor: pointer;
	padding: 0 0 12px;
	text-decoration: underline;
}

#nav-tool-form-submit {
	width: 100%;
	background: #e70405;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

#nav-tool-form-submit:hover {
	background: #c40304;
}

#nav-tool-form-message {
	margin-top: 10px;
	font-size: 13px;
}

#nav-tool-form-message.success {
	color: #1e7e34;
}

#nav-tool-form-message.danger {
	color: #c0392b;
}

@media (max-width: 480px) {
	#nav-tool-widget {
		right: 12px;
		bottom: 12px;
	}
	#nav-tool-panel {
		width: calc(100vw - 24px);
	}
}
