.does-chat {
	box-sizing: border-box;
	width: min(100%, 44rem);
	min-width: 0;
	display: grid;
	gap: 1rem;
}
.wp-block-post-content .is-layout-constrained > .does-chat {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}
.does-chat__log {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	max-height: 28rem;
	overflow-y: auto;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
}
.does-chat__msg {
	box-sizing: border-box;
	max-width: 85%;
	position: relative;
	padding: .65rem .9rem;
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	overflow-wrap: anywhere;
}
.does-chat__msg p { margin: 0; white-space: pre-wrap; }
.does-chat__msg--usuario { align-self: flex-end; background: var(--wp--preset--color--stone); }
.does-chat__msg--asistente { align-self: flex-start; border: 1px solid var(--wp--preset--color--line); }
.does-chat__msg--espera { color: var(--wp--preset--color--muted); }
.does-chat__form { display: grid; gap: .75rem; }
.does-chat__form label { font-size: .8125rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.does-chat__form textarea {
	box-sizing: border-box;
	width: 100%;
	font: inherit;
	font-size: 1rem;
	min-height: 48px;
	resize: vertical;
}
.does-chat.is-ocupada .does-chat__form :is(button, textarea) { opacity: .6; cursor: not-allowed; }
.does-chat__quien {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
@media (max-width: 639px) {
	.does-chat__form .wp-block-button__link { width: 100%; justify-content: center; }
}

.does-chat__nueva {
	margin-top: 1rem;
}

.does-chat__nueva[hidden] {
	display: none;
}
