/* にぎりっ娘。レシピチャット（トップページ右下） */
.ngchat-fab, .ngchat-panel {
	--ngc-ink: #2c1a0e;
	--ngc-ink2: #7a6656;
	--ngc-paper: #fffdf9;
	--ngc-bg: #fbf3ea;
	--ngc-pink: #e8795e;
	--ngc-line: #eadfd3;
	font-family: inherit;
}
/* 下の広告（画面下に出る広告）に重ならないよう、少し上に置く */
.ngchat-fab {
	position: fixed; right: 16px; bottom: 96px; z-index: 9990;
	display: flex; align-items: center; gap: 6px;
	min-height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 999px;
	background: var(--ngc-pink); color: #fff; font-size: 14px; font-weight: 700;
	box-shadow: 0 6px 18px rgba(44, 26, 14, .22); cursor: pointer;
}
.ngchat-fab[hidden] { display: none; }
.ngchat-fab-icon { font-size: 22px; line-height: 1; }
.ngchat-panel {
	position: fixed; right: 16px; bottom: 96px; z-index: 9991;
	display: flex; flex-direction: column;
	width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px));
	border-radius: 20px; background: var(--ngc-paper); color: var(--ngc-ink);
	box-shadow: 0 12px 40px rgba(44, 26, 14, .28); overflow: hidden;
}
.ngchat-panel[hidden] { display: none; }
.ngchat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; background: var(--ngc-pink); color: #fff; }
.ngchat-title { margin: 0 !important; font-size: 14px; font-weight: 700; }
.ngchat-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ngchat-log { flex: 1 1 auto; overflow-y: auto; padding: 14px; background: var(--ngc-bg); }
.ngchat-msg { display: flex; margin: 0 0 10px; }
.ngchat-msg p { margin: 0 !important; max-width: 85%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.ngchat-msg.is-bot p { background: #fff; border-top-left-radius: 4px; }
.ngchat-msg.is-user { justify-content: flex-end; }
.ngchat-msg.is-user p { background: var(--ngc-pink); color: #fff; border-top-right-radius: 4px; }
.ngchat-msg.is-wait p { color: var(--ngc-ink2); }
.ngchat-cards { display: grid; gap: 8px; margin: 0 0 12px; }
.ngchat-card { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--ngc-line); border-radius: 14px; background: #fff; color: var(--ngc-ink); text-decoration: none; }
.ngchat-card:hover { border-color: var(--ngc-pink); }
.ngchat-card img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.ngchat-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngchat-card-title { font-size: 13px; font-weight: 700; line-height: 1.5; }
.ngchat-card-reason { font-size: 12px; color: var(--ngc-ink2); line-height: 1.5; }
.ngchat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--ngc-line); background: #fff; }
.ngchat-input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--ngc-line); border-radius: 999px; font-size: 16px; }
.ngchat-send { flex: 0 0 auto; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ngc-ink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.ngchat-send:disabled { opacity: .5; }
.ngchat-preview { margin: 0 !important; padding: 4px; background: #fff3c4; font-size: 11px; text-align: center; }
@media print { .ngchat-fab, .ngchat-panel { display: none !important; } }
