/* Badges */
.sellewa-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.sellewa-badges .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #0f172a;
}

.sellewa-badges .badge-score { background: #eef2ff; color: #3730a3; }
.sellewa-badges .badge-trust { background: #ecfeff; color: #155e75; }
.sellewa-badges .badge-ok    { background: #ecfdf5; color: #166534; }

/* Form rows */
.sellewa-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sellewa-row input[type="text"],
.sellewa-row input[type="number"] {
  flex: 1;
}

.sellewa-inline {
  display:flex;
  align-items:center;
  gap:8px;
  margin: 10px 0;
}

.sellewa-small {
  font-size: 12px;
  opacity: .8;
}

/* Camera preview container for Quagga */
.sellewa-camera-preview {
  width: 100%;
  max-width: 420px;
  height: 260px;
  background: #000;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

/* Image preview */
.sellewa-image-preview {
  margin-top: 10px;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.sellewa-image-preview img {
  width: 100%;
  display: block;
}

/* Quality Meter */
.sellewa-quality-meter {
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.sellewa-quality-meter .qm-top {
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 8px;
}

.sellewa-quality-meter .qm-score {
  font-weight: 700;
  color: #0a7cff;
}

.sellewa-quality-meter .qm-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.sellewa-quality-meter .qm-fill {
  height: 10px;
  width: 0%;
  background: #0a7cff;
  border-radius: 999px;
  transition: width .25s ease;
}

.sellewa-quality-meter .qm-tips {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  opacity: .9;
}

.sellewa-alert {
    padding: 14px;
    margin: 15px 0;
    border-radius: 6px;
    background: #fff;
}

.sellewa-alert.error {
    border-left: 4px solid #d63638;
}

.sellewa-alert.warning {
    border-left: 4px solid #dba617;
}

.sellewa-alert {
    padding:12px 16px;
    border-radius:8px;
    margin:12px 0;
    font-weight:600;
}
.sellewa-alert-processing { background:#e0f2fe;color:#075985; }
.sellewa-alert-successful { background:#dcfce7;color:#166534; }
.sellewa-alert-failed { background:#fee2e2;color:#991b1b; }





/* Sticky listing preview */

.sellewa-preview,
.preview-card,
#listingPreview {

    position: sticky;
    top: 100px;

}


