/* Department Live Chat - Estilos de los iframes (formulario y conversación) */
html, body { margin: 0; padding: 0; height: 100%; }
body.dlc-frame-body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: #1d2327;
	background: var(--dlc-panel-bg, #fff);
	box-sizing: border-box;
}
*, *::before, *::after { box-sizing: border-box; }

.dlc-frame { height: 100%; display: flex; flex-direction: column; padding: 14px 16px; }
.dlc-frame--thread { padding: 0; }
.dlc-frame__form { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
/* Nada se encoge: si el contenido no cabe, el formulario hace scroll en vez de aplastar los campos. */
.dlc-frame__form > * { flex-shrink: 0; }
.dlc-frame__form label { font-size: 12px; font-weight: 600; margin: 10px 0 4px; display: block; }
.dlc-frame__form label small { font-weight: 400; color: #8c8f94; }
.dlc-frame input[type="text"], .dlc-frame input[type="email"], .dlc-frame textarea {
	width: 100%; padding: 9px 12px; border: 1px solid #dcdcde; border-radius: 8px;
	font: inherit; font-size: 13px; background: #fff; color: #1d2327;
}
/* Mismo tamaño para todos los campos. */
.dlc-frame input[type="text"], .dlc-frame input[type="email"] { height: 38px; }
/* El mensaje empieza con la misma altura que los demás campos y se puede estirar hacia abajo. */
.dlc-frame textarea { resize: vertical; height: 38px; min-height: 38px; max-height: 220px; line-height: 1.35; overflow-y: auto; }

.dlc-frame__dept { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 14px; }
.dlc-frame__dept-icon { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }

.dlc-frame__btn {
	margin-top: 14px; padding: 10px 14px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--dlc-button-bg, #2271b1); color: var(--dlc-button-text, #fff);
	font: inherit; font-size: 13px; font-weight: 600;
}
.dlc-frame__error { background: #fcf0f1; color: #b32d2e; padding: 8px 10px; border-radius: 6px; margin: 8px 0; }
.dlc-frame__notice { color: #646970; text-align: center; margin: 10px 16px; }
.dlc-frame__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hilo */
.dlc-thread { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.dlc-bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; }
.dlc-bubble--visitor { align-self: flex-end; background: var(--dlc-visitor-bubble-bg, #2271b1); color: var(--dlc-visitor-bubble-text, #fff); border-bottom-right-radius: 4px; }
.dlc-bubble--agent { align-self: flex-start; background: var(--dlc-agent-bubble-bg, #f0f0f1); color: var(--dlc-agent-bubble-text, #1d2327); border-bottom-left-radius: 4px; }
.dlc-bubble__name { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; margin-bottom: 2px; }
.dlc-bubble__time { display: block; font-size: 10px; opacity: 0.6; margin-top: 3px; text-align: right; }

.dlc-reply { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; align-items: flex-end; }
/* Misma apariencia y altura que el resto de campos; se puede arrastrar para agrandarla y crece al escribir. */
.dlc-reply textarea {
	flex: 1; min-width: 0; height: 38px; min-height: 38px; max-height: 160px;
	border-radius: 8px; resize: vertical; line-height: 1.35; overflow-y: auto;
}
.dlc-reply .dlc-frame__btn { margin: 0; height: 38px; flex: 0 0 auto; }
.dlc-frame--thread > .dlc-frame__btn { margin: 10px 16px 14px; }
