/**
 * WP Support Agent Pro - handoff form inside the chat widget.
 * Uses the widget's own tokens so it inherits the site's chosen look.
 */

.wpsap-handoff-trigger {
	display: block;
	width: 100%;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wpsa-primary);
	cursor: pointer;
	background: var(--wpsa-primary-soft);
	border: 0;
	border-top: 1px solid var(--wpsa-border);
}

.wpsap-handoff-trigger:hover { filter: brightness(.97); }

.wpsap-handoff {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border-top: 1px solid var(--wpsa-border);
}

.wpsap-handoff__title {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--wpsa-text);
}

.wpsap-handoff__blurb {
	margin: -2px 0 2px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--wpsa-muted);
}

.wpsap-handoff__field {
	width: 100%;
	padding: 8px 11px;
	font: inherit;
	font-size: 14px;
	color: var(--wpsa-text);
	background: var(--wpsa-surface);
	border: 1px solid var(--wpsa-border);
	border-radius: 9px;
	resize: vertical;
}

.wpsap-handoff__field:focus {
	border-color: var(--wpsa-primary);
	outline: none;
}

.wpsap-handoff__actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.wpsap-handoff__cancel {
	font-size: 13px;
	color: var(--wpsa-muted);
	cursor: pointer;
	background: none;
	border: 0;
}

.wpsap-handoff__note {
	margin: 0;
	font-size: 12.5px;
	color: #b91c1c;
}

.wpsap-handoff--done {
	font-size: 13.5px;
	color: var(--wpsa-muted);
	text-align: center;
}

/* Contact details above the handoff form */

.wpsap-contact {
	padding: 10px 12px;
	margin-bottom: 2px;
	background: var(--wpsa-primary-soft);
	border-radius: 10px;
}

.wpsap-contact__row {
	margin: 0 0 3px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wpsa-text);
}

.wpsap-contact__row:last-child { margin-bottom: 0; }

.wpsap-contact__row--muted {
	font-size: 12.5px;
	color: var(--wpsa-muted);
}

.wpsap-contact__phone {
	font-weight: 600;
	color: var(--wpsa-primary);
	text-decoration: none;
}

.wpsap-contact__phone:hover { text-decoration: underline; }

.wpsap-contact__state {
	display: inline-block;
	padding: 1px 7px;
	margin-right: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #166534;
	background: #dcfce7;
	border-radius: 999px;
}

.wpsap-contact__state.is-closed {
	color: #92400e;
	background: #fef3c7;
}
