/* ============================================
   Comments Section
   ============================================ */

.fca-comments-section .wp-block-comments {
	max-width: 100%;
}

.fca-comments-section .wp-block-comments-title {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast-2);
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
}

.fca-comments-section .wp-block-comment-template {
	margin-bottom: var(--wp--preset--spacing--40);
	list-style: none;
	padding: 0;
}

.fca-comments-section .wp-block-avatar img {
	border-radius: var(--fca-radius-circle);
}

.fca-comments-section .wp-block-comment-author-name {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.fca-comments-section .wp-block-comment-author-name a {
	color: inherit;
	text-decoration: none;
}

.fca-comments-section .wp-block-comment-date {
	color: var(--wp--preset--color--contrast-2);
}

.fca-comments-section .wp-block-comment-content {
	margin-top: var(--wp--preset--spacing--20);
	line-height: 1.6;
}

.fca-comments-section .wp-block-comment-content p {
	margin: 0 0 1em 0;
}

.fca-comments-section .wp-block-comment-reply-link a,
.fca-comments-section .wp-block-comment-reply-link a:visited {
	color: var(--wp--preset--color--accent-2);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.875rem;
}

.fca-comments-section .wp-block-comment-reply-link a:hover {
	text-decoration: underline;
	color: var(--wp--preset--color--accent-3);
}

/* Cancel reply link */
.fca-comments-section .comment-reply-title #cancel-comment-reply-link {
	color: var(--wp--preset--color--accent-3);
	font-size: 0.875rem;
}

/* Comment Form */
.fca-comments-section .comment-respond {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--contrast-3);
}

.fca-comments-section .comment-reply-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.fca-comments-section .comment-reply-title small {
	font-size: 0.875rem;
	font-weight: 500;
}

.fca-comments-section .comment-reply-title small a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	transition: color 0.2s ease;
}

.fca-comments-section .comment-reply-title small a:hover {
	color: var(--wp--preset--color--contrast);
}

/* Comment notes */
.fca-comments-section .comment-notes {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	margin-bottom: 1.5rem;
}

.fca-comments-section .comment-notes .required {
	color: #ef4444;
}

/* Form fields grid layout */
.fca-comments-section .comment-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Name and Email side by side */
.fca-comments-section .comment-form-author,
.fca-comments-section .comment-form-email {
	display: inline-block;
	width: calc(50% - 0.5rem);
	margin-bottom: 1rem;
	vertical-align: top;
}

.fca-comments-section .comment-form-author {
	margin-right: 1rem;
}

@media (max-width: 640px) {
	.fca-comments-section .comment-form-author,
	.fca-comments-section .comment-form-email {
		display: block;
		width: 100%;
		margin-right: 0;
	}
}

.fca-comments-section .comment-form-url,
.fca-comments-section .comment-form-comment {
	margin-bottom: 1rem;
}

/* Labels */
.fca-comments-section .comment-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--contrast);
}

.fca-comments-section .comment-form label .required {
	color: #ef4444;
	margin-left: 0.125rem;
}

/* Inputs and Textarea */
.fca-comments-section .comment-form input[type="text"],
.fca-comments-section .comment-form input[type="email"],
.fca-comments-section .comment-form input[type="url"],
.fca-comments-section .comment-form textarea {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 2px solid var(--wp--preset--color--contrast-3);
	border-radius: var(--fca-radius-lg);
	font-size: 1rem;
	font-family: inherit;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fca-comments-section .comment-form input::placeholder,
.fca-comments-section .comment-form textarea::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 0.7;
}

.fca-comments-section .comment-form input[type="text"]:hover,
.fca-comments-section .comment-form input[type="email"]:hover,
.fca-comments-section .comment-form input[type="url"]:hover,
.fca-comments-section .comment-form textarea:hover {
	border-color: var(--wp--preset--color--contrast-2);
}

.fca-comments-section .comment-form input[type="text"]:focus,
.fca-comments-section .comment-form input[type="email"]:focus,
.fca-comments-section .comment-form input[type="url"]:focus,
.fca-comments-section .comment-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.fca-comments-section .comment-form textarea {
	min-height: 160px;
	resize: vertical;
	line-height: 1.6;
}

/* Checkbox styling */
.fca-comments-section .comment-form-cookies-consent,
.fca-comments-section .stc-section {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 1.25rem 0;
	padding: 1rem;
	background: var(--wp--preset--color--base-2);
	border-radius: var(--fca-radius-lg);
}

