/* Remove-bg tool — dropzone + preview (card shell in tool-form.css) */

.mk-tool-rbg {
  max-width: 720px;
}

.mk-tool-rbg__form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.mk-tool-rbg__drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 168px;
  padding: 1.6rem 1.25rem;
  border: 1.5px dashed rgba(34, 51, 130, 0.28);
  border-radius: 16px;
  background: #fbfbfd;
  color: var(--mk-royal, #223382);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mk-tool-rbg__drop:hover,
.mk-tool-rbg__drop.is-drag {
  border-color: #b8612f;
  background: rgba(184, 97, 47, 0.06);
  box-shadow: 0 0 0 3px rgba(184, 97, 47, 0.12);
}

.mk-tool-rbg__drop-title {
  font-family: var(--mk-font-display, Manrope, system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.mk-tool-rbg__drop-hint {
  font-size: 0.9rem;
  color: var(--mk-muted, #5c6480);
  text-align: center;
  word-break: break-all;
}

.mk-tool-rbg__drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mk-tool-rbg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mk-tool-rbg__status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--mk-muted, #5c6480);
}

.mk-tool-rbg__status.is-busy {
  color: var(--mk-royal, #223382);
}

.mk-tool-rbg__status.is-error {
  color: #b42318;
}

.mk-tool-rbg__preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .mk-tool-rbg__preview {
    grid-template-columns: 1fr;
  }
}

.mk-tool-rbg__fig {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--mk-border, rgba(34, 51, 130, 0.12));
  border-radius: 14px;
  background: #fff;
}

.mk-tool-rbg__fig figcaption {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mk-muted, #5c6480);
}

.mk-tool-rbg__fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #e8e4de 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #e8e4de 25%, transparent 25%) 0 8px / 16px 16px,
    linear-gradient(45deg, transparent 75%, #e8e4de 75%) 8px -8px / 16px 16px,
    linear-gradient(-45deg, transparent 75%, #e8e4de 75%) -8px 0 / 16px 16px,
    #f4f1ec;
}

.mk-tool-rbg__download-wrap {
  margin-top: 1.25rem;
}
