/**
 * Flatsome / WooCommerce theme resets for the saleAgent chat widget.
 * Loaded after sale-ai chat-widget.css so shop matches marketing site.
 */

#rcp-widget {
  width: 56px !important;
  height: 56px !important;
}

/* Icon-only controls: theme button padding collapses fixed-size SVGs. */
#rcp-toggle,
#rcp-whatsapp,
#rcp-panel-close,
#rcp-attach,
#rcp-send {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#rcp-toggle {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 56px !important;
  height: 56px !important;
}

#rcp-whatsapp {
  position: absolute !important;
  bottom: 0 !important;
  right: 68px !important;
  width: 56px !important;
  height: 56px !important;
  text-decoration: none !important;
}

#rcp-panel-close {
  margin-left: auto !important;
  width: 34px !important;
  height: 34px !important;
}

/* Composer row: Flatsome button/input width:100% wraps attach + send onto new lines. */
#rcp-input-area {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
}

#rcp-input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  box-sizing: border-box !important;
}

#rcp-attach,
#rcp-send {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  float: none !important;
}

#rcp-attach {
  width: 38px !important;
  height: 38px !important;
}

#rcp-send {
  width: 40px !important;
  height: 40px !important;
  border: none !important;
  border-radius: 50% !important;
}

#rcp-widget svg {
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}
