.gallery-upload-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 54px;
  padding: 8px;
  border: 1px dashed #b8c9e3;
  border-radius: 10px;
  background: #f8faff;
}

.gallery-upload-control .gallery-file-input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  white-space: nowrap;
}

.gallery-upload-trigger {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.gallery-file-input:focus + .gallery-upload-trigger {
  outline: 3px solid rgba(37, 99, 235, .2);
  outline-offset: 2px;
}

.gallery-selected-files {
  min-width: 0;
  color: #526174;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.product-gallery[data-gallery-drag-surface] {
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.product-gallery[data-gallery-drag-surface].gallery-dragging {
  cursor: grabbing;
}

.product-gallery[data-gallery-drag-surface] .product-gallery-slides button {
  cursor: inherit;
}

.product-gallery[data-gallery-drag-surface] .product-gallery-slides img {
  pointer-events: none;
}

@media (max-width: 600px) {
  .gallery-upload-control {
    align-items: stretch;
  }

  .gallery-upload-trigger {
    width: 100%;
    text-align: center;
  }
}
