@media (min-width: 601px) {
  html body.csdbpage .csdbcomposer2 .csdbfootbar.imagemode {
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.csdbpage .csdbcomposer2 .csdbfootbar.imagemode .csimagemode {
    flex: 0 1 auto !important;
    width: max-content !important;
    max-width: calc(100% - 62px) !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.csdbpage .csdbcomposer2 .csdbfootbar.imagemode .csimagemode > :not(.csimagecost) {
    flex: 0 0 auto !important;
  }

  html body.csdbpage .csdbcomposer2 .csdbfootbar.imagemode .csimagecost {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin-left: 12px !important;
    padding-left: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: right !important;
  }

  html body.csdbpage .csdbcomposer2 .csdbfootbar.imagemode .csdbsend {
    margin-left: auto !important;
  }
}

/* The legacy theme applies .on to layout groups as well as selected buttons. */
html body.csdbpage.csdbpage.csdbpage section.csdbcomposer2 .csdbfootbar.imagemode .csimagemode.on {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 8px !important;
  align-items: center !important;
}

html body.csdbpage.csdbpage.csdbpage section.csdbcomposer2 .csdbfootbar.imagemode .csimagemode.on :is(button.cs-select-trigger, button.csimagesummary, button.csimageopt) {
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
}

html body.csdbpage.csdbpage.csdbpage section.csdbcomposer2 .csdbfootbar.imagemode .csimagemode.on button.csimageopt {
  width: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
}

html body.csdbpage.csdbpage.csdbpage section.csdbcomposer2 .csdbfootbar.imagemode .csimagecost {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  width: auto !important;
  min-width: 0 !important;
}
