/* Local image override — marketplace playground (no upload) */

.lp-locimg {
  margin: 0;
}

.lp-locimg-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.lp-locimg-prev {
  width: 72px;
  height: 52px;
  border-radius: 7px;
  border: 1px solid var(--theme-border, var(--line, #e4d5cd));
  background: var(--theme-surface, #fff);
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: var(--theme-text-muted, var(--mut, #7a716c));
  font: inherit;
  box-sizing: border-box;
}

.lp-locimg-prev.empty {
  font-size: 10.5px;
  font-weight: 700;
}

.lp-locimg-prev:hover {
  border-color: var(--theme-primary, var(--rose, #a84a5e));
}

.lp-locimg-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.lp-locimg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  flex: 1 1 140px;
  min-width: 0;
  position: relative;
}

/*
  Visually hide the file input without display:none / [hidden].
  iOS Safari will not open a file dialog from a <label for> that targets
  a display:none / hidden input.
*/
.lp-locimg-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.lp-locimg-actions .btn.sm,
.lp-locimg-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--theme-border, var(--line, #e4d5cd));
  background: var(--theme-surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
}

.lp-locimg-choose:hover,
.lp-locimg-actions .btn.sm:hover {
  border-color: var(--theme-primary, var(--rose, #a84a5e));
}

.lp-locimg-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 11px;
  color: var(--theme-text-muted, var(--mut, #7a716c));
  line-height: 1.3;
}

.lp-locimg-err {
  flex: 1 1 100%;
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #b42318;
  line-height: 1.3;
}
