/* GlobalCampus support chat — FooterChatModal port */

.gc-chat-root {
  font-family: var(--font-sans, "General Sans", ui-sans-serif, system-ui, sans-serif);
  color: #1a1a1a;
}

.gc-chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20000;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-navy, #63ac8c);
  color: #fff;
  box-shadow: 0 10px 28px rgba(99, 172, 140, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gc-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(99, 172, 140, 0.42);
}

.gc-chat-fab svg {
  width: 1.6rem;
  height: 1.6rem;
}

.gc-chat-fab.is-hidden {
  display: none;
}

.gc-chat-popover {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 20001;
  width: min(380px, calc(100vw - 1.5rem));
  max-height: min(640px, calc(100vh - 6.5rem));
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(22, 32, 48, 0.28);
  display: none;
}

.gc-chat-popover.is-open {
  display: block;
}

.gc-chat-popover.gc-chat-popover--chat {
  bottom: 1.25rem;
  max-height: min(680px, calc(100vh - 2.5rem));
}

.chat-window {
  display: flex;
  flex-direction: column;
  height: 540px;
  max-height: inherit;
  background: #fff;
  color: #111;
}

.gc-chat-popover--chat .chat-window {
  height: min(640px, calc(100vh - 2.5rem));
}

.hi-there {
  position: relative;
  padding: 1.1rem 2.75rem 1rem 1.15rem;
  background: #63ac8c;
  color: #fff;
  flex-shrink: 0;
}

.hi-there .p1 {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.hi-there .p2 {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.92;
}

.minus-icon,
.cross-icon {
  position: absolute;
  top: 0.7rem;
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
  object-fit: contain;
}

.minus-icon svg,
.cross-icon svg {
  width: 100%;
  height: 100%;
  color: #fff;
  display: block;
}

.minus-icon {
  right: 0.85rem;
}

.cross-icon {
  right: 2.35rem;
}

.minus-icon.cross-active {
  right: 0.85rem;
}

.start-conversation {
  padding: 1.5rem 1.15rem 1.35rem;
}

.start-conversation h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.start-conversation p {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: #5b6573;
}

.new-conversation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  background: #63ac8c;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.new-conversation img,
.new-conversation svg {
  width: 1.05rem;
  height: 1.05rem;
}

.message-box {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 0.9rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.staff-msg-box,
.patient-msg-box {
  margin-bottom: 0.85rem;
}

.patient-msg-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.msg-time,
.user-name {
  font-size: 0.7rem;
  color: #7a8494;
}

.main-descls {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  position: relative;
  margin-top: 0.2rem;
  max-width: 88%;
}

.patient-msg-box .main-descls {
  flex-direction: row-reverse;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.msg {
  display: inline-block;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}

.patient-msg-box .msg {
  border-bottom-right-radius: 4px;
}

.msg-status {
  display: block;
  font-size: 0.68rem;
  color: #8a93a0;
  margin-top: 0.2rem;
  text-align: right;
}

.staff-msg-box .msg {
  border-bottom-left-radius: 4px;
}

.arrow {
  display: none;
}

.attachment {
  max-width: 180px;
  border-radius: 8px;
  display: block;
}

.attachment-img-name {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.bot-msg-box .like-dislike {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.like-dislike svg {
  cursor: pointer;
}

.chat-select,
.confirm-drop-btn,
.confirm-date-btn {
  margin-top: 0.45rem;
  margin-right: 0.35rem;
}

.chat-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  font-size: 0.85rem;
}

.confirm-drop-btn,
.confirm-date-btn {
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  background: #63ac8c;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.gc-chat-chip {
  display: inline-block;
  margin: 0.25rem 0.25rem 0 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 2px solid #e0e0e0;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.gc-chat-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.gc-chat-progress {
  height: 3px;
  width: 100%;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}

.gc-chat-progress span {
  display: block;
  height: 100%;
  width: 40%;
  background: #63ac8c;
  animation: gc-chat-indet 1.1s ease-in-out infinite;
}

@keyframes gc-chat-indet {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.input-box {
  flex-shrink: 0;
  border-top: 1px solid #eceff3;
  background: #fff;
}

.write-reply {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.55rem;
}

.upload-img,
.send-button {
  flex-shrink: 0;
}

.upload-img .photo,
.send-message img,
.send-message svg,
.upload-img svg {
  width: 1.35rem;
  height: 1.35rem;
  cursor: pointer;
  display: block;
}

.inputText {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 0.92rem;
  padding: 0.45rem 0.25rem;
  background: transparent;
}

.send-message {
  border: 0;
  background: transparent;
  padding: 0.2rem;
  cursor: pointer;
}

.support-chat-rating {
  padding: 1.25rem 1.1rem 1.4rem;
  text-align: center;
}

.support-chat-rating .Heading,
.support-chat-rating .heading {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.support-chat-rating .rating-text {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.support-chat-rating textarea {
  width: 100%;
  margin: 0.75rem 0;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  resize: vertical;
}

.support-chat-rating .like-dislike {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
}

.support-chat-rating .submit-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  background: #63ac8c;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.gc-chat-stars {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin: 0.4rem 0 0.2rem;
}

.gc-chat-stars button {
  border: 0;
  background: transparent;
  font-size: 1.45rem;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.gc-chat-stars button.is-on {
  color: #f5c518;
}

.error-message {
  color: #c0392b;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.support-rating-msg {
  margin-bottom: 0.5rem;
}

body.gc-chat-open-mobile {
  overflow: hidden;
}

@media (max-width: 768px) {
  .gc-chat-fab {
    right: 1rem;
    bottom: 1rem;
  }

  .gc-chat-popover,
  .gc-chat-popover.gc-chat-popover--chat {
    inset: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    border-radius: 0;
  }

  .chat-window,
  .gc-chat-popover--chat .chat-window {
    height: 100%;
    max-height: none;
  }

  .gc-chat-popover.keyboard-open .chat-window {
    height: var(--vis-height, 100%);
    max-height: var(--vis-height, 100%);
  }
}
