/* /public/styles/apothecaryAssistant.css */
/* Apothecary Assistant — chat + embedded doc
   Scope: only elements the assistant renders.
   Uses your existing tokens (brand gold) if defined.
*/

/* ----- LEFT: Chat column ----- */
#app .rc-wrap{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 78vh;          /* match the doc column height */
}


#app .apoth-tabs{
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Messages pane: readable height with scroll */
#app .chat-scroll{
  /* let it expand with the column */
  overflow: auto;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  padding: 0.75rem;
  background: #fff;
  flex: 1 1 auto;            /* fill remaining vertical space */
  min-height: 0;             /* allow scrolling instead of overflow clipping */
}

/* Composer row */
#app .action-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: start;
}

#app .composer__input{
  min-height: 3.25rem;      /* taller textarea */
  max-height: 35vh;         /* don’t overrun screen */
  resize: vertical;
  padding: .5rem .75rem;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  color: #000;              /* ensure not gray */
  background: #fff;
}

#app .credit-button{
  height: 2.5rem;
  min-width: 3.25rem;
}

/* Hint line */
#app #aromatherapyChatHint{
  margin-top: .25rem;
}

/* ----- RIGHT: Embedded doc column ----- */
#photoPreview.apoth-preview{
  padding: 0; /* let the frame own its box */
}

/* Bigger, readable Google Doc preview */
/* Ensure the embedded Doc fills the right column */
#photoPreview .doc-frame,
#photoPreview #summaryFrame,
#summaryFrame{
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  min-height: 78vh;
  height: 78vh;
  border: 1px solid var(--brand-gold, #b08a48);
  border-radius: .5rem;
  background: #fff;
}


/* “Open in new tab” link alignment */
#photoPreview .doc-open-link{
  display: inline-block;
  margin-top: .5rem;
  text-decoration: none;
  border: 1px solid var(--brand-gold, #b08a48);
  padding: .375rem .75rem;
  border-radius: .5rem;
}

/* ----- Small screens: keep both sides usable ----- */
@media (max-width: 991.98px){
  #app .chat-scroll{ max-height: 50vh; }
  #photoPreview .doc-frame{
    min-height: 60vh;
    height: 60vh;
  }
}
