/*
 * dv-comments: the section, the form, the comments and the photos in the plugin's own
 * markup and styles (D28, D29). Inputs and .button keep the site's own styles.
 */
.dvc-comments.dvc-loading .dvc-thread {
	opacity: 0.6;
	transition: opacity 0.2s;
}

/* The comment opened from a #comment-N link. */
.dvc-comment.dvc-target > .dvc-comment-body .dvc-comment-bubble {
	box-shadow: 0 0 0 2px var(--accent-current, #f0a04b);
	transition: box-shadow 0.3s;
}

/* Section and form (D29). Inputs keep the site's own field styles. */
.dvc-comments-title {
	margin: 0 0 1rem;
	color: rgb(32 67 78);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.75rem;
}

/* The form keeps a readable measure on wide screens; a reply follows the thread. Spacing
   steps: 6px label to field, 12px between fields, 20px between groups. */
.dvc-comments-body > .dvc-form-wrapper {
	max-width: 720px;
	margin-bottom: 2rem;
}

/* The form moved under a comment to answer it: in line with the comment's text. */
.dvc-comment .dvc-form-wrapper {
	margin: 1rem 0 2rem calc(var(--avatar-w, 40px) + 0.6rem);
}

.dvc-message {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.4;
}

.dvc-message.is-error {
	color: #b3261e;
}

.dvc-message[hidden],
.dvc-form-user[hidden],
.dvc-form-signin[hidden],
.dvc-subscribe[hidden],
.dvc-form-note[hidden],
.dvc-rating-once[hidden] {
	display: none;
}

.dvc-form-user {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 15px;
}

.dvc-form-signin {
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.4;
}

.dvc-login-button {
	padding: 0;
	border: 0;
	background: none;
	color: rgb(32 67 78);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.dvc-login-button:hover {
	color: var(--main-color);
}

.dvc-form-user strong {
	color: rgb(32 67 78);
	font-weight: 600;
}

.dvc-form-user-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.dvc-form-guest {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 12px;
	margin: 0 0 20px;
}

@media (min-width: 600px) {
	.dvc-form-guest {
		grid-template-columns: 1fr 1fr;
	}
}

.dvc-form-guest[hidden],
.dvc-comments .dvc-reply-to[hidden],
.dvc-comments .dvc-quote-preview[hidden] {
	display: none;
}

.dvc-field {
	position: relative;
	min-width: 0;
}

/* Floating label: the name sits in the empty field like a placeholder and moves up,
   smaller, once the field has focus or a value, so it never disappears. The input's
   placeholder is a single space only to make :placeholder-shown work. */
.dvc-comments .dvc-field .dvc-input {
	height: 52px;
	padding: 20px 14px 4px;
	font-size: 16px;
	line-height: 1.5;
}

.dvc-field-label {
	position: absolute;
	top: 0;
	left: 15px;
	right: 15px;
	overflow: hidden;
	color: #646b77;
	font-size: 16px;
	font-weight: 400;
	line-height: 52px;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.15s ease, color 0.15s ease;
}

.dvc-field .dvc-input:focus + .dvc-field-label,
.dvc-field .dvc-input:not(:placeholder-shown) + .dvc-field-label {
	transform: translateY(-7px) scale(0.78);
}

/* Autofill apart: a selector list with an unknown pseudo-class would drop the rule. */
.dvc-field .dvc-input:autofill + .dvc-field-label {
	transform: translateY(-7px) scale(0.78);
}

.dvc-field .dvc-input:-webkit-autofill + .dvc-field-label {
	transform: translateY(-7px) scale(0.78);
}

.dvc-field .dvc-input:focus + .dvc-field-label {
	color: #0b7fa0;
}

.dvc-field .dvc-input[aria-invalid="true"] + .dvc-field-label {
	color: #b3261e;
}

.dvc-required {
	color: #b3261e;
}

.dvc-input {
	display: block;
	width: 100%;
}

/* The site's fields are grey on white with a faint focus: inside the form the focus and
   an error are drawn plainly, and the hint text is dark enough to read. */
.dvc-comments .dvc-input {
	color: #1f2937;
	font-weight: 400;
}

.dvc-comments .dvc-input::placeholder {
	color: #646b77;
	opacity: 1;
}

.dvc-comments .dvc-input:focus,
.dvc-comments .dvc-input:focus-visible {
	border-color: #0b7fa0;
	outline: 2px solid #0b7fa0;
	outline-offset: -1px;
}

.dvc-comments .dvc-input[aria-invalid="true"] {
	border-color: #b3261e;
	outline: 2px solid #b3261e;
	outline-offset: -1px;
}

.dvc-textarea {
	height: 8rem;
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 1.35;
}

/* Rating stars in the form (D36): radios 5..1 laid out right to left, so a checked or
   hovered star lights itself and the stars before it. */
.dvc-rating-input {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.dvc-rating-input[hidden] {
	display: none;
}

.dvc-rating-legend {
	margin-bottom: 2px;
	padding: 0;
	color: rgb(32 67 78);
	font-size: 15px;
	font-weight: 600;
}

.dvc-rating-once {
	display: block;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.35;
}

.dvc-rating-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 0;
	margin-left: -6px;
}

.dvc-rating-radio,
.dvc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* An empty star is an outline dark enough to be seen (3:1); a chosen one is filled. The
   label is a 44px target. */
.dvc-rating-star {
	display: inline-flex;
	padding: 6px;
	color: #8a939c;
	cursor: pointer;
}

.dvc-rating-star .dvc-icon {
	width: 32px;
	height: 32px;
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
	transition: fill 0.15s, color 0.15s;
}

.dvc-rating-radio:checked ~ .dvc-rating-star,
.dvc-rating-star:hover,
.dvc-rating-star:hover ~ .dvc-rating-star {
	color: #e8961c;
}

.dvc-rating-radio:checked ~ .dvc-rating-star .dvc-icon,
.dvc-rating-star:hover .dvc-icon,
.dvc-rating-star:hover ~ .dvc-rating-star .dvc-icon {
	fill: #f5a623;
}

.dvc-rating-radio:focus-visible + .dvc-rating-star {
	outline: 2px solid var(--color-dark-blue);
	border-radius: 4px;
}

/* The author's rating next to the date. */
.dvc-comment-rating {
	display: inline-flex;
	flex-shrink: 0;
	align-self: center;
	color: var(--color-blue-gray-light);
}

.dvc-comment-rating .dvc-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.dvc-comment-rating .is-on {
	color: #f5a623;
}

/* @name suggestions under the reply field (D35). */
.dvc-mention-list {
	margin: calc(-20px + 2px) 0 20px;
	padding: 4px 0;
	border: 1px solid var(--color-blue-gray-light);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	list-style: none;
}

.dvc-mention-list[hidden] {
	display: none;
}

.dvc-mention-item {
	padding: 0.4rem 0.75rem;
	cursor: pointer;
	font-size: 0.95rem;
}

.dvc-mention-item[aria-selected="true"] {
	background: var(--color-blue-shelf);
}

.dvc-mention {
	color: var(--color-dark-blue);
	font-weight: 600;
	text-decoration: none;
}

.dvc-comments .dvc-reply-to {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0 0 12px;
	color: rgb(32 67 78);
	font-size: 15px;
	font-weight: 600;
}

.dvc-comments .dvc-reply-to .dvc-link-button {
	min-height: 32px;
	font-size: 14px;
}

/* The quote being answered, its "×" in the corner (D31). The textarea's top margin
   collapses into this one's bottom margin: it is added back. */
.dvc-comments .dvc-quote-preview {
	position: relative;
	margin-bottom: calc(0.5rem + 4px);
	font-size: 0.875rem;
}

.dvc-comments .dvc-quote-preview blockquote {
	margin: 0;
	padding-right: 2rem;
	border-left: 3px solid currentColor;
}

.dvc-comments .dvc-quote-preview .dvc-link-button {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	font-size: 1.1rem;
	line-height: 24px;
}

.dvc-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-blue-gray-dark);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease;
}

