/* =========================================================
   IRENA GLOBAL AI ASSISTANT - CLEAN CSS
   ========================================================= */

/* =========================
   AI LAUNCHER
   ========================= */

.ig-ai-launcher {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 9999;

  width: 70px;
  height: 70px;

  border: 1px solid rgba(255,255,255,.25);
  border-radius: 17px;

  background: linear-gradient(135deg, #1685dc, #071a33);
  color: #fff;

  box-shadow:
    0 10px 28px rgba(7,26,51,.35),
    0 0 0 2px rgba(22,133,220,.12);

  font: 900 13px/1 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  text-transform: uppercase;
  letter-spacing: .03em;

  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.ig-ai-launcher::before {
  content: "AI";
  font-size: 17px;
  line-height: 1;
  color: #ffd166;
}

.ig-ai-launcher span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.1;
}

.ig-ai-launcher:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #2196e8, #0b315c);

  box-shadow:
    0 14px 34px rgba(7,26,51,.42),
    0 0 18px rgba(22,133,220,.28);
}


/* =========================
   AI PANEL
   ========================= */

.ig-ai-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 9999;

  width: 390px;
  height: 610px;

  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 105px);

  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 20px;

  box-shadow: 0 24px 70px rgba(7,26,51,.22);

  overflow: hidden;

  display: none;
  flex-direction: column;
}

.ig-ai-panel.is-open {
  display: flex;
}


/* =========================
   PANEL HEADER
   ========================= */

