/* ================================================
   ANTIMANUAL FULL-PAGE CHAT — Scoped Layout
   ================================================
   Applied only when the [antimanual_chat] shortcode is used.
   All rules are scoped under .antimanual-full-chat to avoid
   conflicts with the floating widget or the host theme.
   ================================================ */

.antimanual-full-chat {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Override the floating-widget positioning so the chatbox becomes
   an inline, flow-layout element inside the shortcode wrapper. */
.antimanual-full-chat #antimanual-chatbox {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 80vh !important;
  min-height: 480px !important;
  max-height: 900px !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: auto !important;
  border-radius: 16px;
  box-shadow: rgba(9, 14, 21, 0.12) 0 4px 32px 0;
  overflow: hidden;
}

/* Inner wrapper fills the chatbox */
.antimanual-full-chat #antimanual-chatbox-inner-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

/* Hide the close/minimize button — full-page chat doesn't toggle */
.antimanual-full-chat #atml-chat-close {
  display: none !important;
}

/* Ensure the conversation area fills available space */
.antimanual-full-chat .antimanualchatbox {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

/* ================================================
   RESPONSIVE — TABLET
   ================================================ */
@media (max-width: 1024px) {
  .antimanual-full-chat {
    max-width: 100%;
    padding: 0 8px;
  }

  .antimanual-full-chat #antimanual-chatbox {
    height: 75vh !important;
    min-height: 400px !important;
    border-radius: 12px;
  }
}

/* ================================================
   RESPONSIVE — MOBILE
   ================================================ */
@media (max-width: 768px) {
  .antimanual-full-chat {
    padding: 0 4px;
  }

  .antimanual-full-chat #antimanual-chatbox {
    height: 70vh !important;
    min-height: 360px !important;
    max-height: none !important;
    border-radius: 10px;
    box-shadow: rgba(9, 14, 21, 0.08) 0 2px 16px 0;
  }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE
   ================================================ */
@media (max-width: 480px) {
  .antimanual-full-chat #antimanual-chatbox {
    height: 65vh !important;
    min-height: 320px !important;
    border-radius: 8px;
  }
}