.dvc-link-button:hover {
	color: var(--main-color);
}

/* The photo switch, the photo slots and the send button. Phones: one column. Wider
   screens: the reply box takes its own row on top (next to the switch it would push the
   button to a second line), then the switch and the button share a row, the slots open
   under it. Columns plus order, no fixed rows: a hidden box or panel leaves no gap. */
.dvc-form-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px 24px;
}

.dvc-form-actions .dvc-photos {
	display: contents;
}

.dvc-form-actions .dvc-photos[hidden] {
	display: none;
}

.dvc-form-actions .dvc-photos-switch {
	justify-self: start;
}

@media (min-width: 600px) {
	.dvc-form-actions {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
	}

	.dvc-form-actions .dvc-form-footer {
		display: contents;
	}

	/* Right under the text box: no touch-size padding above it on wide screens. */
	.dvc-form-actions .dvc-subscribe {
		grid-column: 1 / -1;
		order: -1;
		justify-self: start;
		min-height: 0;
		margin-top: -4px;
	}

	.dvc-form-actions .dvc-photos-switch {
		grid-column: 1;
	}

	.dvc-form-actions .dvc-submit {
		grid-column: 2;
		justify-self: end;
	}

	.dvc-form-actions .dvc-photos-panel {
		grid-column: 1 / -1;
		order: 1;
	}
}

