/* PressTalk Frontend Styles */

.presstalk-root, .presstalk-root * {
	box-sizing: border-box;
}

.presstalk-root {
	position: fixed;
	z-index: 999999;
	bottom: 0;
	right: 0;
}

/* 런처 아이콘 */
.presstalk-launcher {
	position: fixed;
	width: 60px;
	height: 60px;
	border: none;
	cursor: pointer;
	background: var(--presstalk-theme, #3a7bfd);
	border-radius: var(--presstalk-icon-radius, 50%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	transition: transform .2s ease, box-shadow .2s ease;
	z-index: 999999;
	padding: 0;
	overflow: hidden;
}
.presstalk-launcher:hover {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.presstalk-launcher img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--presstalk-icon-radius, 50%);
}

/* 인삿말 툴팁 */
.presstalk-greeting {
	position: fixed;
	bottom: 96px;
	right: 24px;
	max-width: 260px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0,0,0,0.18);
	padding: 14px 18px 16px;
	z-index: 999998;
	animation: presstalk-pop .25s ease;
}
.presstalk-greeting:after {
	content: "";
	position: absolute;
	bottom: -8px;
	right: 28px;
	width: 16px;
	height: 16px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: 4px 4px 8px rgba(0,0,0,0.04);
}
.presstalk-greeting-title {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
	color: #222;
}
.presstalk-greeting-message {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
.presstalk-greeting-close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: none;
	background: transparent;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 4px;
}

@keyframes presstalk-pop {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* 대화창 */
.presstalk-window {
	position: fixed;
	bottom: 100px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 16px 48px rgba(0,0,0,0.22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 999999;
	animation: presstalk-pop .22s ease;
}

.presstalk-header {
	background: var(--presstalk-theme, #3a7bfd);
	color: #fff;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}
.presstalk-header-title {
	font-size: 15px;
	font-weight: 600;
}
.presstalk-close {
	border: none;
	background: rgba(255,255,255,0.15);
	color: #fff;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}
.presstalk-close:hover { background: rgba(255,255,255,0.28); }

.presstalk-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 14px 16px 0;
	overflow-y: auto;
}

.presstalk-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #e2e4ea;
	border-radius: 12px;
	padding: 10px 14px;
	background: #f7f8fa;
	flex-shrink: 0;
	color: #888;
}
.presstalk-input-wrap input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	line-height: 1.6;
	color: #222;
}

.presstalk-recent {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.presstalk-recent-chip {
	font-size: 12px;
	line-height: 1.6;
	padding: 5px 10px;
	background: #eef1f7;
	border-radius: 999px;
	cursor: pointer;
	color: #444;
	border: none;
}
.presstalk-recent-chip:hover { background: #dfe4ee; }
.presstalk-recent-clear {
	font-size: 11px;
	color: #999;
	border: none;
	background: transparent;
	cursor: pointer;
	text-decoration: underline;
}

.presstalk-results {
	margin-top: 12px;
	flex: 1;
	padding-bottom: 12px;
}

.presstalk-result-item {
	display: flex;
	gap: 10px;
	padding: 12px 4px;
	border-bottom: 1px solid #eef0f4;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}
.presstalk-result-item:hover { background: #f7f9fc; }
.presstalk-result-thumb {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: #eee;
}
.presstalk-result-text { flex: 1; min-width: 0; }
.presstalk-result-title {
	font-size: 14px;
	line-height: 1.6;
	font-weight: 600;
	color: #222;
	margin: 0 0 2px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.presstalk-result-excerpt {
	font-size: 13px;
	line-height: 1.6;
	color: #777;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.presstalk-result-meta {
	font-size: 11px;
	color: #aaa;
	margin-top: 4px;
}

.presstalk-empty, .presstalk-loading {
	text-align: center;
	padding: 30px 10px;
	color: #999;
	font-size: 14px;
	line-height: 1.6;
}

.presstalk-footer {
	text-align: center;
	font-size: 11px;
	color: #aaa;
	padding: 8px 0 10px;
	flex-shrink: 0;
}
.presstalk-footer a { color: #aaa; text-decoration: none; }
.presstalk-footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
	.presstalk-window {
		width: calc(100vw - 24px);
		height: calc(100vh - 120px);
		bottom: 88px;
	}
	.presstalk-greeting {
		max-width: 220px;
		bottom: 86px;
	}
}
