@font-face {
	font-family: "Vazirmatn";
	src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Vazirmatn";
	src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.wcce-wrap {
	max-width: 100%;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.wcce-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
}

.wcce-title-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.wcce-title-icon svg {
	width: 20px;
	height: 20px;
}

.wcce-empty {
	color: #999999;
	margin: 0 0 20px;
}

/* ---------- Comment card ---------- */

.wcce-comment {
	display: flex;
	gap: 14px;
	padding: 18px;
	border: 1px solid #ececec;
	background-color: #ffffff;
	border-radius: 10px;
	margin-bottom: 14px;
	box-sizing: border-box;
}

.wcce-replies {
	margin-inline-start: 48px;
	border-inline-start: 2px solid #f0f0f0;
	padding-inline-start: 16px;
}

.wcce-replies .wcce-comment {
	margin-bottom: 12px;
}

.wcce-replies .wcce-comment.wcce-hidden {
	display: none;
}

/* ---------- Avatar ---------- */

.wcce-comment-avatar {
	flex-shrink: 0;
}

.wcce-avatar-img,
.wcce-avatar-default {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.wcce-reply .wcce-avatar-img,
.wcce-reply .wcce-avatar-default {
	width: 36px;
	height: 36px;
}

.wcce-avatar-default {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ececec;
	color: #b5b5b5;
	padding: 9px;
	box-sizing: border-box;
}

.wcce-avatar-default svg {
	width: 100%;
	height: 100%;
}

/* ---------- Body ---------- */

.wcce-comment-body {
	flex: 1;
	min-width: 0;
}

.wcce-comment-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.wcce-comment-author {
	font-weight: 700;
	font-size: 15px;
}

.wcce-comment-date {
	font-size: 12px;
}

.wcce-comment-text {
	font-size: 14px;
	line-height: 1.9;
}

.wcce-comment-text p {
	margin: 0 0 10px;
}

.wcce-comment-text p:last-child {
	margin-bottom: 0;
}

.wcce-comment-actions {
	margin-top: 10px;
}

.wcce-reply-btn,
.wcce-show-more,
.wcce-cancel-reply {
	background-color: transparent;
	border: none;
	padding: 4px 8px;
	margin: 0 -8px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wcce-reply-btn:hover,
.wcce-show-more:hover,
.wcce-cancel-reply:hover {
	background-color: transparent;
}

/* ---------- Show more ---------- */

.wcce-show-more {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 16px 48px;
}

.wcce-show-more-icon {
	display: inline-flex;
}

/* ---------- Login required ---------- */

.wcce-login-required {
	padding: 24px;
	border: 1px dashed #dddddd;
	border-radius: 10px;
	text-align: center;
	margin-top: 20px;
}

.wcce-login-required p {
	margin: 0 0 14px;
}

/* ---------- Form ---------- */

.wcce-form-wrap {
	margin-top: 24px;
}

.wcce-form-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	margin: 0 0 12px;
}

.wcce-field-row {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.wcce-field {
	flex: 1;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcce-field-full {
	flex-basis: 100%;
}

.wcce-field label {
	font-size: 13px;
	font-weight: 600;
}

.wcce-required {
	color: #e04b4b;
}

.wcce-field input,
.wcce-comment-textarea {
	border: 1px solid #dddddd;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s ease;
	width: 100%;
	box-sizing: border-box;
}

.wcce-comment-textarea {
	resize: vertical;
	min-height: 130px;
}

.wcce-submit-btn,
.wcce-login-btn {
	display: inline-block;
	background-color: #d3b581;
	color: #ffffff;
	border: 1px solid #d3b581;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	margin-top: 6px;
	font-family: inherit;
}

.wcce-submit-btn:hover,
.wcce-login-btn:hover {
	opacity: 0.9;
}
