.ppa-reply-form {
	display: block;
	width: 100%;
}

.ppa-reply-shell {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 6px 8px;
	border: 1px solid #d0d5dd;
	border-radius: 14px;
	background: #fff;
	box-sizing: border-box;
}

.ppa-reply-shell:focus-within {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ppa-reply-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	flex-shrink: 0;
	height: 36px;
	padding: 0 2px 0 6px;
	border: 0;
	border-inline-end: 1px solid #e5e7eb;
	background: transparent;
}

.ppa-reply-tool,
.ppa-reply-color {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #334155;
	cursor: pointer;
	line-height: 1;
}

.ppa-reply-tool .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
	display: block;
}

.ppa-reply-tool:hover,
.ppa-reply-color:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.ppa-reply-tool:focus-visible,
.ppa-reply-color:focus-within {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.ppa-reply-color {
	position: relative;
}

.ppa-reply-color-swatch {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	border: 2px solid #334155;
	background: #1d2327;
	box-sizing: border-box;
}

.ppa-reply-color-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	border: 0;
	padding: 0;
}

.ppa-reply-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 36px;
	max-height: 140px;
	overflow-x: hidden;
	overflow-y: auto;
	overflow-wrap: break-word;
	word-break: break-word;
	padding: 6px 4px;
	font-size: 13px;
	line-height: 24px;
	color: #0f172a;
	-webkit-text-fill-color: #0f172a;
	text-align: start;
	outline: none;
}

.ppa-reply-input:empty::before {
	content: attr(data-placeholder);
	color: #475569;
	pointer-events: none;
}

.ppa-reply-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	height: 36px;
}

.ppa-reply-form .ppa-attach-btn,
.ppa-reply-shell .ppa-attach-btn {
	position: static;
	inset: auto;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background: #fff;
	color: #334155;
	cursor: pointer;
	box-sizing: border-box;
}

.ppa-reply-form .ppa-attach-btn:hover,
.ppa-reply-shell .ppa-attach-btn:hover {
	border-color: #2271b1;
	color: #2271b1;
}

.ppa-reply-form .ppa-attach-btn input,
.ppa-reply-shell .ppa-attach-btn input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ppa-reply-form .ppa-attach-btn .dashicons,
.ppa-reply-shell .ppa-attach-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
}

.ppa-reply-form .ppa-btn-send,
.ppa-reply-form #ppa-inbox-send,
.ppa-reply-shell .ppa-btn-send,
.ppa-reply-shell #ppa-inbox-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	min-width: 80px;
	margin: 0;
	padding: 0 14px;
	border-radius: 10px;
	line-height: 1;
	box-sizing: border-box;
}

.ppa-inbox-composer .ppa-reply-form,
.ppa-inbox-reply-row {
	width: 100%;
}

.ppa-inbox-composer-hint {
	text-align: start;
}

@media (max-width: 782px) {
	.ppa-reply-shell {
		flex-wrap: wrap;
		align-items: stretch;
	}

	.ppa-reply-toolbar {
		order: -1;
		width: 100%;
		justify-content: flex-start;
		border-inline-end: 0;
		border-bottom: 1px solid #e5e7eb;
		padding: 0 0 6px;
		height: 32px;
	}

	.ppa-reply-input {
		min-width: 60%;
	}
}

.ppa-quiet-menu {
	position: fixed;
	z-index: 1000001;
	min-width: 240px;
	max-width: 280px;
	padding: 10px 12px;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(28, 25, 23, 0.16);
	color: #1c1917;
	font-size: 13px;
	line-height: 1.5;
	text-align: right;
}

.ppa-quiet-menu label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-weight: 600;
}

.ppa-quiet-menu input {
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 3px 0 0;
	flex: 0 0 16px;
}

.ppa-quiet-menu p {
	margin: 6px 0 0;
	color: #78716c;
	font-size: 12px;
}

.ppa-quiet-send.is-quiet {
	box-shadow: inset 0 0 0 2px #c2410c;
}

.ppa-quiet-tag {
	display: inline-block;
	margin-inline-start: 6px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff7ed;
	color: #9a3412;
	font-size: 11px;
	line-height: 18px;
}

@media (prefers-reduced-motion: reduce) {
	.ppa-reply-shell,
	.ppa-reply-form .ppa-attach-btn,
	.ppa-reply-tool {
		transition: none;
	}
}
