/* News/blog comments form — overrides ns_comments + theme conflicts */

.tx_nscomments #comment-form .blueshift-comment-row {
  display: block;
  width: 100%;
  margin: 0 0 16px;
}

.tx_nscomments #comment-form .blueshift-comment-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.tx_nscomments #comment-form .blueshift-comment-col {
  display: block;
  width: 100%;
  max-width: 100%;
}

.tx_nscomments #comment-form .blueshift-comment-input,
.tx_nscomments #comment-form .blueshift-comment-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

/* Labels: block above fields (theme .has-error + absolute .error-msg breaks floating) */
.tx_nscomments #comment-form .blueshift-comment-label {
  display: block !important;
  position: static !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
}

.tx_nscomments #comment-form .blueshift-comment-textarea {
  margin-top: 0 !important;
}

/* JS adds .has-error to .blueshift-comment-col — reset ns_comments tooltip positioning */
.tx_nscomments #comment-form .blueshift-comment-col.has-error {
  position: relative;
}

.tx_nscomments #comment-form .blueshift-comment-col .error-msg {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  min-width: 0 !important;
  margin: 6px 0 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.tx_nscomments #comment-form .blueshift-comment-col .error-msg::after {
  display: none !important;
}

.tx_nscomments #comment-form .blueshift-captcha-wrap {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Submit: theme hover uses white bg; inline color:#fff made text invisible on hover */
.tx_nscomments #comment-form .ns-btn-send {
  color: #fff !important;
  background-color: #00bcd4 !important;
  border: 1px solid #00bcd4 !important;
  min-width: 120px;
  padding: 10px 24px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.tx_nscomments #comment-form .ns-btn-send:hover,
.tx_nscomments #comment-form .ns-btn-send:focus,
.tx_nscomments #comment-form .ns-btn-send:active {
  color: #fff !important;
  background-color: #0097a7 !important;
  border-color: #0097a7 !important;
}

@media (max-width: 767px) {
  .tx_nscomments #comment-form .blueshift-comment-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Success/error banners after comment submit (AJAX shows .approve / .thanksmsg) */
.tx_nscomments .messages {
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
}

.tx_nscomments .ns-alert-success {
  color: #2d6a2d !important;
  background-color: #dff0d8 !important;
  border: 1px solid #c3e6cb !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.tx_nscomments .ns-alert-error {
  color: #842029 !important;
  background-color: #f8d7da !important;
  border: 1px solid #f5c2c7 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Guest: login prompt before comments list */
.tx_nscomments .blueshift-comment-privacy-note {
  margin: 0 0 1rem;
}

.tx_nscomments .blueshift-comment-login-prompt {
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.tx_nscomments .blueshift-comment-login-prompt .ns-btn-login {
  display: inline-block;
  margin-right: 0.35rem;
  vertical-align: baseline;
}

.tx_nscomments .comments-container {
  margin-top: 0.5rem;
}

.tx_nscomments .comments-container .ns-headline {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* Honeypot fields (hp_name / hp_email) — must stay in DOM for bots, never visible */
.tx_nscomments #comment-form .commentcaphp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Rate-limit message — only shown by JS when limit is hit */
.tx_nscomments #comment-form #cookie_error,
.tx_nscomments #comment-form .cookie-error-msg {
  display: none;
}

.tx_nscomments #comment-form #cookie_error.is-visible,
.tx_nscomments #comment-form .cookie-error-msg.is-visible {
  display: block;
  color: #842029;
  margin-top: 8px;
}
