/* ============================================================
   MrPOS Blog Comments widget — v1 (2026-11-05)
   Matches site light theme (paper/cream + orange #F56E1C)
   ============================================================ */
.comments-section { background: var(--cream, #FAF3EB); }
.mrpos-comments { max-width: 780px; margin: 0 auto; font-family: inherit; }

.mc-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.mc-head h2 { margin: 0; font-size: 1.5rem; color: var(--text, #2A2523); }
.mc-count {
  display: inline-block; min-width: 2rem; text-align: center;
  background: var(--orange, #F56E1C); color: #fff;
  border-radius: 999px; padding: .1rem .6rem; font-size: .95rem; font-weight: 700;
}
.mc-sub { margin: 0 0 1.2rem; color: var(--text-soft, #6E6560); font-size: .88rem; }

/* ---- list ---- */
.mc-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.mc-item {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--paper, #FFFCFA);
  border: 1px solid var(--border, #EDE2D6);
  border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .8rem;
}
.mc-avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange, #F56E1C), var(--orange-deep, #D95B0F));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.mc-body { min-width: 0; flex: 1; }
.mc-meta { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .25rem; }
.mc-name { font-weight: 700; color: var(--text, #2A2523); }
.mc-date { color: var(--text-faint, #9A9089); font-size: .8rem; }
.mc-text { margin: 0; color: var(--text, #2A2523); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.mc-none { color: var(--text-soft, #6E6560); font-style: italic; padding: .4rem 0 0; }
.mc-loading { color: var(--text-faint, #9A9089); }

/* ---- form ---- */
.mc-form {
  background: var(--paper, #FFFCFA);
  border: 1px solid var(--border, #EDE2D6);
  border-radius: 14px; padding: 1.1rem;
}
.mc-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-soft, #6E6560); margin: 0 0 .3rem; }
.mc-input, .mc-textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--text, #2A2523);
  background: #fff; border: 1px solid var(--border-strong, #E0D2C2); border-radius: 10px;
  padding: .65rem .8rem; outline: none;
}
.mc-input:focus, .mc-textarea:focus { border-color: var(--orange, #F56E1C); box-shadow: 0 0 0 3px var(--orange-glow, rgba(245,110,28,.25)); }
.mc-textarea { min-height: 110px; resize: vertical; }
.mc-name-row { margin-bottom: .9rem; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }
.mc-counter { color: var(--text-faint, #9A9089); font-size: .8rem; }
.mc-btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 10px;
  background: var(--orange, #F56E1C); color: #fff; padding: .7rem 1.4rem;
  transition: background .15s ease;
}
.mc-btn:hover { background: var(--orange-deep, #D95B0F); }
.mc-btn[disabled] { opacity: .6; cursor: wait; }
.mc-msg { margin: .8rem 0 0; font-size: .9rem; border-radius: 8px; padding: .55rem .8rem; }
.mc-msg.ok { background: #EAF6EA; color: #22662a; border: 1px solid #cde8cd; }
.mc-msg.err { background: #FBEAE5; color: #8f2f18; border: 1px solid #f0cdc0; }

/* honeypot — screen readers aur users dono se chhupa hua */
.mc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---- RTL (Urdu) ---- */
[dir="rtl"] .mc-item { flex-direction: row-reverse; }
[dir="rtl"] .mc-meta { flex-direction: row-reverse; }
[dir="rtl"] .mc-text { text-align: right; }
[dir="rtl"] .mc-foot { flex-direction: row-reverse; }

@media (max-width: 560px) {
  .mc-head h2 { font-size: 1.25rem; }
  .mc-item { padding: .85rem .9rem; }
  .mc-btn { width: 100%; }
  .mc-foot { flex-direction: column-reverse; align-items: stretch; }
  .mc-counter { text-align: center; }
}
