/**
 * Doodosoft Click to Chat — front-end widget styles.
 * Dynamic values (accent color, label size) come from CSS variables set on
 * #doodo-widget via wp_add_inline_style().
 *
 * @package Doodosoft_Click_To_Chat
 */

.doodo-widget {
	position: fixed;
	bottom: 24px;
	z-index: 2147483647;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	line-height: 1.4;
	--doodo-color: #25D366;
	--doodo-label-size: 15px;
}
.doodo-widget.doodo-right { right: 24px; align-items: flex-end; }
.doodo-widget.doodo-left  { left: 24px;  align-items: flex-start; }

/* Popup */
.doodo-popup {
	display: none;
	width: 340px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0,0,0,.20), 0 4px 16px rgba(0,0,0,.08);
	margin-bottom: 16px;
	overflow: visible;
}

/* Popup header */
.doodo-pop-head {
	background: var(--doodo-color);
	border-radius: 18px 18px 0 0;
	padding: 18px 16px 22px;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.doodo-pop-head-icon {
	width: 38px; height: 38px;
	background: rgba(255,255,255,.22);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.doodo-pop-head-text { flex: 1; min-width: 0; }
.doodo-pop-title { color: #fff; font-size: 19px; font-weight: 800; line-height: 1.2; }
.doodo-pop-sub { color: rgba(255,255,255,.88); font-size: 13px; margin-top: 5px; line-height: 1.4; }

.doodo-close-btn {
	position: absolute; top: -14px; right: -14px;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--doodo-color);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.22);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	padding: 0; z-index: 10;
}

/* FAQ chips */
.doodo-chips { padding: 8px 14px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.doodo-faq-chip {
	cursor: pointer;
	background: #f1f3f5;
	border: 1.5px solid #e3e3e3;
	color: #444;
	border-radius: 16px;
	padding: 7px 13px;
	font-size: 12.5px;
	font-family: inherit;
	transition: all .15s;
}
.doodo-faq-chip.is-active {
	background: var(--doodo-color);
	border-color: var(--doodo-color);
	color: #fff;
}

/* Agent cards */
.doodo-agents {
	padding: 12px 12px 6px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 340px;
	overflow-y: auto;
}
.doodo-agent-link {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 12px 14px;
	border-radius: 13px;
	text-decoration: none;
	background: #f8f9fa;
	border: 1.5px solid #eee;
	transition: all .18s;
	color: inherit;
}
.doodo-agent-link:hover {
	background: #eafaf1;
	border-color: #a8dfbe;
	transform: translateX(3px);
}
.doodo-ava { position: relative; flex-shrink: 0; width: 52px; height: 52px; }
.doodo-ava-circle {
	width: 52px; height: 52px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #e5e5e5;
	background: #eafaf1;
	display: flex; align-items: center; justify-content: center;
	font-size: 21px; font-weight: 700;
	color: var(--doodo-color);
}
.doodo-ava-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.doodo-ava-badge {
	position: absolute; bottom: -2px; right: -2px;
	width: 19px; height: 19px;
	background: var(--doodo-color);
	border-radius: 50%;
	border: 2.5px solid #fff;
	display: flex; align-items: center; justify-content: center;
}
.doodo-ag-info { flex: 1; min-width: 0; }
.doodo-ag-role { font-size: 11.5px; color: #999; font-weight: 500; margin-bottom: 2px; }
.doodo-ag-name { font-size: 15px; font-weight: 700; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doodo-ag-status { font-size: 11px; margin-top: 3px; display: flex; align-items: center; gap: 5px; color: #888; }
.doodo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.doodo-dot.is-on  { background: #22c55e; }
.doodo-dot.is-off { background: #9ca3af; }
.doodo-ag-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doodo-ag-arrow { flex-shrink: 0; color: var(--doodo-color); opacity: .75; }

.doodo-pop-footer { font-size: 11.5px; color: #bbb; text-align: center; padding: 10px 16px 14px; }

/* Lead form screen */
#doodo-screen-form { display: none; }
.doodo-form { padding: 14px; }
.doodo-back-btn {
	background: none; border: none; cursor: pointer;
	color: var(--doodo-color);
	font-size: 13px; font-weight: 600;
	padding: 0 0 10px;
	display: inline-flex; align-items: center; gap: 5px;
	font-family: inherit;
}
.doodo-form-title { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 4px; }
.doodo-form-agent { font-size: 12px; color: #888; margin-bottom: 12px; }
.doodo-input {
	width: 100%; box-sizing: border-box;
	padding: 11px 12px; margin-bottom: 8px;
	border: 1.5px solid #e3e3e3; border-radius: 10px;
	font-size: 14px; font-family: inherit;
}
.doodo-gdpr {
	display: flex; align-items: flex-start; gap: 8px;
	font-size: 12px; color: #666;
	margin: 4px 2px 10px; cursor: pointer; line-height: 1.4;
}
.doodo-gdpr input { margin-top: 2px; flex-shrink: 0; }
.doodo-err { display: none; color: #d63638; font-size: 12px; margin: 2px 2px 8px; }
.doodo-submit-btn {
	width: 100%; box-sizing: border-box;
	border: none; cursor: pointer;
	background: var(--doodo-color);
	color: #fff; font-weight: 700; font-size: 15px; font-family: inherit;
	padding: 13px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* FAB launcher */
.doodo-fab {
	border: none; cursor: pointer;
	background: var(--doodo-color);
	box-shadow: 0 4px 20px rgba(0,0,0,.28);
	transition: transform .2s, box-shadow .2s;
}
.doodo-fab:hover { transform: scale(1.07); box-shadow: 0 6px 26px rgba(0,0,0,.34); }
.doodo-fab-circle {
	width: 60px; height: 60px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.doodo-fab-pill {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 13px 20px 13px 15px;
	border-radius: 50px;
	color: #fff; font-weight: 700;
	font-size: var(--doodo-label-size);
	font-family: inherit;
	white-space: nowrap;
}
