/* WW Чат — плавающая кнопка «Написать нам» */
.wwchat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	font-family: var(--wp--preset--font-family--open-sans, Arial, sans-serif);
}
.wwchat__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--red, #BA0716);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 22px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(186,7,22,0.35);
	transition: transform 0.15s, background 0.2s;
}
.wwchat__toggle:hover {
	background: var(--wp--preset--color--red-dark, #8C0511);
	transform: translateY(-2px);
}
.wwchat__panel {
	position: absolute;
	right: 0;
	bottom: 66px;
	width: 300px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	overflow: hidden;
	border: 1px solid #e5e5e5;
}
.wwchat__header {
	background: #0b29a1;
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
}
.wwchat__close {
	background: none;
	border: none;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}
.wwchat__form {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wwchat__hint {
	margin: 0 0 4px;
	font-size: 0.8rem;
	color: #666;
}
.wwchat__form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #333;
}
.wwchat__form input,
.wwchat__form textarea {
	font-family: inherit;
	font-size: 0.9rem;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	resize: vertical;
}
.wwchat__submit {
	background: var(--wp--preset--color--red, #BA0716);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}
.wwchat__submit:hover { background: var(--wp--preset--color--red-dark, #8C0511); }
.wwchat__submit:disabled { opacity: 0.6; cursor: default; }
.wwchat__status {
	margin: 0;
	font-size: 0.85rem;
	min-height: 1.2em;
}
.wwchat__status.is-success { color: #157a3e; }
.wwchat__status.is-error { color: #ba0716; }

@media (max-width: 480px) {
	.wwchat { right: 12px; bottom: 12px; }
	.wwchat__toggle span { display: none; }
	.wwchat__panel { right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
	.wwchat__toggle { transition: none; }
}
