/* Additions to the static design (style.css) for the dynamic portal pages. */

.main-store-img { position: relative; }
.store-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}
.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
  font-size: 12px;
  color: #777;
  padding: 0 12px 12px;
}
.store-meta .img-sprite { display: inline-block; vertical-align: middle; margin-left: 2px; transform: scale(0.7); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.see-all {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 20px;
}
.sub-head a { color: inherit; text-decoration: none; }

/* ads list */
.ads-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.ads-subcats .so-chip { text-decoration: none; }
.ads-empty {
  text-align: center;
  padding: 48px 16px;
  color: #555;
}
.ads-empty img { width: 160px; opacity: 0.35; margin-bottom: 16px; }

/* search overlay suggestions */
.so-chip { text-decoration: none; }
.so-suggest { display: flex; flex-direction: column; }
.so-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #eee;
  color: #222;
  text-decoration: none;
  font-size: 14px;
}
.so-row img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.so-row b {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 2px 8px;
}
.so-row small { margin-right: auto; color: #888; }
.so-all { color: var(--primary); font-weight: 700; border-bottom: 0; }

@media (max-width: 700px) {
  .section-head { align-items: flex-start; }
  .see-all { margin-bottom: 12px; }
}

/* toast */
.portal-toast {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #1f9d55;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: opacity 0.4s;
}
.portal-toast-error { background: #d64545; }
.portal-toast-info, .portal-toast-warning { background: #555; }
.portal-toast.hide { opacity: 0; }

/* breadcrumbs */
.portal-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #777;
  margin-top: 16px;
}
.portal-crumbs a { color: #555; text-decoration: none; }
.portal-crumbs b { color: #111; font-weight: 600; }

/* list filters */
.ads-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 4px;
}
.ads-filters select {
  border: 1px solid #d9dae2;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  background: #fff;
}
.ads-check { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.ads-reset { color: #d64545; font-size: 13px; text-decoration: none; }

/* ad detail page */
.ad-alert {
  background: #fff7e6;
  border: 1px solid #f5c26b;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 16px;
  font-size: 14px;
}
.ad-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 16px;
  align-items: start;
}
.ad-box {
  background: #fff;
  border: 1px solid #e3e4ea;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}
.ad-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.ad-gallery {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #f3f4f7;
}
.ad-gallery img { width: 100%; height: 380px; object-fit: cover; display: block; }
.ad-desc { font-size: 14px; line-height: 2; color: #333; }
.ad-agent {
  font-size: 10px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  padding: 1px 6px;
  margin-right: 4px;
}
.ad-map { height: 280px; border-radius: 10px; }
.ad-faq { border-bottom: 1px solid #eee; padding: 10px 0; }
.ad-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ad-faq p { margin: 8px 0 0; font-size: 14px; color: #555; }
.ad-side { position: sticky; top: 16px; }
.ad-head { text-align: center; }
.ad-logo { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; border: 1px solid #eee; }
.ad-head h1 { font-size: 20px; font-weight: 700; margin: 12px 0 4px; }
.ad-subtitle { font-size: 13px; color: #777; margin: 0 0 8px; }
.ad-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.ad-tags a {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 2px 10px;
  text-decoration: none;
}
.store-badge.static { position: static; }
.ad-rating { font-size: 13px; color: #555; margin: 8px 0 14px; }
.ad-rating b { color: #f0a500; }
.ad-contact-btn { width: 100%; padding: 10px; border-radius: 8px; }
.ad-contact a {
  display: flex;
  justify-content: space-between;
  padding: 9px 4px;
  border-bottom: 1px solid #eee;
  color: #222;
  text-decoration: none;
  font-size: 14px;
}
.ad-contact a span { color: #777; }
.ad-warn { font-size: 12px; color: #b26b00; margin: 10px 0 0; text-align: right; }
.ad-address { font-size: 13px; color: #555; margin: 14px 0 0; text-align: right; }
.ad-actions { display: flex; gap: 8px; margin-top: 14px; }
.ad-action {
  flex: 1;
  border: 1px solid #d9dae2;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  cursor: pointer;
}
.ad-action.active { border-color: var(--primary); color: var(--primary); }
.ad-hours { width: 100%; font-size: 14px; }
.ad-hours td { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.ad-hours td:last-child { text-align: left; }
.ad-rate { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.ad-rate button { border: 0; background: none; font-size: 28px; color: #ccc; cursor: pointer; }
.ad-rate button.on,
.ad-rate button:hover,
.ad-rate button:hover ~ button { color: #f0a500; }
.ad-muted { font-size: 13px; color: #777; margin: 0; }
.ad-report summary { cursor: pointer; font-size: 13px; color: #d64545; }
.ad-report form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ad-report select,
.ad-report textarea { border: 1px solid #d9dae2; border-radius: 8px; padding: 6px 10px; font-size: 13px; }

@media (max-width: 900px) {
  .ad-page { grid-template-columns: 1fr; }
  .ad-side { position: static; order: -1; }
  .ad-gallery img { height: 240px; }
}

/* auth pages (login / register / reset) */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 20px; }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #e3e4ea;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(24, 119, 232, 0.06);
  text-align: center;
}
.auth-logo { height: 46px; margin-bottom: 14px; }
.auth-title { font-family: "alibaba"; font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #111; }
.auth-subtitle { font-size: 13px; color: #777; margin: 0 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #444; margin: 0; }
.auth-field small { color: #999; font-weight: 400; }
.auth-field input {
  border: 1px solid #d9dae2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-field input.is-invalid { border-color: #d64545; }
.auth-code { text-align: center; letter-spacing: 8px; font-size: 20px !important; }
.auth-error { color: #d64545 !important; font-size: 12px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth-row a, .auth-foot a { color: var(--primary); text-decoration: none; }
.auth-btn {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 11px;
  font-size: 15px;
  cursor: pointer;
}
.auth-btn:hover { background: var(--primary-dark); }
.auth-btn:disabled { opacity: 0.6; }
.auth-link-btn { border: 0; background: none; color: var(--primary); font-size: 13px; cursor: pointer; }
.auth-foot { margin: 18px 0 0; font-size: 13px; color: #555; }
.auth-alert {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.auth-alert-danger, .auth-alert-error { background: #fdecec; color: #b23030; }

/* account panel (user) on the portal layout */
.panel-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; margin-top: 24px; align-items: start; }
.panel-side {
  background: #fff;
  border: 1px solid #e3e4ea;
  border-radius: 12px;
  padding: 12px;
  position: sticky;
  top: 16px;
}
.panel-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px 14px; border-bottom: 1px solid #eee; margin-bottom: 8px; }
.panel-user img { width: 44px; height: 44px; border-radius: 50%; }
.panel-user b { font-size: 14px; display: block; }
.panel-user small { color: #888; font-size: 12px; }
.panel-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.panel-side a:hover { background: #f5f6f9; }
.panel-side a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.panel-side a .fa, .panel-side a .fas, .panel-side a .fal { width: 18px; text-align: center; }
.panel-side .panel-logout { color: #d64545; }
.panel-main .card { border: 1px solid #e3e4ea; border-radius: 12px; overflow: hidden; }
.panel-main .card-header { background: #fff; font-weight: 700; font-size: 15px; padding: 14px 16px; }
.panel-main .btn-primary { background: var(--primary); border-color: var(--primary); }
.panel-main .table { font-size: 14px; }
.panel-main .form-control, .panel-main .form-select { border-radius: 8px; }

@media (max-width: 900px) {
  .panel-wrap { grid-template-columns: 1fr; }
  .panel-side { position: static; }
}

/* products (inside an ad) */
.ad-products { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.product-card .main-store-img { height: 140px; }
.product-card .main-store-img img { object-fit: contain; background: #fff; }
.product-card .store-name h2 { font-size: 14px; }
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); margin: 10px 0; }
.product-shop { font-size: 16px; font-weight: 700; margin: 10px 0 2px; }
.ad-gallery img.contain { object-fit: contain; background: #fff; }
.ad-tag { font-size: 12px; color: #555; background: #f1f2f5; border-radius: 12px; padding: 2px 10px; }
@media (max-width: 700px) { .ad-products { grid-template-columns: repeat(2, 1fr); } }
.panel-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.panel-stats a {
  background: #fff;
  border: 1px solid #e3e4ea;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #333;
  text-decoration: none;
}
.panel-stats b { display: block; font-size: 24px; color: var(--primary); }
.panel-stats span { font-size: 13px; color: #777; }
.panel-code { font-size: 18px; letter-spacing: 2px; background: var(--primary-soft); color: var(--primary); padding: 2px 10px; border-radius: 8px; }
@media (max-width: 700px) { .panel-stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== modern account panel (overrides the simpler panel styles above) ===== */
.panel-page { --dash-shadow: 0 8px 24px rgba(17, 38, 80, 0.07); }
.panel-wrap { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; }
.panel-side {
  border: 0;
  border-radius: 18px;
  padding: 0 0 12px;
  overflow: hidden;
  box-shadow: var(--dash-shadow);
}
.panel-user {
  background: linear-gradient(135deg, #1877e8 0%, #5b4dee 100%);
  color: #fff;
  padding: 22px 18px;
  margin: 0 0 10px;
  border: 0;
}
.panel-user img { width: 52px; height: 52px; border: 3px solid rgba(255, 255, 255, 0.6); }
.panel-user b { color: #fff; font-size: 15px; }
.panel-user small { color: rgba(255, 255, 255, 0.8); }
.panel-nav { padding: 0 10px; display: flex; flex-direction: column; gap: 2px; }
.panel-side a { padding: 8px 10px; border-radius: 12px; font-size: 14px; transition: background 0.2s; }
.panel-ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1f3f8; color: #5c6477; font-size: 13px; flex-shrink: 0;
  transition: all 0.2s;
}
.panel-side a.active { background: var(--primary-soft); color: var(--primary); }
.panel-side a.active .panel-ico,
.panel-side a:hover .panel-ico { background: var(--primary); color: #fff; }
.panel-side .panel-logout .panel-ico { background: #fdecec; color: #e03131; }

/* other account pages: cards in the same style */
.panel-main .card { border: 0; border-radius: 20px; box-shadow: var(--dash-shadow); }
.panel-main .card-header { border-bottom: 1px solid #f0f1f5; padding: 16px 20px; }

@media (max-width: 900px) {
  .panel-wrap { grid-template-columns: 1fr; }
}

/* account panel on small screens: no overflow, sidebar menu becomes a horizontal strip */
.panel-wrap > * { min-width: 0; }
@media (max-width: 900px) {
  .panel-side { padding-bottom: 0; }
  .panel-user { margin-bottom: 0; }
  .panel-nav { flex-direction: row; overflow-x: auto; padding: 10px; gap: 6px; scrollbar-width: none; }
  .panel-nav::-webkit-scrollbar { display: none; }
  .panel-side a { flex-direction: column; flex-shrink: 0; gap: 4px; font-size: 11px; padding: 6px 8px; min-width: 72px; text-align: center; white-space: nowrap; }
}

/* ===== store products, offers, plan badge (meeting 1405/05/27) ===== */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.ad-box .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e4ea; border-radius: 12px; overflow: hidden; text-decoration: none; color: #222; transition: box-shadow .2s, transform .2s; }
.prod-card:hover { box-shadow: 0 8px 22px rgba(17, 38, 80, .1); transform: translateY(-2px); color: #222; }
.prod-img { position: relative; aspect-ratio: 1 / 1; background: #f3f4f7; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-off { position: absolute; top: 8px; right: 8px; background: #e03131; color: #fff; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 9px; }
.prod-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-name { font-size: 14px; font-weight: 600; line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-shop { font-size: 12px; color: #888; }
.prod-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.prod-price del { font-size: 12px; color: #999; }
.prod-price b { font-size: 15px; color: var(--primary); }
.prod-price small { font-size: 11px; color: #777; }
.prod-page { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; margin-top: 16px; align-items: start; }
.prod-page .prod-main-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: #f3f4f7; border: 1px solid #e3e4ea; }
.prod-page h1 { font-size: 22px; font-weight: 800; line-height: 1.7; }
.prod-big-price { font-size: 24px; font-weight: 800; color: var(--primary); }
.prod-big-price del { font-size: 15px; color: #999; font-weight: 400; margin-left: 8px; }
.prod-seller { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e3e4ea; border-radius: 12px; text-decoration: none; color: #222; }
.prod-seller img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.prod-buy-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border-radius: 12px; padding: 10px 26px; font-weight: 700; text-decoration: none; border: 0; }
.prod-buy-btn:hover { background: var(--primary-dark); color: #fff; }
.prod-buy-btn[aria-disabled="true"] { background: #b9bcc6; pointer-events: none; }
.offers-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; }
.offers-head h1 { font-size: 22px; font-weight: 800; margin: 0; }
.offers-head form { display: flex; gap: 6px; }
.plan-badge { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 10px; }
.ad-name-en { font-size: 13px; color: #888; margin: -4px 0 6px; }
@media (max-width: 768px) {
  .prod-page { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ===== user panel polish (1405/08/18) ===== */
.panel-main .card { margin-bottom: 20px; }
.panel-main .card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 22px; font-size: 16px; font-weight: 800; color: #1d2433;
}
.panel-main .card-header h5, .panel-main .card-header h6 { margin: 0; font-size: 16px; font-weight: 800; }
.panel-main .card-header .float-end, .panel-main .card-header .float-start { float: none !important; margin-inline-start: auto; }
.panel-main .card-header .btn { border-radius: 10px; padding: 7px 14px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.panel-main .card-body { padding: 20px 22px; }
.panel-main .btn { border-radius: 10px; }
.panel-main .badge { border-radius: 8px; padding: 5px 9px; font-weight: 600; }
.panel-main .alert { border: 0; border-radius: 14px; }

.panel-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary-soft), #f4f8ff); color: #2b3a55;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; line-height: 1.9;
}
.panel-note .fa { color: var(--primary); font-size: 18px; }
.panel-note b { color: var(--primary); letter-spacing: 1px; }

.panel-main .table { margin-bottom: 0; }
.panel-main .table > thead th {
  background: #f6f7fb; color: #6b7280; font-size: 12.5px; font-weight: 700;
  border: 0; padding: 12px 10px; white-space: nowrap;
}
.panel-main .table > thead th:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
.panel-main .table > thead th:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.panel-main .table > tbody td { padding: 14px 10px; border-color: #f0f1f5; vertical-align: middle; }
.panel-main .table > tbody tr:hover td { background: #fafbfe; }
.panel-table td img { margin-inline-end: 8px; }

.ad-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 220px; }
.ad-actions form { margin: 0; display: contents; }
.ad-actions .act {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px;
  border-radius: 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid #e3e6ee; background: #fff; color: #4b5563; text-decoration: none;
  transition: all .15s; cursor: pointer;
}
.ad-actions .act:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(17, 38, 80, .08); }
.ad-actions .act-info { background: #e8f6fb; border-color: #c9ebf6; color: #0b7aa0; }
.ad-actions .act-primary { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.ad-actions .act-gold { background: #fff7e0; border-color: #fbe6a6; color: #b07800; }
.ad-actions .act-green { background: #e8f8ee; border-color: #c4ecd2; color: #198754; }
.ad-actions .act-danger { background: #fdecec; border-color: #f8cfcf; color: #d63939; }
@media (max-width: 700px) {
  .panel-main .card-header, .panel-main .card-body { padding: 14px; }
}

/* FAQ block (ads, articles, news, products) */
.faq-box { border-radius: 18px; padding: 20px; box-shadow: 0 8px 28px rgba(17, 38, 80, .06); margin-bottom: 20px; scroll-margin-top: 80px; }
.faq-title { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.faq-title > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 15px; }
.faq-box .ad-faq { border: 1px solid #e6e9f2; border-radius: 12px; padding: 0; margin-bottom: 8px; background: #f8f9fc; transition: background .15s, border-color .15s; }
.faq-box .ad-faq:last-of-type { margin-bottom: 0; }
.faq-box .ad-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; list-style: none; }
.faq-box .ad-faq summary::-webkit-details-marker { display: none; }
.faq-box .ad-faq summary i { color: var(--primary); transition: transform .2s; flex: 0 0 auto; }
.faq-box .ad-faq[open] { background: #fff; border-color: #cfe2fb; }
.faq-box .ad-faq[open] summary { color: var(--primary); }
.faq-box .ad-faq[open] summary i { transform: rotate(45deg); }
.faq-box .ad-faq p { margin: 0; padding: 0 14px 14px; line-height: 2; }

/* comments (livewire frontend.comments) */
.cmt-form { background: #f8f9fc; border: 1px solid #e6e9f2; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cmt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmt-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: #374151; }
.cmt-field em { color: #e03131; font-style: normal; }
.cmt-field small { color: #6b7280; font-weight: 400; }
.cmt-field input, .cmt-field textarea {
  width: 100%; border: 1px solid #e6e9f2; border-radius: 12px; background: #fff; padding: 10px 12px;
  font: inherit; font-size: 14px; font-weight: 400; color: #1f2937; outline: none; transition: border-color .15s, box-shadow .15s;
}
.cmt-field textarea { resize: vertical; min-height: 100px; line-height: 1.9; }
.cmt-field input[readonly] { background: #f1f3f8; color: #6b7280; }
.cmt-field input:focus, .cmt-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(24, 119, 232, .12); }
.cmt-field .is-invalid { border-color: #e03131; }
.cmt-err { color: #e03131 !important; font-size: 12px; font-weight: 600 !important; }
.cmt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cmt-foot > small { font-size: 12px; color: #6b7280; }
.cmt-submit {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 22px;
  font: inherit; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #5b4dee); box-shadow: 0 8px 20px rgba(24, 119, 232, .25);
  transition: transform .15s, box-shadow .15s;
}
.cmt-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(24, 119, 232, .34); }
.cmt-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.cmt-replying { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.cmt-replying button { border: 0; background: #fff; color: #e03131; border-radius: 8px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.cmt-empty { text-align: center; color: #6b7280; padding: 26px 10px 6px; }
.cmt-empty i { font-size: 34px; color: #c7d2e4; }
.cmt-empty p { margin: 8px 0 0; font-size: 13px; }
.cmt-list, .cmt-children { list-style: none; margin: 0; padding: 0; }
.cmt-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.cmt-item { display: flex; gap: 12px; align-items: flex-start; }
.cmt-list > .cmt-item { border: 1px solid #e6e9f2; border-radius: 16px; padding: 14px; }
.cmt-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; object-fit: cover; background: #eef1f6; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmt-head b { font-size: 14px; color: #111827; }
.cmt-head small { font-size: 12px; color: #9ca3af; }
.cmt-text { font-size: 14px; line-height: 2; color: #374151; margin-top: 4px; overflow-wrap: anywhere; }
.cmt-reply { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; padding: 3px 10px; border-radius: 8px; background: var(--primary-soft); }
.cmt-reply:hover { background: var(--primary); color: #fff; text-decoration: none; }
.cmt-children { margin-top: 12px; padding-right: 14px; border-right: 3px solid var(--primary-soft); display: flex; flex-direction: column; gap: 12px; }
.cmt-children .cmt-avatar { width: 34px; height: 34px; flex-basis: 34px; }
.cmt-pages:empty { display: none; }
.cmt-pages { margin-top: 14px; }
@media (max-width: 576px) {
  .cmt-row { grid-template-columns: 1fr; }
  .cmt-submit { width: 100%; justify-content: center; }
}
.faq-box { margin-top: 18px; }
