/* ฝากขาย — โทนเดียวกับหน้า products (mb-shop + sidebar ตัวกรองครบ) */

.csg-page .mb-shop-side.mb-filters {
  margin-top: 0;
}

.csg-page .csg-login-wrap {
  margin: 0 auto 48px;
}

.csg-page .csg-app {
  margin-top: 0;
}

.csg-page .csg-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.csg-page .csg-panel-intro {
  font-size: 14px;
  color: var(--ec-muted, #64748b);
  line-height: 1.65;
  margin: -6px 0 16px;
}

.csg-category-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 6px 0 0;
  line-height: 1.45;
}

.csg-page #csgCategory:not(:placeholder-shown),
.csg-page #csgCategory.csg-category-filled {
  background: #f8fafc;
  color: var(--ec-navy, #0f2744);
  font-weight: 500;
  cursor: default;
}

.csg-page .pf-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  color: var(--ec-text, #0f172a);
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.csg-page .pf-form select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.csg-form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .csg-form-row2 {
    grid-template-columns: 1fr;
  }
}

.csg-page .csg-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
}

.csg-alert {
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.csg-alert.is-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.csg-alert.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.csg-page .csg-steps li i {
  color: var(--ec-navy, #0f2744);
  font-size: 13px;
}

.csg-history-panel {
  margin-top: 0;
}

.csg-history-empty {
  font-size: 14px;
  color: #94a3b8;
  text-align: center;
  padding: 28px 12px;
  line-height: 1.5;
}

.csg-history-list {
  display: grid;
  gap: 12px;
}

.csg-history-card {
  background: #f8fafc;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.csg-history-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.csg-history-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0a1628;
  border-bottom: 1px solid var(--ec-line, #e2e8f0);
}

.csg-history-card__body {
  padding: 14px 16px 16px;
}

.csg-history-card__body h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-text, #0f172a);
  margin: 0 0 6px;
  line-height: 1.35;
}

.csg-history-meta {
  font-size: 12px;
  color: var(--ec-muted, #64748b);
  line-height: 1.55;
  margin: 0 0 8px;
}

.csg-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.csg-badge--pending { background: #fef3c7; color: #92400e; }
.csg-badge--reviewing { background: #dbeafe; color: #1d4ed8; }
.csg-badge--approved { background: #d1fae5; color: #047857; }
.csg-badge--rejected { background: #fee2e2; color: #b91c1c; }
.csg-badge--listed { background: #ede9fe; color: #6d28d9; }

.csg-images-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 10px;
  line-height: 1.5;
}

.csg-images-drop {
  border: 1.5px dashed #cbd5e1;
  border-radius: 4px;
  padding: 18px 16px;
  background: #f8fafc;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.csg-images-drop.is-dragover {
  border-color: var(--ec-navy, #0f2744);
  background: #eff6ff;
}

.csg-images-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  background: #fff;
  color: var(--ec-navy, #0f2744);
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.csg-images-add:hover {
  border-color: #94a3b8;
  background: #fff;
}

.csg-images-add i {
  color: var(--ec-navy, #0f2744);
}

.csg-images-drop-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 0;
}

.csg-images-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-start;
}

.csg-images-preview:empty {
  margin-top: 0;
}

.csg-img-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--ec-line, #e2e8f0);
  background: #fff;
}

.csg-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.csg-img-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: rgba(15, 39, 68, 0.78);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csg-img-remove:hover {
  background: #dc2626;
}

@media (max-width: 900px) {
  .csg-page .pf-contact-layout {
    grid-template-columns: 1fr;
  }
}
