.maubazaar-seller-media {
  gap: 0.55rem;
}

.maubazaar-seller-media > label {
  display: block;
}

.maubazaar-seller-drop-zone {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 170px;
  padding: 24px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.maubazaar-seller-drop-zone:hover,
.maubazaar-seller-drop-zone:focus-visible,
.maubazaar-seller-drop-zone.is-dragover {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
  outline: none;
}

.maubazaar-seller-drop-zone strong {
  color: #1e3a5f;
  font-size: 0.95rem;
}

.maubazaar-seller-drop-zone > span:not(.maubazaar-seller-upload-icon):not(.maubazaar-seller-image-counter):not(.maubazaar-seller-image-warning) {
  font-size: 0.82rem;
}

.maubazaar-seller-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff1d6;
  color: #c47a52;
  font-size: 1.65rem;
  line-height: 1;
}

.maubazaar-seller-upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.maubazaar-seller-image-counter {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e3a5f;
  font-size: 0.76rem;
  font-weight: 750;
}

.maubazaar-seller-image-warning {
  max-width: 100%;
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 700;
}

.maubazaar-seller-image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.maubazaar-seller-existing-gallery {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.maubazaar-seller-existing-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.maubazaar-seller-existing-image-item {
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #e2e8f0;
}

.maubazaar-seller-existing-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maubazaar-seller-image-preview:empty,
.maubazaar-seller-image-preview-grid:empty {
  display: none;
}

.maubazaar-seller-image-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #e2e8f0;
}

.maubazaar-seller-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maubazaar-seller-existing-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.88);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}
.maubazaar-seller-image-cover {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: #f5aa26;
  color: #102c49;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.maubazaar-seller-image-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.maubazaar-seller-image-remove:hover,
.maubazaar-seller-image-remove:focus-visible {
  background: #b42318;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.maubazaar-seller-listing {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.maubazaar-seller-listing-media {
  box-sizing: border-box;
  display: block;
  aspect-ratio: 1;
  width: 52px;
  min-width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 10px;
  background: #eaf2f5;
}

.maubazaar-seller-listing-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.maubazaar-seller-listing-thumbnail--empty {
  display: grid;
  place-items: center;
  color: #c47a52;
  font-size: 1.4rem;
}

@media (max-width: 640px) {
  .maubazaar-seller-drop-zone {
    min-height: 150px;
    padding: 20px 14px;
  }

  .maubazaar-seller-video-heading {
    flex-direction: column;
    gap: 0.55rem;
  }

  .maubazaar-seller-video-preview {
    max-width: none;
  }

  .maubazaar-seller-listing {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .maubazaar-seller-listing-media {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .maubazaar-seller-listing-status {
    grid-column: 2;
    justify-self: start;
  }
}

.maubazaar-seller-image-readiness {
  margin: 0.65rem 0 0;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 700;
}

.maubazaar-seller-video {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2ebe7;
}

.maubazaar-seller-video-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.maubazaar-seller-video-heading > div {
  display: grid;
  gap: 0.22rem;
}

.maubazaar-seller-video-heading strong {
  color: #102c49;
  font-size: 0.86rem;
}

.maubazaar-seller-video-heading span:not(.maubazaar-seller-video-limit) {
  color: #718293;
  font-size: 0.76rem;
  line-height: 1.45;
}

.maubazaar-seller-video-limit {
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  border: 1px solid #cce6dc;
  border-radius: 999px;
  background: #eef7f4;
  color: #0b5d4b;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.maubazaar-seller-video-picker {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bfd4cd;
  border-radius: 12px;
  background: #fbfdfc;
  color: #102c49;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.maubazaar-seller-video-picker:hover,
.maubazaar-seller-video-picker:focus-within {
  border-color: #0b5d4b;
  background: #f1faf6;
  box-shadow: 0 0 0 4px rgba(11, 93, 75, 0.1);
}

.maubazaar-seller-video-picker-icon {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 9px;
  background: #fff3d6;
  color: #a96913;
  font-size: 0.95rem;
}

.maubazaar-seller-video-picker > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.maubazaar-seller-video-picker strong {
  font-size: 0.8rem;
}

.maubazaar-seller-video-picker small {
  color: #718293;
  font-size: 0.7rem;
}

.maubazaar-seller-video-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.maubazaar-seller-video-input:focus-visible + input + .maubazaar-seller-video-preview,
.maubazaar-seller-video-input:focus-visible {
  outline: 3px solid rgba(240, 166, 41, 0.45);
  outline-offset: 3px;
}

.maubazaar-seller-video-preview {
  position: relative;
  display: grid;
  gap: 0.55rem;
  max-width: 360px;
  overflow: hidden;
  border: 1px solid #dbe6e2;
  border-radius: 12px;
  background: #102c49;
}

.maubazaar-seller-video-preview video {
  display: block;
  width: 100%;
  max-height: 220px;
  background: #102c49;
}

.maubazaar-seller-video-remove {
  justify-self: start;
  margin: 0 0.7rem 0.7rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(16, 44, 73, 0.75);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.maubazaar-seller-video-remove:hover,
.maubazaar-seller-video-remove:focus-visible {
  background: #b5492f;
}

.maubazaar-seller-video-status {
  margin: 0;
  color: #718293;
  font-size: 0.74rem;
  line-height: 1.45;
}

.maubazaar-seller-image-preview {
  cursor: grab;
}

.maubazaar-seller-image-preview.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.maubazaar-seller-image-preview.is-drop-target {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

.maubazaar-seller-image-toolbar,
.maubazaar-seller-image-reorder {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.maubazaar-seller-image-toolbar {
  right: 5px;
  bottom: 5px;
  left: 5px;
}

.maubazaar-seller-image-toolbar .maubazaar-seller-image-cover {
  position: static;
}

.maubazaar-seller-image-reorder {
  top: 5px;
  left: 5px;
}

.maubazaar-seller-image-cover-button,
.maubazaar-seller-image-reorder-button {
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.maubazaar-seller-image-cover-button {
  padding: 0.25rem 0.42rem;
}

.maubazaar-seller-image-reorder-button {
  width: 24px;
  padding: 0;
}

.maubazaar-seller-image-cover-button:hover,
.maubazaar-seller-image-cover-button:focus-visible,
.maubazaar-seller-image-reorder-button:hover,
.maubazaar-seller-image-reorder-button:focus-visible {
  background: #0f766e;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.maubazaar-seller-image-cover-button:disabled,
.maubazaar-seller-image-reorder-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .maubazaar-seller-drop-zone,
  .maubazaar-seller-image-preview {
    transition: none;
  }
}
