.wcsc-wrap {
	max-width: 760px;
}

.wcsc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.wcsc-header h2 {
	margin: 0;
}

.wcsc-back {
	display: block;
	margin-bottom: 8px;
	text-decoration: none;
	font-size: 0.9em;
}

.wcsc-chat-meta {
	margin: 4px 0 0;
	color: #666;
	font-size: 0.9em;
}

.wcsc-new-ticket-form {
	background: #f8f8f8;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.wcsc-field {
	margin-bottom: 12px;
}

.wcsc-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.wcsc-field input[type="text"],
.wcsc-field select,
.wcsc-field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wcsc-form-error {
	color: #c0392b;
	font-size: 0.9em;
}

.wcsc-empty {
	color: #666;
}

.wcsc-ticket-table td,
.wcsc-ticket-table th {
	vertical-align: middle;
}

.wcsc-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	background: #eee;
	color: #444;
}

.wcsc-status--open {
	background: #fdf0d5;
	color: #8a5a00;
}

.wcsc-status--answered {
	background: #dff3e3;
	color: #237a3f;
}

.wcsc-status--closed {
	background: #eee;
	color: #666;
}

/* Navigation: Tab einfärben + Zahl-Badge, solange ungelesene Antworten vorliegen. */

.woocommerce-MyAccount-navigation-link.wcsc-nav-has-unread a {
	color: #c0392b;
	font-weight: 700;
}

.wcsc-nav-badge {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 6px;
	border-radius: 999px;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	vertical-align: middle;
}

/* Dashboard-Hinweisbox */

.wcsc-dashboard-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fdf0ee;
	border: 1px solid #f1c6c0;
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 24px;
}

.wcsc-dashboard-notice__icon {
	font-size: 20px;
	line-height: 1;
}

.wcsc-dashboard-notice__title {
	margin: 0 0 8px;
	font-weight: 600;
	color: #8a2f24;
}

.wcsc-dashboard-notice__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcsc-dashboard-notice__list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 0;
}

.wcsc-dashboard-notice__count {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

@keyframes wcsc-pulse {
	0%, 100% { transform: scale( 1 ); }
	50% { transform: scale( 1.15 ); }
}

.wcsc-nav-badge,
.wcsc-dashboard-notice__icon {
	animation: wcsc-pulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.wcsc-nav-badge,
	.wcsc-dashboard-notice__icon {
		animation: none;
	}
}

/* Chat */

.wcsc-chat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 480px;
	overflow-y: auto;
	padding: 16px;
	background: #fafafa;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	margin-bottom: 12px;
}

.wcsc-msg {
	display: flex;
	max-width: 80%;
}

.wcsc-msg--customer {
	align-self: flex-end;
	justify-content: flex-end;
}

.wcsc-msg--admin {
	align-self: flex-start;
}

.wcsc-msg__bubble {
	padding: 8px 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e2e2e2;
}

.wcsc-msg--customer .wcsc-msg__bubble {
	background: #2c6ecb;
	color: #fff;
	border-color: #2c6ecb;
}

.wcsc-msg__text {
	white-space: pre-wrap;
	word-break: break-word;
}

.wcsc-msg__meta {
	margin-top: 4px;
	font-size: 0.75em;
	opacity: 0.7;
}

.wcsc-reply-form {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

.wcsc-reply-form textarea {
	flex: 1;
	resize: vertical;
}

@media (max-width: 600px) {
	.wcsc-msg {
		max-width: 95%;
	}
	.wcsc-reply-form {
		flex-direction: column;
		align-items: stretch;
	}
}