.fca-comments-section .comment-form-cookies-consent input[type="checkbox"],
.fca-comments-section .stc-section input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	min-width: 1.25rem;
	border: 2px solid var(--wp--preset--color--contrast-3);
	border-radius: var(--fca-radius-sm);
	background: var(--wp--preset--color--base);
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 0.125rem;
}

.fca-comments-section .comment-form-cookies-consent input[type="checkbox"]:hover,
.fca-comments-section .stc-section input[type="checkbox"]:hover {
	border-color: var(--wp--preset--color--contrast-2);
}

.fca-comments-section .comment-form-cookies-consent input[type="checkbox"]:checked,
.fca-comments-section .stc-section input[type="checkbox"]:checked {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: 14px;
	background-position: center;
	background-repeat: no-repeat;
}

.fca-comments-section .comment-form-cookies-consent label,
.fca-comments-section .stc-section label {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.5;
	margin-bottom: 0;
	cursor: pointer;
}

/* Subscribe to Comments status message (already subscribed) */
.fca-comments-section .stc-section.stc-status {
	font-size: 0.875rem;
	color: var(--wp--preset--color--contrast-2);
}

.fca-comments-section .stc-section.stc-status a {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
}

.fca-comments-section .stc-section.stc-status a:hover {
	text-decoration: none;
}

/* Subscribe to Comments plugin - standalone checkboxes (Jetpack style) */
.fca-comments-section .comment-form > p:has(input[type="checkbox"]),
.fca-comments-section .comment-subscription-form {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 1.25rem 0;
	padding: 1rem;
	background: var(--wp--preset--color--base-2);
	border-radius: var(--fca-radius-lg);
}

.fca-comments-section .comment-form > p:has(input[type="checkbox"]) input[type="checkbox"],
.fca-comments-section .comment-subscription-form input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	min-width: 1.25rem;
	border: 2px solid var(--wp--preset--color--contrast-3);
	border-radius: var(--fca-radius-sm);
	background: var(--wp--preset--color--base);
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 0.125rem;
	flex-shrink: 0;
}

.fca-comments-section .comment-form > p:has(input[type="checkbox"]) input[type="checkbox"]:hover,
.fca-comments-section .comment-subscription-form input[type="checkbox"]:hover {
	border-color: var(--wp--preset--color--contrast-2);
}

.fca-comments-section .comment-form > p:has(input[type="checkbox"]) input[type="checkbox"]:checked,
.fca-comments-section .comment-subscription-form input[type="checkbox"]:checked {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: 14px;
	background-position: center;
	background-repeat: no-repeat;
}

.fca-comments-section .comment-form > p:has(input[type="checkbox"]) label,
.fca-comments-section .comment-subscription-form label {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.5;
	margin-bottom: 0;
	cursor: pointer;
}

/* Submit button */
.fca-comments-section .comment-form .form-submit {
	margin-top: 0.5rem;
}

.fca-comments-section .comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: none;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--fca-radius-lg);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.fca-comments-section .comment-form .submit:hover {
	background: var(--wp--preset--color--contrast-2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fca-comments-section .comment-form .submit:active {
	transform: translateY(1px);
	box-shadow: none;
}

.fca-comments-section .comment-form .submit:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Logged in as message */
.fca-comments-section .logged-in-as {
	margin-bottom: 1.25rem;
	padding: 1rem;
	background: var(--wp--preset--color--base-2);
	border-radius: var(--fca-radius-lg);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

.fca-comments-section .logged-in-as a {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration: none;
}

.fca-comments-section .logged-in-as a:hover {
	text-decoration: underline;
}

/* Nested comments */
.fca-comments-section .children {
	list-style: none;
	padding-left: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--30);
	border-left: 2px solid var(--wp--preset--color--contrast-3);
}

/* Comments pagination */
.fca-comments-section .wp-block-comments-pagination {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--contrast-3);
}

.fca-comments-section .wp-block-comments-pagination a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-weight: 500;
}

.fca-comments-section .wp-block-comments-pagination a:hover {
	text-decoration: underline;
}

/* Old post comments notice */
.fca-old-post-notice {
	background-color: var(--fca-alert-warning-bg);
	border: 1px solid var(--fca-alert-warning-border);
	border-radius: var(--fca-radius-md);
	padding: 1rem 1.25rem;
	margin-bottom: var(--wp--preset--spacing--30);
}

.fca-old-post-notice p {
	margin: 0;
	color: var(--fca-alert-warning-text);
	font-size: var(--wp--preset--font-size--small);
}

.fca-old-post-notice a {
	color: var(--fca-alert-warning-text);
	font-weight: 600;
	text-decoration: underline;
}

.fca-old-post-notice a:hover {
	text-decoration: none;
}

.fca-hp-field {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

