:root {
  --mcx-orange: #ff7e08;
  --mcx-orange-soft: rgba(255, 126, 8, 0.15);
  --mcx-text: #f8fafc;
  --mcx-muted: #9ca3af;
  --mcx-soft: rgba(255, 255, 255, 0.10);
  --mcx-bubble: rgba(255, 255, 255, 0.04);
  --mcx-bubble-hover: rgba(255, 255, 255, 0.06);
  --mcx-field: rgba(255, 255, 255, 0.05);
}

.mc-comments-host {
  width: 100%;
  margin-top: 1.5rem;
}

.mcx-comments {
  width: 100%;
  margin: 1rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--mcx-soft);
  border-bottom: 1px solid var(--mcx-soft);
  color: var(--mcx-text);
  font: inherit;
}

.mcx-comments__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mcx-soft);
}

.mcx-comments__title {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.mcx-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--mcx-orange-soft);
  color: var(--mcx-orange);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

.mcx-comment-form {
  width: 100%;
  margin: 1rem 0;
}

.mcx-comment-form__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.mcx-comment-form__icon {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  color: #6b7280;
}

.mcx-comment-form__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mcx-comment-form__main {
  width: 100%;
  min-width: 0;
  flex: 1;
}

.mcx-comment-form textarea,
.mcx-comment-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: var(--mcx-field);
  color: #f3f4f6;
  outline: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.mcx-comment-form textarea {
  min-height: 96px;
  padding: 0.625rem 0.875rem;
  resize: none;
  font-size: 1rem;
  line-height: 1.5rem;
}

.mcx-comment-form input[type="text"] {
  height: 2.5rem;
  max-width: 14rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.mcx-comment-form textarea::placeholder,
.mcx-comment-form input::placeholder {
  color: #6b7280;
}

.mcx-comment-form textarea:focus,
.mcx-comment-form input[type="text"]:focus {
  border-color: rgba(255, 126, 8, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.mcx-comment-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.mcx-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--mcx-orange);
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  cursor: pointer;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.mcx-submit:hover {
  background: #ff9a3d;
}

.mcx-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.mcx-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.mcx-status {
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--mcx-soft);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  font-size: 0.875rem;
  line-height: 1.35;
}

.mcx-status--success {
  border-color: rgba(34, 197, 94, 0.42);
}

.mcx-status--error {
  border-color: rgba(239, 68, 68, 0.5);
}

.mcx-turnstile {
  margin-top: 0.75rem;
}

.mcx-comments__body {
  margin-top: 1.5rem;
}

.mcx-comments__list,
.mcx-comments__body {
  width: 100%;
}

.mcx-comments__list {
  display: grid;
  gap: 1.25rem;
}

.mcx-empty {
  margin: 0;
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.5;
}

.mcx-comment {
  text-align: left;
}

.mcx-comment__row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.mcx-comment__avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
}

.mcx-comment__avatar-img,
.mcx-comment__avatar-initial {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  object-fit: cover;
  user-select: none;
}

.mcx-comment__avatar-initial {
  background: linear-gradient(135deg, var(--mcx-orange), #ff9a3d);
  color: #000;
  font-weight: 800;
}

.mcx-comment__main {
  min-width: 0;
  flex: 1;
}

.mcx-comment__bubble {
  width: fit-content;
  max-width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--mcx-soft);
  border-radius: 1rem;
  border-top-left-radius: 0.125rem;
  background: var(--mcx-bubble);
  transition: background-color 0.16s ease;
}

.mcx-comment__bubble:hover {
  background: var(--mcx-bubble-hover);
}

.mcx-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem 0.5rem;
}

.mcx-comment__author {
  color: var(--mcx-orange);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.mcx-comment__time {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1rem;
}

.mcx-comment__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: var(--mcx-orange-soft);
  color: var(--mcx-orange);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
}

.mcx-comment__text {
  margin-top: 0.25rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: #e5e7eb;
  font-size: 0.875rem;
  line-height: 1.625;
}

.mcx-comment__text a,
.mcx-timestamp {
  color: #93c5fd;
  text-decoration: none;
}

.mcx-comment__text a:hover,
.mcx-timestamp:hover {
  color: #bfdbfe;
}

.mcx-comment__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  padding-left: 0.25rem;
  text-align: left;
}

.mcx-reaction,
.mcx-reply-toggle,
.mcx-replies-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.75rem;
  padding: 0 0.375rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  cursor: pointer;
}

.mcx-reaction:hover,
.mcx-reply-toggle:hover,
.mcx-replies-toggle:hover,
.mcx-reaction.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mcx-reaction--like.is-active {
  color: #ff9a3d;
}

.mcx-reaction__count {
  min-width: 0.75rem;
  text-align: center;
}

.mcx-reply-form {
  margin-top: 0.75rem;
}

.mcx-comment-form--reply {
  max-width: 42rem;
  margin: 0;
}

.mcx-comment-form--reply textarea {
  min-height: 76px;
  font-size: 0.875rem;
}

.mcx-replies-panel {
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--mcx-soft);
}

.mcx-replies {
  display: grid;
  gap: 0.75rem;
}

.mcx-loadmore,
.mcx-loadmore-replies {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin-top: 0.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--mcx-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.mcx-loadmore:hover,
.mcx-loadmore-replies:hover {
  border-color: rgba(255, 126, 8, 0.45);
  color: #fff;
}

@media (min-width: 768px) {
  .mcx-comment-form__icon {
    display: block;
  }

  .mcx-comment__row {
    gap: 0.75rem;
  }

  .mcx-comment-form textarea {
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .mc-comments-host {
    margin-top: 1.25rem;
  }

  .mcx-comments {
    padding: 0.875rem 0;
  }

  .mcx-comment-form__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mcx-comment-form input[type="text"] {
    max-width: none;
  }

  .mcx-submit {
    width: 100%;
  }
}
