/* components/chatwoot/container/custom.css */
/* Example: Change background color */

section.max-w-5xl.mx-auto {
  display: none;
}
/* Hide sidenav element when embedded in iframe */
body.is-iframe #app aside section {
  display: none;
}

/* body.is-iframe #app aside nav > ul > li {
  display: none;
} */

body.is-iframe #app aside {
  display: none !important;
}

body.is-iframe #app aside nav > ul > li:nth-child(1) {
  display: block;
}

body.is-iframe #app aside nav > ul > li:nth-child(2) {
  display: block;
}

body.is-iframe #app aside nav > ul > li:nth-child(5) {
  display: block;
}

/* Hide sidenav section when embedded in iframe */
body.is-iframe div:has(> .self-start) {
  display: none;
}

/* Hide conversation header bar when embedded in iframe */
body.is-iframe
  #app
  > div.flex.flex-grow.overflow-hidden.text-n-slate-12
  > main
  > section
  > div.h-full.w-full.flex-1
  > div
  > div.flex.items-center.justify-between.w-full.gap-2.border-b.px-3.h-12.rtl\:border-r.border-n-weak.flex-shrink-0 {
  display: none;
}

/* Hide floating action buttons when embedded in iframe */
body.is-iframe
  #app
  > div.flex.flex-grow.overflow-hidden.text-n-slate-12
  > main
  > section
  > div.h-full.w-full.flex-1
  > div
  > div.flex.h-\[calc\(100\%-48px\)\].min-w-0
  > div
  > div.flex.h-full.min-h-0.m-0
  > div.has-\[button\:not\(\:disabled\)\:active\]\:scale-\[0\.98\].transition-transform.duration-150.ease-out.flex.flex-col.justify-center.items-center.absolute.top-36.xl\:top-24.ltr\:right-2.rtl\:left-2.bg-n-solid-2\/90.backdrop-blur-lg.border.border-n-weak\/50.rounded-full.gap-1\.5.p-1\.5.shadow-sm.transition-shadow.duration-200.hover\:shadow {
  display: none;
}

/* Hide conversation actions bar when embedded in iframe */
body.is-iframe
  #app
  > div.flex.flex-grow.overflow-hidden.text-n-slate-12
  > main
  > section
  > div.h-full.w-full.flex-1
  > div
  > div.flex.h-\[calc\(100\%-48px\)\].min-w-0
  > div
  > div.flex.flex-col.gap-3.items-center.justify-between.flex-1.w-full.min-w-0.xl\:flex-row.px-3.py-2.border-b.bg-n-background.border-n-weak.h-24.xl\:h-12 {
  display: none;
}

/* Add your custom overrides here */
