/* Thuộc tính tin đăng: form, chi tiết, nhãn thẻ tin */
.ab-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.ab { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 700; line-height: 1.6; background: #e5e7eb; color: #374151; }
.ab-sale { background: #fee2e2; color: #b91c1c; }
.ab-soon { background: #fef3c7; color: #92400e; }
.ab-hot { background: #fdf0c8; color: #8a5a00; }
.ab-ok { background: #dcfce7; color: #166534; }
.ab-new { background: #dbeafe; color: #1d4ed8; }
.old-price { color: #9ca3af; text-decoration: line-through; font-weight: 400; font-size: 13px; margin-left: 4px; }
.pd-oldprice { color: #9ca3af; text-decoration: line-through; font-weight: 400; font-size: 14px; display: block; }
.pd-sale { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px; background: #fee2e2; color: #b91c1c; font-size: 12px; font-weight: 700; vertical-align: middle; }
.pd-code { display: inline-block; font-family: ui-monospace, Consolas, monospace; background: #f3f4f6; border-radius: 6px; padding: 1px 8px; font-size: 12.5px; color: #374151; }

/* Form */
.af-wrap { margin-top: 4px; }
.af-progress { background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.af-progress-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.af-bar { height: 8px; background: #fde7d3; border-radius: 8px; overflow: hidden; margin: 8px 0 4px; }
.af-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f59e0b, #16a34a); border-radius: 8px; transition: width .25s; }
.af-tip { font-size: 12.5px; color: #6b7280; }
.af-group { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.af-group > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.af-group > summary::-webkit-details-marker { display: none; }
.af-group > summary::after { content: '▾'; color: #9ca3af; margin-left: 8px; }
.af-group[open] > summary::after { content: '▴'; }
.af-group > summary span { flex: 1; }
.af-count { font-style: normal; font-size: 12px; font-weight: 600; color: #16a34a; }
.af-body { padding: 4px 14px 12px; }
.af-field { margin: 12px 0; }
.af-label { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.af-label small { font-weight: 400; color: #9ca3af; margin-left: 4px; }
.af-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.af-chip { border: 1px solid #d1d5db; background: #fff; color: #374151; border-radius: 20px; padding: 6px 14px; font-size: 13.5px; cursor: pointer; font-family: inherit; transition: all .12s; }
.af-chip:hover { border-color: var(--primary, #f0c23b); }
.af-chip.on { background: var(--primary, #f0c23b); border-color: var(--primary, #f0c23b); color: var(--primary-ink); font-weight: 600; }
.af-chip:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.af-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.post-extra { margin-top: 4px; }
.hint { font-size: 12.5px; color: #6b7280; margin-top: 4px; }

/* Chi tiết */
.ad-wrap { margin-top: 18px; }
.ad-group { margin-top: 14px; }
.ad-group h3 { font-size: 14.5px; margin: 0 0 8px; color: #374151; }
.ad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; overflow: hidden; }
.ad-row { box-shadow: 0 0 0 .5px var(--line, #e5e7eb); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; background: #fff; font-size: 14px; }
.ad-row.wide { grid-column: 1 / -1; }
.ad-k { color: #6b7280; font-size: 12.5px; }
.ad-v { text-align: left; }
.ad-chip { display: inline-block; padding: 3px 10px; margin: 2px 4px 2px 0; border-radius: 20px; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--accent-ink); font-size: 13px; }
.ad-yes { color: #16a34a; font-weight: 700; }

@media (max-width: 640px) {
  .ad-grid { grid-template-columns: 1fr; }
  .af-chip { padding: 7px 13px; }
}
