#podushka-chat {
	position: relative;
	z-index: 9999;
}

#pc-bubble {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: #e8611a;
	box-shadow: 0 12px 28px rgba(232, 97, 26, 0.28);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#pc-bubble:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(232, 97, 26, 0.32);
}

#pc-bubble svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}

#pc-window {
	position: fixed;
	right: 20px;
	bottom: 82px;
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 9999;
}

#pc-window.open {
	display: flex;
}

#pc-header {
	background: linear-gradient(135deg, #e8611a 0%, #ff7a2f 100%);
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

#pc-header-title {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

#pc-header-sub {
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
	line-height: 1.2;
}

#pc-new {
	margin-left: auto;
	color: #fff;
	cursor: pointer;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 4px;
	transition: opacity 0.2s ease;
}

#pc-new:hover {
	opacity: 0.8;
}

#pc-new svg {
	width: 18px;
	height: 18px;
	fill: #fff;
}

#pc-close {
	margin-left: 0;
	color: #fff;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 4px 6px;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	transition: opacity 0.2s ease;
	font-family: inherit;
}

#pc-close:hover {
	opacity: 0.8;
}

#pc-messages {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 280px;
	overflow-y: auto;
	background: #fafafa;
}

.pc-msg {
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.5;
	word-break: break-word;
}

.pc-msg p {
	margin: 0;
}

.pc-msg p + p {
	margin-top: 6px;
}

.pc-msg ol,
.pc-msg ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.pc-msg li + li {
	margin-top: 4px;
}

.pc-msg a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pc-msg strong {
	font-weight: 700;
}

.pc-bot {
	background: #fff;
	border: 1px solid #e8e8e8;
	color: #333;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.pc-user {
	background: #e8611a;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.pc-product-links-list {
	margin: 0;
	padding-left: 16px;
	font-size: 12px;
	line-height: 1.6;
}

.pc-product-links-list li + li {
	margin-top: 2px;
}

.pc-carousel-wrapper {
	padding: 6px 4px 4px;
	width: 85%;
	max-width: 85%;
}

.pc-products-carousel {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pc-product-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	overflow: hidden;
}

.pc-product-img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.pc-product-info {
	padding: 6px 10px 8px;
}

.pc-product-name {
	font-size: 12px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
	margin-bottom: 4px;
}

.pc-prices {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
}

.pc-price {
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.pc-price-old {
	font-size: 11px;
	color: #999;
	text-decoration: line-through;
}

.pc-price-sale {
	font-size: 13px;
	font-weight: 700;
	color: #d0021b;
}

.pc-product-link {
	display: inline-block;
	padding: 4px 10px;
	background: #e8611a;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.pc-product-link:hover {
	opacity: 0.85;
}

.pc-typing-dots {
	display: flex;
	gap: 5px;
	align-items: center;
	height: 18px;
}

.pc-typing-dots span {
	width: 7px;
	height: 7px;
	background: #bbb;
	border-radius: 50%;
	animation: pc-dot-bounce 1.2s infinite ease-in-out;
}

.pc-typing-dots span:nth-child(1) { animation-delay: 0s; }
.pc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.pc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pc-dot-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30%            { transform: translateY(-6px); opacity: 1; }
}

#pc-input-row {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #eee;
	background: #fff;
}

#pc-input {
	flex: 1;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	padding: 7px 12px;
	font-size: 13px;
	outline: none;
	min-width: 0;
}

#pc-input:focus {
	border-color: #e8611a;
	box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.12);
}

#pc-send {
	width: 34px;
	height: 34px;
	background: #e8611a;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

#pc-send:hover {
	transform: translateY(-1px);
}

#pc-send:disabled {
	opacity: 0.75;
	cursor: wait;
	transform: none;
}

#pc-send svg {
	width: 14px;
	height: 14px;
	fill: #fff;
	margin-left: 2px;
}

@media (max-width: 480px) {
	#pc-window {
		right: 12px;
		left: 12px;
		bottom: 78px;
		width: auto;
		max-width: none;
	}

	#pc-bubble {
		right: 12px;
		bottom: 12px;
	}
}