/* The end of the form: the reply box and the button in one row on wide screens, the
   button full width under it on phones. */
.dvc-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.dvc-subscribe {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 44px;
	color: #374151;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
}

.dvc-subscribe-input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #0b7fa0;
	cursor: pointer;
}

.dvc-subscribe-input:focus-visible {
	outline: 2px solid #0b7fa0;
	outline-offset: 2px;
}

.dvc-comments .dvc-more-button,
.dvc-comments .dvc-sort-button {
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}

/* The one main action: the site's orange with white text
   (maintainer's choice; contrast 2.5:1, dark text would give 5.9:1). */
.dvc-comments .dvc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-left: auto;
	padding: 0 28px;
	border: 0;
	border-radius: 6px;
	background: #ec8e00;
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s;
}

.dvc-comments .dvc-submit:hover {
	background: #f5a000;
	color: #1f2937;
}

.dvc-comments .dvc-submit:focus-visible {
	outline: 2px solid #1f2937;
	outline-offset: 2px;
}

.dvc-comments .dvc-submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

@media (max-width: 599px) {
	.dvc-comments .dvc-submit {
		flex: 1 1 100%;
		margin-left: 0;
	}
}

.dvc-form-note {
	margin: 12px 0 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.4;
}

.dvc-form-note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Above the thread: following the whole discussion on the left, the order on the right. */
.dvc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 0 0 8px;
	border-bottom: 1px solid #e5e7eb;
	margin: 0 0 1rem;
}

.dvc-toolbar:empty {
	display: none;
}

.dvc-sort {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	color: #777;
	font-size: 14px;
}

.dvc-comments .dvc-sort-button {
	min-height: 40px;
	padding: 8px 10px;
	border: 0;
	background: none;
	color: var(--color-main-gray);
	font-size: 14px;
}

.dvc-comments .dvc-sort-button[aria-pressed="true"] {
	color: var(--color-dark-blue);
	box-shadow: inset 0 -2px var(--main-color);
}

.dvc-comments .dvc-sort-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.dvc-more {
	margin: 25px 0 20px;
	text-align: center;
}

.dvc-comments .dvc-more-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0 auto;
	padding: 8px 18px 8px 22px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* "Load more" (D55): the label, how many are left, a chevron that nods down on hover and
   turns into a spinner while loading. */
.dvc-more-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
}

.dvc-more-count {
	font-size: 12px;
	opacity: 0.75;
}

.dvc-more-count:empty {
	display: none;
}

.dvc-comments .dvc-more-icon {
	flex: none;
	width: 20px;
	height: 20px;
	fill: currentColor;
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

.dvc-more-spinner {
	display: none;
	flex: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: dvc-spin 0.7s linear infinite;
}

.dvc-comments .dvc-more-button:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
}

.dvc-comments .dvc-more-button:hover:not(:disabled) .dvc-more-icon {
	transform: rotate(180deg) translateY(-3px);
}

.dvc-comments .dvc-more-button:active:not(:disabled) {
	transform: scale(0.98);
	box-shadow: none;
}

.dvc-comments .dvc-more-button:focus-visible {
	outline: 2px solid var(--main-color, #f0a04b);
	outline-offset: 3px;
}

.dvc-comments .dvc-more-button.is-loading {
	cursor: progress;
	opacity: 0.85;
}

.dvc-comments .dvc-more-button.is-loading .dvc-more-icon {
	display: none;
}

.dvc-comments .dvc-more-button.is-loading .dvc-more-spinner {
	display: block;
}

.dvc-more-error {
	margin: 10px 0 0;
	color: #b42318;
	font-size: 14px;
}

.dvc-more-error[hidden] {
	display: none;
}

@keyframes dvc-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dvc-comments .dvc-more-button,
	.dvc-comments .dvc-more-icon {
		transition: none;
	}

	.dvc-more-spinner {
		animation-duration: 2s;
	}
}

