
/* oMATIC Minds v0.6.8.53 Image Studio typing tool visual cleanup.
   Full-package build from v0.6.8.52. This is a visual-only patch:
   - make mobile Show/Hide typing tool look like a real full-width button
   - make prompt textarea blend into the composer instead of having its own box
   - remove the circle border around the reference upload + icon */

body.om-image-studio-route .om-image-studio-composer-shell,
body.om-image-studio-route #om-image-studio-generate-form {
  box-sizing: border-box !important;
}

/* Prompt field should visually mesh with the composer, not look like a separate boxed input. */
body.om-image-studio-route #om-image-studio-generate-form textarea[name="prompt"] {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: inherit !important;
}

/* Remove the circular outline/border styling from the reference upload + button/icon. */
body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus,
body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus[data-image-reference-trigger] {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus::before,
body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus::after,
body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus[data-image-reference-trigger]::before,
body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus[data-image-reference-trigger]::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.om-image-studio-route #om-image-studio-generate-form .om-image-ref-plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
}

/* Desktop/tablet: keep the plus simple and the prompt area blended into the bar. */
@media (min-width: 641px) {
  body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus,
  body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus[data-image-reference-trigger] {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    color: rgba(255,255,255,.9) !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form .om-image-ref-plus {
    font-size: 1.65rem !important;
    font-weight: 400 !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form textarea[name="prompt"] {
    padding: 10px 12px !important;
  }
}

/* Phone: make the hide/show typing tool a clean real button, not a tiny pill. */
@media (max-width: 640px) {
  body.om-image-studio-route .om-image-phone-composer-toggle {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 0 10px 0 !important;
    padding: 9px 14px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: .86rem !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.om-image-phone-composer-closed.om-image-studio-route .om-image-studio-composer-shell {
    right: 12px !important;
    bottom: 12px !important;
    width: min(210px, calc(100vw - 84px)) !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  body.om-image-phone-composer-closed.om-image-studio-route .om-image-phone-composer-toggle {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background: rgba(105,105,105,.96) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.34) !important;
    pointer-events: auto !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus,
  body.om-image-studio-route #om-image-studio-generate-form .om-chat-composer-plus[data-image-reference-trigger] {
    min-height: 38px !important;
    height: 38px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form .om-image-ref-plus {
    display: none !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form .om-image-ref-mobile-label {
    display: inline !important;
    white-space: nowrap !important;
  }

  body.om-image-studio-route #om-image-studio-generate-form textarea[name="prompt"] {
    width: 100% !important;
    min-height: 58px !important;
    padding: 10px 12px !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
}
