/* Boundaries belong to the comment host. Advertising markup and event handlers are untouched. */
html body .nts-comment-ui-block { margin-top: 40px !important; padding-top: 28px !important; border-top: 1px solid #d1d5db; }
#wpdcom .nts-general-comment-label { display: none !important; }
#wpdcom form.nts-comment-form-ui { --nts-c-border: #cbd5e1; --nts-c-focus: #6d28d9; }
#wpdcom .nts-comment-fields { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 18px; }
#wpdcom .nts-comment-fields > .wpd-form-col-left { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#wpdcom .nts-comment-fields > .wpd-form-col-left,
#wpdcom .nts-comment-fields > .wpd-form-col-right { width: 100% !important; float: none !important; padding: 0 !important; min-width: 0; }
#wpdcom .nts-comment-fields > .clearfix { display: none; }
#wpdcom .nts-comment-fields .wpdiscuz-item { margin: 0; }
#wpdcom .nts-comment-fields .wc_name-wrapper,
#wpdcom .nts-comment-fields .wc_email-wrapper { display: flex; flex-direction: column; }
#wpdcom .nts-comment-fields .wc_name-wrapper .wpd-field-icon,
#wpdcom .nts-comment-fields .wc_email-wrapper .wpd-field-icon { display: none; }
#wpdcom .nts-comment-fields .wpdlb { order: -1; display: block !important; position: static !important; clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; opacity: 1 !important; visibility: visible !important; color: #374151; font: 600 14px/1.5 sans-serif; margin: 0 0 6px; transform: none !important; }
#wpdcom .nts-comment-fields input.wpd-field:not([type=checkbox]):not([type=hidden]) { width: 100%; min-height: 48px; height: auto; padding: 10px 12px !important; border: 1px solid var(--nts-c-border) !important; border-radius: 6px; background: #fff; color: #111827; font-size: 16px; }
#wpdcom .nts-comment-fields .wpd-item { display: flex; align-items: flex-start; gap: 10px; }
#wpdcom .nts-comment-fields input[type=checkbox] { flex: none; width: 20px; height: 20px; margin: 3px 0 0; }
#wpdcom .nts-comment-fields .wpd-field-group-title { height: auto !important; }
#wpdcom .nts-comment-fields .wpd-field-label { margin: 0; height: auto; font-size: 14px; line-height: 1.7; }
#wpdcom .nts-comment-fields .wc-field-submit { float: none; text-align: left; margin: 16px 0 0; }
#wpdcom .nts-comment-fields .wc_comm_submit { width: auto; min-width: 160px; min-height: 48px; border-radius: 6px; padding: 12px 24px; font-size: 16px; }
#wpdcom .nts-comment-form-ui .ql-container { border-radius: 6px 6px 0 0; }
#wpdcom .nts-comment-form-ui .ql-editor { min-height: 120px; font-size: 16px; line-height: 1.8; }
#wpdcom .nts-comment-form-ui .ql-toolbar { border-radius: 0 0 6px 6px; }
#wpdcom .nts-comment-form-ui :is(input,textarea,[contenteditable=true],button):focus-visible,
.nts-comment-notice-dialog :is(button,input,a,[tabindex]):focus-visible { outline: 3px solid #7c3aed !important; outline-offset: 3px; }
#wpdcom .nts-comment-form-ui :is(.wpd-field-error,.wpd-error-message) { font-size: 14px; line-height: 1.6; color: #b91c1c; }
#wpdcom .nts-notice-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0; font-size: 13px; line-height: 1.7; }
#wpdcom .nts-notice-review { border: 0; padding: 4px 0; background: transparent; color: #5b21b6; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#wpdcom .nts-comment-consent-ui .nts-comment-notice { display: none; }
.nts-comment-notice-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100svh - 32px); box-sizing: border-box; padding: 24px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: #111827; box-shadow: 0 20px 60px #0005; }
.nts-comment-notice-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.nts-comment-notice-dialog::backdrop { background: #11182799; }
.nts-comment-notice-dialog .nts-comment-notice { display: flex; flex-direction: column; overflow: hidden; min-height: 0; font: 16px/1.9 sans-serif; }
.nts-comment-notice-dialog .nts-notice-text { overflow: auto; min-height: 0; }
.nts-comment-notice-dialog .nts-notice-ack,
.nts-comment-notice-dialog h3 { flex: none; }
.nts-comment-notice-dialog h3 { margin: 0 0 16px; font-size: 20px; line-height: 1.5; }
.nts-comment-notice-dialog .nts-notice-text > div { border: 0 !important; padding: 0 !important; margin: 0 0 16px !important; }
.nts-notice-ack { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px; background: #f5f3ff; border-radius: 6px; font: 600 15px/1.7 sans-serif; }
.nts-notice-ack input { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.nts-notice-actions { flex: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.nts-notice-actions button { min-height: 44px; border-radius: 6px; padding: 10px 16px; font: 600 15px/1.5 sans-serif; cursor: pointer; }
.nts-notice-agree { background: #6d28d9; color: #fff; border: 1px solid #6d28d9; }
.nts-notice-agree:disabled { background: #e5e7eb; color: #6b7280; border-color: #d1d5db; cursor: default; }
.nts-notice-cancel { border: 1px solid #cbd5e1; background: #fff; color: #374151; }
html.nts-theme-dark .nts-comment-ui-block { border-color: #4b5563; }
html.nts-theme-dark #wpdcom .nts-comment-fields .wpdlb { color: #d1d5db !important; }
html.nts-theme-dark #wpdcom .nts-comment-fields input.wpd-field:not([type=checkbox]):not([type=hidden]) { background: #1f2937 !important; color: #f9fafb !important; border-color: #6b7280 !important; }
html.nts-theme-dark #wpdcom .nts-notice-review { color: #c4b5fd !important; }
html.nts-theme-dark #wpdcom .nts-notice-tools [role=status] { color: #d1d5db !important; }
html.nts-theme-dark #wpdcom .nts-comment-form-ui .ql-editor,
html.nts-theme-dark #wpdcom .nts-comment-form-ui .ql-editor > * { background-color: #1f2937 !important; color: #f3f4f6 !important; }
html.nts-theme-dark #wpdcom .nts-comment-form-ui .ql-toolbar { background-color: #1f2937 !important; border-color: #6b7280 !important; }
html.nts-theme-dark #wpdcom .nts-comment-form-ui .ql-toolbar .ql-stroke { stroke: #d1d5db !important; }
html.nts-theme-dark #wpdcom .nts-comment-form-ui .ql-toolbar .ql-fill { fill: #d1d5db !important; }
html.nts-theme-dark .nts-comment-ui-block #wpdcom .wpd-comment-text,
html.nts-theme-dark .nts-comment-ui-block #wpdcom .wpd-comment-text :is(p,li,blockquote) { color: #d1d5db !important; }
html.nts-theme-dark .nts-comment-notice-dialog { background: #111827; color: #f3f4f6; border-color: #6b7280; }
html.nts-theme-dark .nts-notice-ack { background: #312e81; }
@media(max-width: 600px) {
  html body .nts-comment-ui-block { margin-top: 32px !important; padding-top: 24px !important; }
  #wpdcom .nts-comment-fields > .wpd-form-col-left { grid-template-columns: minmax(0, 1fr); }
  #wpdcom .nts-comment-fields .wc_comm_submit { width: 100%; }
  .nts-comment-notice-dialog { padding: 16px; }
  .nts-notice-actions button { flex: 1 1 130px; }
}
