#iaa-copilot-widget {
  position: fixed;
  right: 24px;
  bottom: 95px;
  z-index: 999999;
  font-family: Arial, sans-serif;
}

#iaa-copilot-button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #007dd1, #001b33);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 125, 209, 0.45);
}

#iaa-copilot-button span {
  display: block;
}

#iaa-copilot-box {
  display: none;
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 360px;
  max-width: calc(100vw - 35px);
  height: 520px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 125, 209, 0.18);
}

#iaa-copilot-box.open {
  display: flex;
  flex-direction: column;
}

.iaa-copilot-header {
  background: linear-gradient(135deg, #06111f, #007dd1);
  color: #fff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iaa-copilot-header strong {
  display: block;
  font-size: 17px;
}

.iaa-copilot-header small {
  opacity: 0.85;
  font-size: 12px;
}

#iaa-copilot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

#iaa-copilot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f5f8fb;
}

.iaa-msg {
  padding: 11px 13px;
  margin-bottom: 10px;
  border-radius: 15px;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-wrap;
}

.iaa-msg.bot {
  background: #fff;
  color: #172033;
  border: 1px solid #e5ebf3;
}

.iaa-msg.user {
  background: #007dd1;
  color: #fff;
  margin-left: 40px;
}

#iaa-copilot-form {
  display: flex;
  gap: 8px;
  padding: 13px;
  background: #fff;
  border-top: 1px solid #e8edf5;
}

#iaa-copilot-input {
  flex: 1;
  border: 1px solid #d7dfeb;
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
}

#iaa-copilot-form button {
  border: none;
  border-radius: 999px;
  background: #007dd1;
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}


@media (max-width: 600px) {
  #iaa-copilot-widget {
    right: 14px;
    left: 14px;
    bottom: 85px;
  }

  #iaa-copilot-box {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 90px;
    width: auto;
    height: 68vh;
    max-height: 620px;
    border-radius: 22px;
  }

  #iaa-copilot-form {
    gap: 10px;
    padding: 12px;
  }

  #iaa-copilot-input {
    min-width: 0;
    height: 46px;
    font-size: 15px;
    padding: 0 16px;
  }

  #iaa-copilot-form button {
    min-width: 92px;
    height: 46px;
    padding: 0 14px;
    white-space: nowrap;
    font-size: 14px;
  }

  #iaa-copilot-button {
    position: fixed;
    right: 18px;
    bottom: 24px;
  }
}