.ig-ai-head {
  background: linear-gradient(135deg, #071a33, #0b5b98);
  color: #fff;

  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-ai-head-main {
  display: flex;
  gap: 11px;
  align-items: center;
}

.ig-ai-mark {
  width: 38px;
  height: 38px;

  border-radius: 11px;
  background: #1685dc;

  display: grid;
  place-items: center;

  font-weight: 900;
  font-size: 12px;
}

.ig-ai-title {
  font-weight: 850;
  font-size: 14px;
  line-height: 1.2;
}

.ig-ai-subtitle {
  font-size: 11px;
  color: #d7e8f8;
  margin-top: 2px;
}

.ig-ai-close {
  border: 0;
  background: transparent;
  color: #fff;

  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}


/* =========================
   MESSAGES
   ========================= */

.ig-ai-messages {
  flex: 1;

  overflow-y: auto;

  padding: 16px;

  background: #f5f8fc;
}

.ig-ai-msg {
  max-width: 88%;

  margin: 0 0 11px;

  padding: 11px 13px;

  border-radius: 15px;

  font-size: 13px;
  line-height: 1.5;

  white-space: pre-wrap;
  word-wrap: break-word;
}

.ig-ai-msg.bot {
  background: #fff;

  border: 1px solid #dce5ef;

  color: #10233f;

  border-top-left-radius: 5px;
}

.ig-ai-msg.user {
  margin-left: auto;

  background: #1268b3;
  color: #fff;

  border-top-right-radius: 5px;
}


/* =========================
   QUICK BUTTONS
   ========================= */

.ig-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  padding: 10px 12px;

  background: #fff;

  border-top: 1px solid #e6edf4;
}

.ig-ai-quick button {
  border: 1px solid #cbd9e8;

  background: #fff;
  color: #0b315c;

  border-radius: 999px;

  padding: 7px 10px;

  font-size: 11px;
  font-weight: 750;

  cursor: pointer;
}

.ig-ai-quick button:hover {
  background: #f5f8fc;
}


/* =========================
   INPUT
   ========================= */

.ig-ai-form {
  display: flex;
  gap: 8px;

  padding: 10px 12px;

  background: #fff;

  border-top: 1px solid #dce5ef;
}

.ig-ai-input {
  min-width: 0;
  flex: 1;

  border: 1px solid #cbd9e8;

  border-radius: 12px;

  padding: 10px 11px;

  font: 13px Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  outline: none;
}

.ig-ai-input:focus {
  border-color: #1685dc;

  box-shadow:
    0 0 0 3px rgba(22,133,220,.1);
}

.ig-ai-send {
  width: 42px;

  border: 0;
  border-radius: 12px;

  background: #1268b3;
  color: #fff;

  font-weight: 850;

  cursor: pointer;
}

.ig-ai-send:hover {
  background: #1685dc;
}


/* =========================
   NOTE
   ========================= */

.ig-ai-note {
  font-size: 9px;

  color: #718197;

  padding: 6px 12px 9px;

  background: #fff;

  text-align: center;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

  .ig-ai-launcher {
    right: 15px;
    bottom: 15px;

    width: 70px;
    height: 70px;

    border-radius: 17px;
  }

  .ig-ai-panel {
    right: 10px;
    bottom: 95px;

    width: calc(100vw - 20px);
    height: calc(100vh - 115px);

    max-width: none;
    max-height: none;

    border-radius: 18px;
  }
}/* =========================================================
   MOBILE AI PANEL FIX
   ========================================================= */

@media (max-width: 900px) {

  .ig-ai-panel {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 90px !important;

    width: auto !important;
    height: calc(100vh - 110px) !important;

    max-width: none !important;
    max-height: calc(100vh - 110px) !important;

    background: #fff !important;
    border: 1px solid #dce5ef !important;
    border-radius: 18px !important;

    box-shadow: 0 24px 70px rgba(7,26,51,.22) !important;

    overflow: hidden !important;

    display: none;
    flex-direction: column !important;

    z-index: 99999 !important;
  }

  .ig-ai-panel.is-open {
    display: flex !important;
  }
}/* =========================================================
   AI PANEL - MOBILE FIX
   ========================================================= */

.ig-ai-panel {
  position: fixed !important;
  right: 22px !important;
  bottom: 82px !important;

  width: 390px !important;
  height: 610px !important;

  max-width: calc(100vw - 28px) !important;
  max-height: calc(100vh - 105px) !important;

  background: #fff !important;
  border: 1px solid #dce5ef !important;
  border-radius: 20px !important;

  box-shadow: 0 24px 70px rgba(7,26,51,.22) !important;

  overflow: hidden !important;

  display: none !important;
  flex-direction: column !important;

  z-index: 99999 !important;
}

.ig-ai-panel.is-open {
  display: flex !important;
}

@media (max-width: 900px) {
  .ig-ai-panel {
    left: 10px !important;
    right: 10px !important;
    bottom: 85px !important;

    width: auto !important;
    height: calc(100vh - 100px) !important;

    max-width: none !important;
    max-height: calc(100vh - 100px) !important;

    border-radius: 18px !important;
  }
}/* =========================================================
   IRENA GLOBAL AI ASSISTANT - PANEL
   ========================================================= */

.ig-ai-panel {
  position: fixed !important;

  right: 22px !important;
  bottom: 92px !important;

  width: 390px !important;
  height: 610px !important;

  max-width: calc(100vw - 28px) !important;
  max-height: calc(100vh - 110px) !important;

  display: none !important;
  flex-direction: column !important;

  background: #ffffff !important;
  border: 1px solid #dce5ef !important;
  border-radius: 20px !important;

  box-shadow: 0 24px 70px rgba(7,26,51,.25) !important;

  overflow: hidden !important;

  z-index: 99999 !important;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif !important;

  color: #10233f !important;
}

.ig-ai-panel.is-open {
  display: flex !important;
}


/* =========================
   AI HEADER
   ========================= */

.ig-ai-head {
  flex: 0 0 auto !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  padding: 16px 18px !important;

  background: linear-gradient(135deg, #071a33, #0d5aa7) !important;

  color: #ffffff !important;
}

.ig-ai-head-main {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.ig-ai-mark {
  width: 42px !important;
  height: 42px !important;

  display: grid !important;
  place-items: center !important;

  border-radius: 12px !important;

  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.2) !important;

  color: #f4d27b !important;

  font-weight: 900 !important;
  font-size: 15px !important;
}

.ig-ai-title {
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.ig-ai-subtitle {
  margin-top: 3px !important;

  font-size: 12px !important;
  line-height: 1.3 !important;

  color: #dbe8f7 !important;
}

.ig-ai-close {
  width: 36px !important;
  height: 36px !important;

  display: grid !important;
  place-items: center !important;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 10px !important;

  background: rgba(255,255,255,.10) !important;

  color: #ffffff !important;

  font-size: 25px !important;
  line-height: 1 !important;

  cursor: pointer !important;
}


/* =========================
   MESSAGES
   ========================= */

.ig-ai-messages {
  flex: 1 1 auto !important;

  min-height: 0 !important;

  padding: 16px !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  background: #f7f9fc !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.ig-ai-msg {
  max-width: 88% !important;

  padding: 10px 13px !important;

  border-radius: 14px !important;

  font-size: 14px !important;
  line-height: 1.5 !important;

  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
}

.ig-ai-msg.bot {
  align-self: flex-start !important;

  background: #ffffff !important;
  border: 1px solid #dce5ef !important;

  color: #10233f !important;
}

.ig-ai-msg.user {
  align-self: flex-end !important;

  background: #1268b3 !important;

  color: #ffffff !important;
}


/* =========================
   QUICK BUTTONS
   ========================= */

.ig-ai-quick {
  flex: 0 0 auto !important;

  display: flex !important;
  flex-wrap: wrap !important;

  gap: 7px !important;

  padding: 10px 12px !important;

  background: #ffffff !important;

  border-top: 1px solid #e4eaf1 !important;
}

.ig-ai-quick button {
  appearance: none !important;

  padding: 7px 10px !important;

  border: 1px solid #cfdbe8 !important;
  border-radius: 999px !important;

  background: #f7faff !important;

  color: #1268b3 !important;

  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;

  cursor: pointer !important;
}

.ig-ai-quick button:hover {
  background: #eaf3fc !important;
}


/* =========================
   INPUT FORM
   ========================= */

.ig-ai-form {
  flex: 0 0 auto !important;

  display: flex !important;
  align-items: center !important;

  gap: 8px !important;

  padding: 10px 12px !important;

  background: #ffffff !important;

  border-top: 1px solid #e4eaf1 !important;
}

.ig-ai-input {
  flex: 1 1 auto !important;

  width: auto !important;

  min-width: 0 !important;

  height: 46px !important;

  margin: 0 !important;

  padding: 10px 13px !important;

  border: 1px solid #cfd9e6 !important;
  border-radius: 12px !important;

  background: #ffffff !important;

  color: #10233f !important;

  font-family: inherit !important;
  font-size: 14px !important;

  outline: none !important;
}

.ig-ai-input:focus {
  border-color: #1685dc !important;

  box-shadow: 0 0 0 3px rgba(22,133,220,.10) !important;
}

.ig-ai-send {
  flex: 0 0 46px !important;

  width: 46px !important;
  height: 46px !important;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 12px !important;

  background: #1268b3 !important;

  color: #ffffff !important;

  font-size: 20px !important;
  font-weight: 900 !important;

  cursor: pointer !important;
}


/* =========================
   DISCLAIMER
   ========================= */

.ig-ai-note {
  flex: 0 0 auto !important;

  padding: 8px 12px 10px !important;

  background: #ffffff !important;

  color: #718096 !important;

  font-size: 10px !important;
  line-height: 1.4 !important;

  text-align: center !important;

  border-top: 1px solid #edf1f5 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .ig-ai-panel {
    left: 10px !important;
    right: 10px !important;

    bottom: 84px !important;

    width: auto !important;

    height: calc(100vh - 105px) !important;

    max-width: none !important;
    max-height: calc(100vh - 105px) !important;

    border-radius: 18px !important;
  }

  .ig-ai-head {
    padding: 14px 15px !important;
  }

  .ig-ai-title {
    font-size: 15px !important;
  }

  .ig-ai-subtitle {
    font-size: 11px !important;
  }

  .ig-ai-messages {
    padding: 12px !important;
  }

  .ig-ai-quick {
    gap: 6px !important;
    padding: 8px 10px !important;
  }

  .ig-ai-quick button {
    font-size: 11px !important;
    padding: 6px 9px !important;
  }

  .ig-ai-form {
    padding: 8px 10px !important;
  }

  .ig-ai-note {
    font-size: 9px !important;
  }
}/* =========================================================
   IRENA AI - MOBILE PANEL FIX
   ========================================================= */

@media (max-width: 600px) {

  .ig-ai-panel {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: 85px !important;

    width: calc(100vw - 20px) !important;
    height: calc(100vh - 105px) !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: none !important;

    background: #ffffff !important;

    border: 1px solid #dce5ef !important;
    border-radius: 18px !important;

    overflow: hidden !important;

    z-index: 999999 !important;

    box-shadow: 0 20px 60px rgba(0,0,0,.25) !important;
  }

  .ig-ai-panel.is-open {
    display: flex !important;
    flex-direction: column !important;
  }

  .ig-ai-panel .ig-ai-head {
    flex: 0 0 auto !important;
  }

  .ig-ai-panel .ig-ai-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  .ig-ai-panel .ig-ai-quick,
  .ig-ai-panel .ig-ai-form,
  .ig-ai-panel .ig-ai-note {
    flex: 0 0 auto !important;
  }
}