/* Comments (D29, step 2). The icons come from the sprite in comments.php. */
.dvc-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.dvc-icon {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.dvc-thread {
	padding-top: 1rem;
}

.dvc-comment {
	--avatar-w: 30px;
	scroll-margin-top: calc(var(--header-height) + 1rem);
}

.dvc-comment-root {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--color-blue-gray-light);
}

.dvc-thread > .dvc-comment:last-child {
	border-bottom: 0;
}

.dvc-comment-reply {
	--avatar-w: 32px;
	padding: 1rem 0;
}

.dvc-comment-children {
	padding-left: 1.1rem;
}

.dvc-comment-body {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.6rem;
}

.dvc-avatar {
	display: block;
	width: var(--avatar-w);
	height: var(--avatar-w);
	border-radius: 50%;
	background: 50% 50% / cover;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-blue-gray-light);
}

.dvc-comment-main {
	min-width: 0;
}

.dvc-comment-header {
	display: flex;
	align-items: baseline;
	gap: 0 0.4rem;
	margin-bottom: 0.25rem;
}

.dvc-comment-author {
	flex-shrink: 0;
	color: var(--color-dark-blue-text);
	font-size: 0.95rem;
	font-weight: 700;
	white-space: nowrap;
}

.dvc-comment-date {
	flex-shrink: 1;
	min-width: 0;
	overflow: hidden;
	color: var(--color-main-gray);
	font-size: 0.8rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Pinned comment (D34): a tinted block with white bubbles, as wpDiscuz showed it. */
.dvc-comment-pinned {
	margin-bottom: 1.25rem;
	padding: 1rem 1rem 1rem 0.95rem;
	border: 0;
	border-radius: var(--br-radius-sm);
	background: var(--tint-main-color);
}

.dvc-comment-pinned .dvc-comment-bubble {
	background: #fff;
}

/* The pin is named for screen readers only; the block itself shows it. */
.dvc-comment-pin {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.dvc-comment-bubble {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 0.25rem;
	padding: 0.6rem 0.8rem;
	border-radius: var(--br-radius-sm);
	background: var(--color-blue-shelf);
}

.dvc-comment-for {
	margin-bottom: 0.35rem;
	padding-left: 0.5rem;
	border-left: 2px solid var(--color-blue-gray);
	color: var(--color-blue-gray-dark);
	font-size: 0.8rem;
}

.dvc-comment-for span {
	font-weight: 600;
}

.dvc-comment-text p {
	margin-bottom: 0.75rem;
	word-wrap: break-word;
}

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

.dvc-comment-text li {
	margin-left: 20px;
}

.dvc-comment-text blockquote {
	margin: 0 0 1em 1em;
	padding-left: 1em;
	font-size: inherit;
	line-height: inherit;
}

.dvc-comment-text img,
.dvc-comment-text iframe {
	max-width: 99%;
}

.dvc-comment-text img {
	max-height: 1000px;
	height: auto;
	border-radius: var(--br-radius);
}

.dvc-comment-held {
	box-sizing: border-box;
	width: 100%;
	margin: 5px 0;
	padding: 5px 10px;
	border-radius: 3px;
	background: #fff8ed;
	color: #d3760c;
	font-size: 14px;
	text-align: center;
}

/* Wraps on a narrow screen; each button keeps its label on one line (D31). */
.dvc-comment-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.6rem;
	margin-top: 0.35rem;
	color: #999;
	font-size: 13px;
}

.dvc-comment-footer > * {
	flex-shrink: 0;
	white-space: nowrap;
}

.dvc-votes {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	padding: 0.15rem 0.3rem;
	border: 1px solid var(--color-blue-gray-light);
	border-radius: 999px;
}

.dvc-vote {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.dvc-vote:hover {
	background: #fff;
	color: var(--color-dark-blue-text);
}

/* The visitor's own vote (D20). */
.dvc-vote[data-dvc-vote="1"][aria-pressed="true"] {
	color: var(--color-positive);
}

.dvc-vote[data-dvc-vote="-1"][aria-pressed="true"] {
	color: var(--color-negative);
}

.dvc-vote-count {
	min-width: 1rem;
	padding: 0 0.15rem;
	color: var(--color-blue-gray-dark);
	font-size: 0.78rem;
	font-weight: 600;
	text-align: center;
}

.dvc-vote-likes.is-positive {
	color: var(--color-positive);
}

.dvc-vote-dislikes.is-negative {
	color: var(--color-negative);
}

.dvc-reply {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-height: 24px;
	padding: 2px 6px;
	border: 0;
	background: none;
	color: var(--color-blue-gray-dark);
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
	cursor: pointer;
	transition: color 0.15s ease;
}

.dvc-reply:hover {
	color: var(--main-color);
}

.dvc-reply .dvc-icon {
	font-size: 12px;
	opacity: 0.7;
}

/* Link to the comment, at the right of the name's row (D44): an icon, a tick once
   copied. */
.dvc-comments .dvc-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	align-self: center;
	width: 24px;
	height: 24px;
	margin: -4px 0 -4px auto;
	color: var(--color-main-gray);
	font-size: 15px;
}

.dvc-comments .dvc-share:hover,
.dvc-comments .dvc-share:focus-visible {
	color: #0b7fa0;
}

.dvc-comments .dvc-share.is-copied {
	color: var(--color-positive);
}

.dvc-comments .dvc-share:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

/* Read by screen readers only. */
.dvc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Quote, edit, delete: 24px high, the smallest comfortable tap target. */
.dvc-action {
	min-height: 24px;
	padding: 4px 6px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

.dvc-toggle {
	display: flex;
	align-items: center;
	height: 24px;
	margin-left: auto;
	padding: 0 0 0 5px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
}

.dvc-toggle .dvc-icon {
	transition: transform 0.2s ease;
}

.dvc-toggle[aria-expanded="false"] .dvc-icon {
	transform: rotate(180deg);
}

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

.dvc-vote:focus-visible,
.dvc-reply:focus-visible,
.dvc-action:focus-visible,
.dvc-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

/* Trap field (D18): off screen, not display:none, which some bots skip. */
.dvc-comments .dvc-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dvc-comments .dvc-editor {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.dvc-comments .dvc-editor textarea {
	flex-basis: 100%;
	min-height: 6rem;
}

.dvc-comments .dvc-deleted {
	font-style: italic;
	opacity: 0.7;
}

.dvc-comments .dvc-vote-note {
	font-size: 0.78rem;
	color: var(--color-negative);
}

/* Photos (D22, D28): the form's switch and slots, the gallery of a comment. Own
   classes; the theme's wpDiscuz media uploader styles are not used. */
.dvc-photos {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	margin: 0 0 20px;
}

.dvc-photos-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	user-select: none;
	font-weight: 700;
}

.dvc-photos-switch-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.dvc-photos-switch-track {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 50px;
	height: 26px;
	padding: 4px;
	border-radius: 999px;
	background: #ccccce;
	transition: background-color 0.2s;
}

.dvc-photos-switch-track::after {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
}

.dvc-photos-switch-input:checked + .dvc-photos-switch-track {
	background: var(--main-color, #ec8e00);
}

.dvc-photos-switch-input:checked + .dvc-photos-switch-track::after {
	transform: translateX(24px);
}

.dvc-photos-switch-input:focus-visible + .dvc-photos-switch-track {
	outline: 2px solid var(--main-color, #ec8e00);
	outline-offset: 2px;
}

.dvc-photos-panel {
	display: flex;
	gap: 1rem;
	width: 100%;
}

.dvc-photos-panel[hidden] {
	display: none;
}

/* The file input covers the whole slot: a tap or a dropped file goes straight to it. */
.dvc-photo-slot {
	position: relative;
	display: flex;
	flex: 0 1 120px;
	justify-content: center;
	align-items: center;
	min-width: 0;
	aspect-ratio: 4 / 3;
	box-sizing: border-box;
	border: 2px dashed var(--color-blue-gray-light, #ccc);
	border-radius: 4px;
	background: #f9f9f9;
	color: #999;
	overflow: hidden;
	transition: border-color 0.2s, color 0.2s;
}

.dvc-photo-slot:hover,
.dvc-photo-slot:focus-within {
	border-color: var(--main-color, #ec8e00);
	color: var(--main-color, #ec8e00);
}

.dvc-comments .dvc-photo-slot-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	font-size: 0;
	cursor: pointer;
}

.dvc-photo-slot-preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.dvc-photo-slot.is-filled {
	border-style: solid;
	border-color: #ddd;
}

.dvc-photo-slot.is-filled .dvc-photo-slot-icon {
	display: none;
}

.dvc-comments .dvc-photo-slot-remove,
.dvc-comments .dvc-photo-remove {
	position: absolute;
	z-index: 1;
	top: 5px;
	right: 5px;
	width: 24px;
	min-width: 0;
	height: 24px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
}

.dvc-comments .dvc-photo-slot-remove[hidden] {
	display: none;
}

.dvc-comments .dvc-photo-slot-remove:hover,
.dvc-comments .dvc-photo-slot-remove:focus-visible,
.dvc-comments .dvc-photo-remove:hover,
.dvc-comments .dvc-photo-remove:focus-visible {
	background: rgba(206, 74, 102, 0.9);
}

.dvc-photo-slot.is-uploading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.6) no-repeat center / 28px;
	background-image: radial-gradient(circle, transparent 40%, var(--main-color, #ec8e00) 42%, var(--main-color, #ec8e00) 50%, transparent 52%);
	animation: dvc-pulse 1s ease-in-out infinite;
}

@keyframes dvc-pulse {
	50% { opacity: 0.4; }
}

.dvc-photo-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 10px 0;
}

.dvc-photo {
	position: relative;
}

.dvc-photo-link {
	display: block;
}

.dvc-photo-img {
	display: block;
	width: auto;
	height: 100px;
	border: 3px solid #f1f1f1;
	border-radius: var(--br-radius-sm, 4px);
}

/* Photo viewer. */
.dvc-lightbox {
	max-width: 100vw;
	max-height: 100vh;
	width: 100vw;
	height: 100vh;
	padding: 0;
	border: 0;
	background: transparent;
	display: none;
	align-items: center;
	justify-content: center;
}

.dvc-lightbox[open] {
	display: flex;
}

.dvc-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.85);
}

.dvc-lightbox img {
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	object-fit: contain;
	border-radius: 4px;
}

.dvc-lightbox button {
	position: absolute;
	border: 0;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 28px;
	line-height: 44px;
	cursor: pointer;
}

.dvc-lightbox .dvc-lightbox-close {
	top: 16px;
	right: 16px;
}

.dvc-lightbox .dvc-lightbox-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.dvc-lightbox .dvc-lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.dvc-lightbox.dvc-lightbox-single .dvc-lightbox-prev,
.dvc-lightbox.dvc-lightbox-single .dvc-lightbox-next {
	display: none;
}

.dvc-follow {
	flex: 1 1 auto;
	font-size: 14px;
}

.dvc-comments .dvc-follow-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	color: #0b7fa0;
	vertical-align: top;
	text-align: left;
	cursor: pointer;
}

.dvc-follow-icon {
	flex-shrink: 0;
}

.dvc-comments .dvc-follow-button:hover,
.dvc-comments .dvc-follow-button:focus-visible {
	color: #067a97;
}

/* Following: the bell is a status, "Unsubscribe" sits beside it (D42). */
.dvc-comments [data-dvc-following] .dvc-follow-button {
	color: var(--color-positive);
	cursor: default;
}

.dvc-comments .dvc-follow-off[hidden] {
	display: none;
}

.dvc-comments .dvc-follow-off {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	vertical-align: top;
	margin-left: 10px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	color: var(--color-main-gray);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.dvc-comments .dvc-follow-off:hover,
.dvc-comments .dvc-follow-off:focus-visible {
	color: var(--color-negative);
}

.dvc-comments [data-dvc-busy] .dvc-follow-button,
.dvc-comments [data-dvc-busy] .dvc-follow-off {
	cursor: progress;
}

.dvc-comments [data-dvc-busy] .dvc-follow-icon {
	animation: dvc-pulse 0.8s ease-in-out infinite;
}

.dvc-comments [data-dvc-just] .dvc-follow-icon {
	transform-origin: 50% 10%;
	animation: dvc-ring 0.6s ease-in-out;
}

@keyframes dvc-ring {
	20% { transform: rotate(18deg); }
	40% { transform: rotate(-14deg); }
	60% { transform: rotate(9deg); }
	80% { transform: rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
	.dvc-comments [data-dvc-busy] .dvc-follow-icon,
	.dvc-comments [data-dvc-just] .dvc-follow-icon {
		animation: none;
	}
}

.dvc-follow-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.dvc-follow-form[hidden] {
	display: none;
}

.dvc-follow-form input[type="email"] {
	flex: 1 1 200px;
	min-width: 0;
}

.dvc-follow-message {
	margin: 8px 0 0;
}
