.bbux-uploader {
  --bbux-accent: #a96532;
  --bbux-accent-dark: #7e4721;
  --bbux-accent-soft: #fff5eb;
  --bbux-text: #2d2926;
  --bbux-muted: #716961;
  --bbux-ok: #247a47;
  --bbux-error: #b42318;
  --bbux-border: #ded8d1;
  --bbux-card: #fff;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 14px;
  padding: 16px;
  border: 1px solid var(--bbux-border);
  border-radius: 16px;
  color: var(--bbux-text);
  background: #fffdfb;
  box-shadow: 0 6px 24px rgba(52, 35, 21, .06);
}

.bbux-uploader *,
.bbux-uploader *::before,
.bbux-uploader *::after {
  box-sizing: border-box;
}

.bbux-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bbux-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bbux-summary-copy {
  min-width: 0;
}

.bbux-status {
  margin: 0;
  color: var(--bbux-text);
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.35;
}

.bbux-help {
  margin: 4px 0 0;
  color: var(--bbux-muted);
  font-size: .86rem;
  line-height: 1.4;
}

.bbux-retry {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--bbux-accent);
  border-radius: 10px;
  color: var(--bbux-accent-dark);
  background: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}

.bbux-progress-wrap {
  margin: -2px 0 13px;
}

.bbux-progress-copy {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--bbux-muted);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.2;
}

.bbux-progress-percent {
  color: var(--bbux-accent-dark);
  font-variant-numeric: tabular-nums;
}

.bbux-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9e4;
}

.bbux-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bbux-accent), #dc945a);
  transition: width .16s linear;
}

.bbux-uploader.is-complete .bbux-progress span {
  background: var(--bbux-ok);
}

.bbux-progress-wrap[hidden],
.bbux-errors[hidden],
.bbux-errors:empty,
.bbux-help[hidden],
.bbux-retry[hidden] {
  display: none !important;
}

.bbux-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 102px));
  gap: 8px;
  align-items: start;
  justify-content: start;
}

.bbux-kind-audio .bbux-file-grid,
.bbux-kind-file .bbux-file-grid {
  grid-template-columns: minmax(0, 1fr);
}

.bbux-pick {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 110px;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1.5px dashed var(--bbux-accent);
  border-radius: 13px;
  color: var(--bbux-accent-dark);
  background: var(--bbux-accent-soft);
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

/* In the photo grid the picker is a square tile like the photos around it. */
.bbux-kind-image .bbux-pick {
  min-height: 0;
  aspect-ratio: 1 / 1;
  gap: 7px;
  padding: 8px 6px;
  border-radius: 12px;
  font-size: .8rem;
}

.bbux-kind-image .bbux-pick .bbux-pick-icon {
  width: 34px;
  height: 34px;
}

.bbux-kind-image .bbux-pick .bbux-pick-icon svg {
  width: 19px;
  height: 19px;
}

.bbux-pick:hover,
.bbux-pick:focus-visible {
  border-color: var(--bbux-accent-dark);
  color: var(--bbux-accent-dark);
  background: #ffead7;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(169, 101, 50, .14);
  transform: translateY(-1px);
}

.bbux-pick:active {
  transform: translateY(0);
}

.bbux-kind-audio .bbux-pick,
.bbux-kind-file .bbux-pick {
  min-height: 82px;
  flex-direction: row;
  justify-content: flex-start;
  padding: 15px 18px;
  text-align: left;
}

.bbux-pick-icon,
.bbux-preview-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--bbux-accent);
}

.bbux-pick-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(84, 48, 22, .1);
}

.bbux-pick-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.bbux-pick-label {
  overflow-wrap: anywhere;
}

