/* HT Thread — FB-style native comments (compact-form variant) */

/* ----- Zip-after-post prompt (variant zip_after_post only) ----- */
.ht-zip-prompt {
  position: relative;
  background: #fff;
  border: 1px solid #1877f2;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0 0;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.18);
  animation: ht-zip-prompt-in 0.25s ease both;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@keyframes ht-zip-prompt-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ht-zip-prompt-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: #65676b !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
}
.ht-zip-prompt-close:hover,
.ht-zip-prompt-close:focus { color: #050505 !important; background: transparent !important; }
.ht-zip-prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: #050505;
  margin-bottom: 4px;
  padding-right: 24px;
}
.ht-zip-prompt-sub {
  font-size: 13px;
  color: #65676b;
  margin-bottom: 10px;
}
.ht-zip-prompt-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ht-zip-prompt-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  flex: 1 !important;
  border: 1px solid #ccd0d5 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  background: #fff !important;
  color: #050505 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.ht-zip-prompt-input::placeholder {
  color: #65676b !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}
.ht-zip-prompt-input:focus {
  border-color: #1877f2 !important;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.15) !important;
}
.ht-zip-prompt-submit {
  background: #1877f2 !important;
  background-color: #1877f2 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  white-space: nowrap;
  min-width: 130px;
  text-align: center;
  box-shadow: none !important;
  transition: background 0.15s ease, transform 0.1s ease;
}
.ht-zip-prompt-submit:hover {
  background: #166fe5 !important;
  background-color: #166fe5 !important;
}
.ht-zip-prompt-submit:disabled {
  background: #bcc0c4 !important;
  background-color: #bcc0c4 !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}
.ht-zip-prompt-err {
  margin-top: 8px;
  color: #e41e3f;
  font-size: 12px;
}
/* Countdown urgency: at ≤10s the timer pulses + the border turns warmer. */
.ht-zip-prompt-urgent {
  border-color: #e8a317;
  box-shadow: 0 2px 10px rgba(232, 163, 23, 0.25);
}
.ht-zip-prompt-urgent .ht-zip-prompt-submit:not(:disabled) {
  background: #e8a317 !important;
  background-color: #e8a317 !important;
  animation: ht-zip-pulse 1s ease-in-out infinite;
}
@keyframes ht-zip-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
.ht-zip-prompt-timeout {
  border-color: #bcc0c4;
  box-shadow: none;
  opacity: 0.85;
  transition: opacity 0.6s ease;
}
@media (max-width: 540px) {
  .ht-zip-prompt-row { flex-direction: column; }
  .ht-zip-prompt-submit { width: 100%; min-width: 0; }
}

.ht-thread {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1c1e21;
  margin: 16px 0;
  -webkit-font-smoothing: antialiased;
}
.ht-thread-main { margin: 36px 0; }
.ht-thread *,
.ht-thread *::before,
.ht-thread *::after { box-sizing: border-box; }
.ht-thread[hidden] { display: none !important; }
.ht-thread-inline.ht-revealing { animation: ht-thread-fade-in 0.3s ease both; }
@keyframes ht-thread-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Inline per-item block -----
 * No outer border / background — the only chrome is the comment-form pill
 * at the bottom. Avoids the double-border look against the form's own border. */
.ht-thread-inline {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.ht-thread-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.ht-thread-inline-count {
  font-size: 12px;
  font-weight: 600;
  color: #65676b;
}

/* ----- Scroll variant ----- */
.ht-thread-scroll {
  position: relative;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-bottom: 8px;
}
.ht-thread-scroll .ht-thread-list { gap: 10px; }
.ht-thread-scroll-fade {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  margin-top: -36px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 80%, #fff 100%);
}
.ht-thread-scroll::-webkit-scrollbar { width: 6px; }
.ht-thread-scroll::-webkit-scrollbar-thumb { background: #ccd0d5; border-radius: 3px; }

/* ----- Comment card ----- */
.ht-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.ht-comment:last-child { margin-bottom: 0; }
.ht-thread-inline .ht-comment { margin-bottom: 6px; }
.ht-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}
.ht-comment-main { flex: 1; min-width: 0; }
.ht-comment-body {
  background: #f0f2f5;
  border-radius: 18px;
  padding: 8px 14px 11px;
  display: inline-block;
  max-width: 100%;
}
.ht-comment-author {
  font-size: 13px;
  margin-bottom: 2px;
  color: #050505;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ht-comment-author-name { font-weight: 600; }
.ht-comment-text {
  font-size: 15px;
  line-height: 1.35;
  color: #050505;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.ht-comment-text br { display: block; }
.ht-comment-meta {
  display: flex;
  gap: 14px;
  padding: 4px 14px 0;
  font-size: 12px;
  color: #65676b;
  font-weight: 600;
  align-items: center;
}
/* Aggressively neutralize the site theme's button styling so the meta buttons read
 * as plain Facebook-style text links — no rounded background on hover, no
 * text-transform, no theme box-shadow. Theme rules are usually high-specificity,
 * so we override with !important. */
.ht-comment-meta button.ht-comment-like,
.ht-comment-meta button.ht-comment-reply-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1 !important;
  color: #65676b !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  transition: color 0.12s ease !important;
}
.ht-comment-meta button.ht-comment-like:hover,
.ht-comment-meta button.ht-comment-reply-btn:hover,
.ht-comment-meta button.ht-comment-like:focus,
.ht-comment-meta button.ht-comment-reply-btn:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #050505 !important;
  text-decoration: underline !important;
  outline: none !important;
}
.ht-comment-meta button.ht-comment-like.liked { color: #1877f2 !important; }
.ht-comment-meta button.ht-comment-like.liked:hover { color: #166fe5 !important; }
.ht-comment-meta .ht-like-count { font-weight: 600; color: inherit; }
.ht-comment-time { font-weight: 400; color: #65676b; }

/* ----- Scope badge (only used for section-scoped comments) ----- */
.ht-scope-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 10px;
  text-decoration: none;
}
.ht-scope-badge.ht-scope-section {
  background: #e7f3ff;
  color: #1877f2;
  border: 1px solid #cfe3ff;
}
.ht-scope-badge.ht-scope-section:hover { background: #d8eaff; text-decoration: none; }

/* ----- Replies ----- */
.ht-comment-replies,
.ht-comment-visible-replies {
  margin-left: 50px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ----- Replies collapse toggle (Facebook-style "View N replies") ----- */
.ht-replies-toggle {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 6px 0 6px 50px !important;
  padding: 4px 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #65676b !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: color 0.12s ease !important;
}
.ht-replies-toggle:hover,
.ht-replies-toggle:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #050505 !important;
  text-decoration: underline !important;
}
.ht-replies-toggle-icon {
  display: inline-block;
  width: 22px;
  height: 12px;
  border-left: 2px solid #ccd0d5;
  border-bottom: 2px solid #ccd0d5;
  border-bottom-left-radius: 6px;
  margin-right: 2px;
  flex-shrink: 0;
}
.ht-replies-toggle[data-state="expanded"] .ht-replies-toggle-icon {
  border-color: #1877f2;
}
.ht-replies-toggle[data-state="expanded"] { color: #1877f2 !important; }
.ht-comment-replies .ht-comment,
.ht-comment-visible-replies .ht-comment { margin-bottom: 0; }
.ht-comment-replies .ht-comment-avatar,
.ht-comment-visible-replies .ht-comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

/* ----- Show-more button ----- */
.ht-thread-more {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #1877f2;
  font-weight: 600;
  padding: 6px 0;
  margin: 4px 0 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  text-align: left;
}
.ht-thread-more:hover { text-decoration: underline; }
.ht-thread-more-list { margin-top: 4px; }
.ht-thread-more-list .ht-comment-thread { margin-bottom: 8px; }

/* ----- Bottom-thread Load More (paginated) ----- */
.ht-thread-load-more {
  display: block;
  width: 100%;
  background: #f0f2f5;
  border: 1px solid #e4e6eb;
  color: #1877f2;
  font-weight: 700;
  padding: 11px 14px;
  margin: 16px 0 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  transition: background 0.15s;
}
.ht-thread-load-more:hover { background: #e4e6eb; }
.ht-thread-load-more:disabled { color: #65676b; cursor: not-allowed; }

/* ----- Main thread ----- */
.ht-thread-main {
  border-top: 1px solid #dadde1;
  padding-top: 22px;
  margin-top: 36px;
}
.ht-thread-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ht-thread-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #050505;
}
.ht-thread-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ht-thread-empty {
  color: #65676b;
  font-style: italic;
  font-size: 14px;
}

/* ----- Compact comment form (staged) ----- */
.ht-cf-wrap { margin-top: 8px; }
.ht-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ht-cf-body-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #ccd0d5;
  border-radius: 9px;
  padding: 6px 6px 6px 12px;
  transition: border-color 0.15s, background 0.15s;
}
.ht-cf-body-row:focus-within {
  border-color: #1877f2;
  background: #fff;
}
.ht-cf-body-icon {
  font-size: 16px;
  line-height: 1;
  color: #65676b;
  padding-top: 7px;
  flex-shrink: 0;
}
.ht-comment-form textarea[name="body"] {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  resize: none !important;
  padding: 6px 4px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  line-height: 1.35 !important;
  color: #050505 !important;
  /* Theme typically forces textarea min-height ~200px with !important.
   * Lock height down — do NOT remove the !important keywords; without
   * them the form opens as a huge 200px-tall input. */
  height: 26px !important;
  min-height: 26px !important;
  max-height: 220px !important;
  outline: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  display: block !important;
}
.ht-comment-form textarea[name="body"]::placeholder { color: #65676b; }
html body .ht-thread button.ht-cf-submit.ht-cf-submit {
  align-self: flex-end;
  background: #004DB3 !important;
  background-color: #004DB3 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 4px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  flex-shrink: 0;
  margin: 0 !important;
  height: auto !important;
}
html body .ht-thread button.ht-cf-submit.ht-cf-submit:hover,
html body .ht-thread button.ht-cf-submit.ht-cf-submit:focus,
html body .ht-thread button.ht-cf-submit.ht-cf-submit:focus-visible {
  background: #003D8F !important;
  background-color: #003D8F !important;
  color: #fff !important;
  text-decoration: none !important;
}
html body .ht-thread button.ht-cf-submit.ht-cf-submit:disabled {
  background: #bcc0c4 !important;
  background-color: #bcc0c4 !important;
  cursor: not-allowed !important;
}
.ht-cf-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
  animation: ht-thread-fade-in 0.2s ease both;
}
.ht-cf-identity[hidden] {
  display: none !important;
}
.ht-cf-identity-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: #65676b;
  line-height: 1.3;
}

/* ----- Full comment form (revealed on click) ----- */
.ht-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #f7f8fa;
  border-radius: 6px;
  border: 1px solid #e4e6eb;
}
.ht-cf-wrap.expanded .ht-comment-form { margin-top: 4px; }
.ht-comment-form-row {
  display: flex;
  gap: 8px;
}
.ht-comment-form-row > input { flex: 1; }
/* Aggressively override the site theme's global `input { ... }` rules.
 * Without !important, the theme wins on font-family / font-weight / line-height
 * and the placeholder text in name/email/zip drifts away from the textarea font. */
.ht-comment-form input[type="text"],
.ht-comment-form input[type="email"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 1px solid #ccd0d5 !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  background: #fff !important;
  color: #050505 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.ht-comment-form input[type="text"]::placeholder,
.ht-comment-form input[type="email"]::placeholder {
  color: #65676b !important;
  opacity: 1 !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
.ht-comment-form input[type="text"]:focus,
.ht-comment-form input[type="email"]:focus {
  outline: none !important;
  border-color: #1877f2 !important;
  box-shadow: 0 0 0 2px rgba(24,119,242,0.12) !important;
}
.ht-comment-form textarea { resize: vertical; min-height: 60px; }
.ht-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ht-comment-form-note {
  font-size: 11px;
  color: #65676b;
  line-height: 1.3;
  flex: 1;
  min-width: 200px;
}
.ht-cf-actions {
  display: flex;
  gap: 8px;
}
.ht-comment-form button {
  background: #1877f2;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.ht-comment-form button:hover { background: #166fe5; }
.ht-comment-form button:disabled { background: #bcc0c4; cursor: not-allowed; }
.ht-cf-cancel,
.ht-cf-cancel-reply {
  background: #e4e6eb !important;
  color: #050505 !important;
}
.ht-cf-cancel:hover,
.ht-cf-cancel-reply:hover { background: #d8dadf !important; }

.ht-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ----- Inline reply form ----- */
.ht-reply-form {
  margin-top: 8px;
  margin-left: 50px;
}

/* ----- Avatar palette ----- */
.ht-avatar-c0 { background: #1877f2; }
.ht-avatar-c1 { background: #42b72a; }
.ht-avatar-c2 { background: #e41e3f; }
.ht-avatar-c3 { background: #8b5cf6; }
.ht-avatar-c4 { background: #f59e0b; }
.ht-avatar-c5 { background: #06b6d4; }
.ht-avatar-c6 { background: #ec4899; }
.ht-avatar-c7 { background: #64748b; }

/* =====================================================================
 * FORCED THEME OVERRIDES
 * The site theme aggressively styles every <button> (uppercase text,
 * golden-tan hover/active background, focus ring, border-radius). The
 * earlier rules used !important but theme rules sometimes match the
 * same specificity and win on cascade order, so here we boost specificity
 * by doubling class names + prefixing `html body` so we beat any sane
 * theme rule. Covers :base, :hover, :focus, :focus-visible, :active.
 * ===================================================================== */

/* Meta buttons (Like / Reply): plain text-link look, no box, no uppercase */
html body .ht-thread button.ht-comment-like.ht-comment-like,
html body .ht-thread button.ht-comment-like.ht-comment-like:hover,
html body .ht-thread button.ht-comment-like.ht-comment-like:focus,
html body .ht-thread button.ht-comment-like.ht-comment-like:focus-visible,
html body .ht-thread button.ht-comment-like.ht-comment-like:active,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn:hover,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn:focus,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn:focus-visible,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn:active,
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle,
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle:hover,
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle:focus,
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle:focus-visible,
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  font-family: inherit !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  transform: none !important;
}

/* Like/Reply base colors */
html body .ht-thread button.ht-comment-like.ht-comment-like,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn {
  color: #65676b !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
html body .ht-thread button.ht-comment-like.ht-comment-like:hover,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn:hover,
html body .ht-thread button.ht-comment-like.ht-comment-like:focus,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn:focus,
html body .ht-thread button.ht-comment-like.ht-comment-like:focus-visible,
html body .ht-thread button.ht-comment-reply-btn.ht-comment-reply-btn:focus-visible {
  color: #050505 !important;
  text-decoration: underline !important;
}
html body .ht-thread button.ht-comment-like.ht-comment-like.liked {
  color: #1877f2 !important;
}
html body .ht-thread button.ht-comment-like.ht-comment-like.liked:hover,
html body .ht-thread button.ht-comment-like.ht-comment-like.liked:focus {
  color: #166fe5 !important;
}

/* Replies-toggle base colors */
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle {
  color: #65676b !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 4px 0 !important;
  margin: 6px 0 6px 50px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle:hover,
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle:focus,
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle:focus-visible {
  color: #050505 !important;
  text-decoration: underline !important;
}
html body .ht-thread button.ht-replies-toggle.ht-replies-toggle[data-state="expanded"] {
  color: #1877f2 !important;
}

/* Show-more / Load-more / CTA trigger: light-screen pill (matches comment CTA) */
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:hover,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:focus,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:focus-visible,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:active,
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger,
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger:hover,
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger:focus,
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger:focus-visible,
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 1px solid #e4e6eb !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  background-image: none !important;
  transform: none !important;
}

/* "View N more comments" — plain text link, NOT a pill button.
 * NOTE: `display` is intentionally NOT !important so a JS click handler
 * setting `style.display = 'none'` can hide the button cleanly. */
html body .ht-thread button.ht-thread-more.ht-thread-more {
  display: inline-block;
  width: auto !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #65676b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 4px 0 !important;
  margin: 4px 0 6px !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: color 0.12s ease !important;
}
html body .ht-thread button.ht-thread-more.ht-thread-more:hover,
html body .ht-thread button.ht-thread-more.ht-thread-more:focus,
html body .ht-thread button.ht-thread-more.ht-thread-more:focus-visible,
html body .ht-thread button.ht-thread-more.ht-thread-more:active {
  background: transparent !important;
  background-color: transparent !important;
  color: #050505 !important;
  text-decoration: underline !important;
}

/* Load-more (bottom thread): Daily Mail-style solid blue CTA.
 * The hover/focus/active states must repeat border + border-radius because
 * the upstream shared rule (.ht-thread-load-more:hover etc.) sets
 * border-radius: 999px which would otherwise round the pill on hover. */
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:hover,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:focus,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:focus-visible,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:active {
  display: block !important;
  width: 100% !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  margin: 18px 0 0 !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 10px !important;
  transition: background-color 0.15s !important;
}
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more {
  background: #004DB3 !important;
  background-color: #004DB3 !important;
}
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:hover,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:focus,
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:focus-visible {
  background: #003D8F !important;
  background-color: #003D8F !important;
}
html body .ht-thread button.ht-thread-load-more.ht-thread-load-more:disabled {
  color: #65676b !important;
  cursor: not-allowed !important;
}

/* CTA trigger ("Write a comment about this…") — moderately rounded, not a pill */
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  background: #f0f2f5 !important;
  background-color: #f0f2f5 !important;
  color: #65676b !important;
  font-size: 13px !important;
  border-radius: 14px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  text-align: left !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background-color 0.15s !important;
}
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger:hover,
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger:focus,
html body .ht-thread button.ht-cf-trigger.ht-cf-trigger:focus-visible {
  background: #e4e6eb !important;
  background-color: #e4e6eb !important;
  color: #65676b !important;
  text-decoration: none !important;
}

/* ---------------------------------------------------------------------
 * NUKE the theme's tan/gold button overlay.
 * The Fox theme paints a tan rectangle on :hover / :focus / :active /
 * touch-tap via (1) a pseudo-element overlay, (2) the mobile
 * tap-highlight default, and (3) `filter` / `backdrop-filter`. The
 * earlier overrides handled the button's own background but not these
 * three vectors. Reset all three for every button inside .ht-thread.
 * ------------------------------------------------------------------- */
html body .ht-thread { -webkit-tap-highlight-color: transparent; }
html body .ht-thread button { -webkit-tap-highlight-color: transparent !important; }
html body .ht-thread button,
html body .ht-thread button:hover,
html body .ht-thread button:focus,
html body .ht-thread button:focus-visible,
html body .ht-thread button:focus-within,
html body .ht-thread button:active,
html body .ht-thread button:target {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body .ht-thread button::before,
html body .ht-thread button::after,
html body .ht-thread button:hover::before,
html body .ht-thread button:hover::after,
html body .ht-thread button:focus::before,
html body .ht-thread button:focus::after,
html body .ht-thread button:focus-visible::before,
html body .ht-thread button:focus-visible::after,
html body .ht-thread button:focus-within::before,
html body .ht-thread button:focus-within::after,
html body .ht-thread button:active::before,
html body .ht-thread button:active::after,
html body .ht-thread button:target::before,
html body .ht-thread button:target::after {
  content: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  visibility: hidden !important;
}

/* ----- Mobile ----- */
@media (max-width: 540px) {
  .ht-thread { margin: 12px 0; }
  .ht-thread-inline { padding: 0; }
  .ht-thread-inline-header { padding-bottom: 4px; margin-bottom: 4px; }
  .ht-thread-inline .ht-thread-list { gap: 3px; }
  .ht-thread-inline .ht-comment { margin-bottom: 4px; }
  .ht-thread-inline .ht-comment-avatar { width: 32px; height: 32px; font-size: 14px; }
  .ht-thread-inline .ht-comment-replies,
  .ht-thread-inline .ht-comment-visible-replies { margin-left: 22px; margin-top: 4px; gap: 4px; }
  .ht-thread-inline .ht-comment-replies .ht-comment-avatar,
  .ht-thread-inline .ht-comment-visible-replies .ht-comment-avatar { width: 26px; height: 26px; font-size: 12px; }
  .ht-thread-inline .ht-comment-body { padding: 6px 10px 9px; border-radius: 14px; }
  .ht-thread-inline .ht-comment-text { font-size: 14px; line-height: 1.3; }
  .ht-thread-inline .ht-comment-meta { padding: 2px 10px 0; font-size: 11px; gap: 10px; }
  .ht-thread-scroll { max-height: 200px; }
  .ht-cf-trigger { padding: 7px 10px; font-size: 13px; }
  .ht-thread-inline .ht-cf-wrap { margin-top: 3px; }
  html body .ht-thread.ht-thread-inline button.ht-thread-more.ht-thread-more {
    padding: 1px 0 !important;
    margin: 0 0 2px !important;
    line-height: 1.15 !important;
  }

  .ht-comment-form-row { flex-direction: column; }
  .ht-comment-replies { margin-left: 24px; }
  .ht-comment-text { font-size: 14px; }
  .ht-reply-form { margin-left: 24px; }
  .ht-replies-toggle { margin-left: 24px !important; font-size: 12px !important; }
  .ht-replies-toggle-icon { width: 16px; height: 10px; }
  .ht-thread-inline .ht-replies-toggle { margin-left: 22px !important; margin-top: 2px !important; margin-bottom: 2px !important; }
}

/* ===========================================================================
   Sort bar — Newest / Oldest / Best rated / (hidden) Worst rated
   Lives at the top of the bottom thread (#ht-thread-main). Daily Mail-style
   flat tabs with a coloured underline on the active option.
   =========================================================================== */
.ht-thread-main .ht-thread-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 22px;
  margin: 18px 0 16px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #dcdfe3;
}
html body .ht-thread .ht-sort-btn,
html body .ht-thread .ht-sort-btn:visited {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #65676b !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent !important;
  padding: 4px 2px 9px !important;
  margin: 0 0 -1px 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}
html body .ht-thread .ht-sort-btn:hover,
html body .ht-thread .ht-sort-btn:focus,
html body .ht-thread .ht-sort-btn:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  color: #050505 !important;
  text-decoration: none !important;
  outline: none !important;
}
html body .ht-thread .ht-sort-btn.ht-sort-active,
html body .ht-thread .ht-sort-btn.ht-sort-active:hover,
html body .ht-thread .ht-sort-btn.ht-sort-active:focus {
  background: transparent !important;
  background-color: transparent !important;
  color: #050505 !important;
  border-bottom-color: #050505 !important;
  cursor: default !important;
}
html body .ht-thread .ht-sort-btn[hidden] {
  display: none !important;
}

/* Loading state during a sort-change fetch: dim the list slightly so the
   visitor knows something is happening, while keeping content visible. */
.ht-thread-main-list.ht-thread-list-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* ===========================================================================
   Disclaimer + footer links — Terms | Privacy | Feedback
   =========================================================================== */
.ht-thread-disclaimer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e4e6eb;
}
.ht-thread-disclaimer-text {
  margin: 0 0 10px;
  color: #65676b;
  font-size: 11px;
  line-height: 1.5;
  font-family: inherit;
}
html body .ht-thread a.ht-thread-disclaimer-link,
html body .ht-thread a.ht-thread-disclaimer-link:visited {
  color: #1877f2 !important;
  text-decoration: none !important;
}
html body .ht-thread a.ht-thread-disclaimer-link:hover,
html body .ht-thread a.ht-thread-disclaimer-link:focus {
  text-decoration: underline !important;
}
.ht-thread-footer-links {
  margin: 0;
  color: #65676b;
  font-size: 12px;
  text-align: right;
}
html body .ht-thread a.ht-thread-footer-link,
html body .ht-thread a.ht-thread-footer-link:visited {
  color: #1877f2 !important;
  text-decoration: none !important;
  background: transparent !important;
  background-color: transparent !important;
  font-weight: 400 !important;
}
html body .ht-thread a.ht-thread-footer-link:hover,
html body .ht-thread a.ht-thread-footer-link:focus {
  color: #166fe5 !important;
  text-decoration: underline !important;
}
.ht-thread-footer-sep {
  color: #bcc0c4;
  margin: 0 6px;
  user-select: none;
}

@media (max-width: 540px) {
  .ht-thread-main .ht-thread-sort-bar { gap: 16px; }
  html body .ht-thread .ht-sort-btn { padding: 4px 2px 7px !important; font-size: 12px !important; }
  .ht-thread-disclaimer-text { font-size: 10.5px; }
  .ht-thread-footer-links { text-align: left; font-size: 11px; }
}