/* Dropzone remains the transport, but its children become part of our grid. */
.wapf .bbux-uploader .bbux-zone {
  display: contents !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.bbux-zone .dz-message {
  display: none !important;
}

.bbux-fallback-files {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbux-fallback-files:empty {
  display: none;
}

.wapf .bbux-uploader .bbux-preview,
.bbux-uploader .bbux-fallback-file {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid var(--bbux-border);
  border-radius: 13px;
  background: var(--bbux-card);
  box-shadow: 0 2px 10px rgba(45, 31, 20, .055);
  overflow: hidden;
}

/* Photo tiles: the image IS the card. Name and size stay available to screen
   readers and as a tooltip; the controls float above the photo. The tile keeps
   a square footprint even when Dropzone has no thumbnail (HEIC, video). */
.wapf .bbux-kind-image .bbux-preview,
.bbux-kind-image .bbux-fallback-file {
  display: block !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border-radius: 12px;
}

.wapf .bbux-kind-image .bbux-preview > .dz-image,
.bbux-kind-image .bbux-preview-image > .bbux-preview-icon,
.bbux-kind-image .bbux-preview-audio > .bbux-preview-icon,
.bbux-kind-image .bbux-preview-video > .bbux-preview-icon,
.bbux-kind-image .bbux-preview-file > .bbux-preview-icon {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 0 !important; /* AIU's template carries inline padding-right:12px */
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: #f2efeb;
}

.wapf .bbux-kind-image .bbux-preview > .dz-image img,
.bbux-fallback-thumbnail {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

.bbux-kind-image .bbux-preview-file > .bbux-preview-icon svg,
.bbux-kind-image .bbux-preview-audio > .bbux-preview-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Keep the text for assistive tech, hide it visually on photo tiles. */
.wapf .bbux-kind-image .bbux-preview .dz-filename,
.bbux-kind-image .bbux-preview .bbux-file-name,
.bbux-kind-image .bbux-preview .bbux-preview-meta {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Green check on the finished photo. */
.bbux-kind-image .bbux-preview.bbux-uploaded::after {
  content: "✓";
  position: absolute;
  z-index: 2;
  bottom: 6px;
  left: 6px;
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bbux-ok);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(15, 40, 25, .35);
  pointer-events: none;
}

/* A tile waiting for its turn (or for the connection to return) must not fake
   activity: the spinner freezes instead of spinning. */
.bbux-kind-image .bbux-preview.bbux-tile-waiting:not(.bbux-uploaded)::before {
  animation-play-state: paused;
  opacity: .55;
}

/* A failed tile keeps the photo visible with a red "!" badge instead of a
   spinner, so the customer sees exactly which picture needs another try. */
.bbux-kind-image .bbux-preview.bbux-tile-failed:not(.bbux-uploaded)::before {
  display: none;
}

.bbux-kind-image .bbux-preview.bbux-tile-failed::after {
  content: "!";
  position: absolute;
  z-index: 2;
  bottom: 6px;
  left: 6px;
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(40, 15, 15, .35);
  pointer-events: none;
}

.bbux-fallback-file.bbux-tile-failed {
  border-color: #e0b4ae;
}

.bbux-tile-failed .bbux-preview-state {
  color: #c0392b;
  font-weight: 600;
}

/* A stray Dropzone image box must not add a second visual when our own
   placeholder/video visual is present (empty-type edge cases). */
.bbux-kind-image .bbux-preview.bbux-has-visual > .dz-image {
  display: none !important;
}

/* While a photo is uploading the tile is clearly "busy": dimmed picture,
   light veil and a centered spinner; the bar at the bottom shows progress. */
.bbux-kind-image .bbux-preview:not(.bbux-uploaded) .dz-image img,
.bbux-kind-image .bbux-preview:not(.bbux-uploaded) .bbux-fallback-thumbnail,
.bbux-kind-image .bbux-preview:not(.bbux-uploaded) .bbux-video-frame {
  opacity: .7;
}

.bbux-kind-image .bbux-preview:not(.bbux-uploaded)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid rgba(255, 255, 255, .55);
  border-top-color: var(--bbux-accent-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(255, 253, 251, .34);
  animation: bbux-spin .8s linear infinite;
  pointer-events: none;
}

@keyframes bbux-spin {
  to { transform: rotate(360deg); }
}

/* The centered spinner replaces the play badge while a video is uploading. */
.bbux-kind-image .bbux-preview-video:not(.bbux-uploaded) .bbux-video-badge {
  visibility: hidden;
}

/* Video tiles: real frame when the browser can decode it, otherwise a dark
   tile with a play badge and a "Video zapis" label. */
.bbux-preview-icon.bbux-video-visual {
  position: relative;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  background: linear-gradient(160deg, #423a32, #211c18) !important;
}

.bbux-video-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bbux-video-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 13, 9, .62);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.bbux-video-badge svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
  fill: currentColor;
}

.bbux-video-label {
  position: relative;
  z-index: 1;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.bbux-video-visual.has-frame .bbux-video-label {
  display: none;
}

/* In audio/file list rows the 52px icon box only has room for the badge. */
.bbux-kind-audio .bbux-video-label,
.bbux-kind-file .bbux-video-label {
  display: none;
}

.bbux-kind-audio .bbux-video-badge,
.bbux-kind-file .bbux-video-badge {
  width: 24px;
  height: 24px;
}

.wapf .bbux-uploader .dz-filename,
.bbux-uploader .bbux-file-name {
  grid-area: filename;
  display: block !important;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
  color: var(--bbux-text);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bbux-preview-meta {
  grid-area: meta;
  display: flex;
  min-width: 0;
  gap: 4px 7px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--bbux-muted);
  font-size: .7rem;
  line-height: 1.3;
}

.bbux-preview-state {
  color: var(--bbux-ok);
  font-weight: 650;
}

.wapf .bbux-uploader .dz-left {
  grid-area: actions;
  display: flex;
  width: auto;
  max-width: none;
  min-width: 0;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

/* On photo tiles .dz-left becomes a full overlay: controls in the top right
   corner, the Dropzone progress bar along the bottom edge of the photo. */
.wapf .bbux-kind-image .bbux-preview > .dz-left {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px;
  pointer-events: none;
  grid-area: auto;
  gap: 0;
}

.wapf .bbux-kind-image .bbux-preview > .dz-left > * {
  pointer-events: auto;
}

/* Markup order is progress first, buttons second; the buttons must stay in
   the top corner even while the progress bar is hidden after completion. */
.wapf .bbux-kind-image .bbux-preview > .dz-left > .dz-progress-wrapper {
  order: 2;
}

.wapf .bbux-uploader .dz-options {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* WAPF's stylesheet keeps the wrapper at opacity 0 (revealed by animation),
   gives it flex:1 and positions .dz-progress/.dz-upload absolutely. The
   wrapper must therefore always be its children's containing block and must
   never grow: otherwise the fill escapes to the top of the tile as a brown
   line and the stretched wrapper shows up as a white block. */
.wapf .bbux-uploader .dz-progress-wrapper {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 4px !important;
  overflow: hidden;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 999px;
  background: #ede7e1;
  opacity: 1 !important;
}

.wapf .bbux-kind-image .bbux-preview .dz-progress-wrapper {
  position: relative; /* keeps the absolute fill inside this 4px bar */
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  align-self: stretch;
  pointer-events: none;
  background: rgba(255, 255, 255, .8);
}

.wapf .bbux-uploader .dz-progress-wrapper > div {
  top: 0 !important;
  left: 0;
  height: 4px !important;
  border-radius: 999px;
}

/* The wrapper itself paints the track; Dropzone's track div stays invisible
   and only the upload fill is tinted. */
.wapf .bbux-uploader .dz-progress-wrapper > .dz-progress {
  width: 100%;
  background: transparent !important;
}

.wapf .bbux-uploader .dz-progress-wrapper > .dz-upload {
  background: var(--bbux-accent) !important;
}

.wapf .bbux-uploader .dz-complete .dz-progress-wrapper,
.wapf .bbux-uploader .bbux-uploaded .dz-progress-wrapper {
  display: none;
}

.wapf .bbux-uploader .dz-remove,
.wapf .bbux-uploader .start-crop {
  display: inline-flex !important;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  padding: 8px !important;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: #7a4c35;
  background: #f5eee8;
  cursor: pointer;
}

.wapf .bbux-uploader .dz-remove:hover,
.wapf .bbux-uploader .start-crop:hover {
  color: #5d2f20;
  background: #eadcd2;
}

.wapf .bbux-uploader .dz-remove svg,
.wapf .bbux-uploader .start-crop svg {
  width: 14px !important;
  height: 14px !important;
}

/* The AIU edit button only makes sense once the photo is uploaded. */
.wapf .bbux-uploader .start-crop {
  display: none !important;
}

.wapf .bbux-uploader .dz-complete .start-crop,
.wapf .bbux-uploader .bbux-uploaded .start-crop {
  display: inline-flex !important;
}

.wapf .bbux-kind-image .bbux-preview .dz-remove,
.wapf .bbux-kind-image .bbux-preview .start-crop {
  width: 28px;
  height: 28px;
  padding: 6px !important;
  border-radius: 8px;
  color: #4c3a2d;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 1px 6px rgba(31, 20, 12, .3);
}

.wapf .bbux-kind-image .bbux-preview .dz-remove:hover {
  color: var(--bbux-error);
  background: #fff;
}

.wapf .bbux-kind-image .bbux-preview .start-crop:hover {
  color: var(--bbux-accent-dark);
  background: #fff;
}

.wapf .bbux-kind-image .bbux-preview .dz-remove svg,
.wapf .bbux-kind-image .bbux-preview .start-crop svg {
  width: 12px !important;
  height: 12px !important;
}

.bbux-file-remove {
  grid-area: actions;
  min-height: 34px;
  align-self: center;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  color: #7a382d;
  background: #f8eae7;
  font: inherit;
  font-size: .77rem;
  font-weight: 700;
  cursor: pointer;
}

.bbux-kind-image .bbux-preview > .bbux-file-remove {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  color: #4c3a2d;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 1px 6px rgba(31, 20, 12, .3);
}

.bbux-kind-image .bbux-preview > .bbux-file-remove:hover {
  color: var(--bbux-error);
  background: #fff;
}

.bbux-file-remove svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.wapf .bbux-uploader .dz-remove:focus-visible,
.wapf .bbux-uploader .start-crop:focus-visible,
.bbux-file-remove:focus-visible,
.bbux-retry:focus-visible {
  outline: 2px solid var(--bbux-accent-dark);
  outline-offset: 1px;
}

.bbux-kind-audio .bbux-preview,
.bbux-kind-file .bbux-preview {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon filename actions"
    "icon meta actions"
    "player player player";
  gap: 4px 12px;
  align-items: center;
  padding: 13px !important;
}

.bbux-kind-audio .bbux-preview > .bbux-preview-icon,
.bbux-kind-file .bbux-preview > .bbux-preview-icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bbux-accent-soft);
}

.bbux-kind-audio .bbux-preview > .bbux-preview-icon svg,
.bbux-kind-file .bbux-preview > .bbux-preview-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.bbux-kind-audio .bbux-preview > .dz-image,
.bbux-kind-file .bbux-preview > .dz-image {
  display: none !important;
}

.bbux-audio-player {
  grid-area: player;
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 7px;
}

.bbux-audio-player[hidden] {
  display: none !important;
}

.bbux-fallback-file.is-removing {
  opacity: .55;
  pointer-events: none;
}

.bbux-errors {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f0b9b4;
  border-radius: 10px;
  color: #7a271a;
  background: #fef3f2;
  font-size: .88rem;
  line-height: 1.4;
}

.bbux-errors:empty {
  margin: 0;
  padding: 0;
  border: 0;
}

.bbux-drop-copy {
  display: none;
}

.bbux-uploader.is-dragging {
  border-color: var(--bbux-accent);
  background: var(--bbux-accent-soft);
  box-shadow: 0 0 0 4px rgba(169, 101, 50, .14);
}

.bbux-uploader.is-dragging .bbux-file-grid {
  opacity: .25;
}

.bbux-uploader.is-dragging .bbux-drop-copy {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bbux-accent-dark);
  font-weight: 800;
}

.bbux-uploader.is-dragging {
  position: relative;
}

.bbux-uploader.is-busy .bbux-pick {
  opacity: .82;
}

@media (max-width: 600px) {
  .bbux-uploader {
    margin-top: 6px;
    padding: 12px;
    border-radius: 14px;
  }

  /* Four photos per row keeps 15 uploads at four short rows. */
  .bbux-kind-image .bbux-file-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .bbux-kind-audio .bbux-file-grid,
  .bbux-kind-file .bbux-file-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bbux-pick {
    min-height: 108px;
    padding: 10px 6px;
  }

  .bbux-kind-image .bbux-pick {
    gap: 4px;
    padding: 6px 4px;
    font-size: .72rem;
  }

  .bbux-kind-image .bbux-pick .bbux-pick-icon {
    width: 28px;
    height: 28px;
  }

  .bbux-kind-image .bbux-pick .bbux-pick-icon svg {
    width: 16px;
    height: 16px;
  }

  .bbux-kind-audio .bbux-pick,
  .bbux-kind-file .bbux-pick {
    min-height: 74px;
    padding: 12px 14px;
  }

  .bbux-retry {
    min-height: 44px;
  }

  .wapf .bbux-kind-image .bbux-preview > .dz-left {
    padding: 4px;
  }

  .wapf .bbux-uploader .dz-options {
    gap: 3px;
  }

  .wapf .bbux-kind-image .bbux-preview .dz-remove,
  .wapf .bbux-kind-image .bbux-preview .start-crop,
  .bbux-kind-image .bbux-preview > .bbux-file-remove {
    width: 27px;
    height: 27px;
    padding: 6px !important;
  }

  .bbux-kind-image .bbux-preview > .bbux-file-remove {
    top: 4px;
    right: 4px;
    padding: 6px;
  }

  .bbux-kind-image .bbux-preview.bbux-uploaded::after {
    bottom: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    font-size: .66rem;
  }

  .bbux-kind-audio .bbux-preview,
  .bbux-kind-file .bbux-preview {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 4px 9px;
    padding: 11px !important;
  }

  .bbux-kind-audio .bbux-preview > .bbux-preview-icon,
  .bbux-kind-file .bbux-preview > .bbux-preview-icon {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 380px) {
  .bbux-kind-image .bbux-file-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbux-pick,
  .bbux-progress span {
    transition: none;
  }

  .bbux-kind-image .bbux-preview:not(.bbux-uploaded)::before {
    animation: none;
  }
}
