
/* Root container */
.bcij-root{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* Bubble button */
.bcij-bubble{
  cursor: pointer;
  background-color: #ff6e00;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  position: relative;
  user-select: none;
}
.bcij-bubble:focus{ outline: 2px solid rgba(255,110,0,.45); outline-offset: 3px; }

/* Chatbox */
.bcij-chatbox{
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 325px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  overflow: hidden;
  background: linear-gradient(to bottom, #ff6e00 30%, #ffffff 70%);
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
}
.bcij-chatbox.is-open{
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.bcij-chatbox.is-chat-active{ background: #ffffff !important; }

/* Header */
.bcij-header{
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bcij-header.is-chat-active{ background: #ff6e00 !important; }
.bcij-logo{ height: 24px; object-fit: contain; max-width: 140px; }

/* Avatars */
.bcij-avatars{ display: flex; align-items: center; margin-left: 10px; }
.bcij-avatars img{
  width: 35px; height: 35px; border-radius: 50%;
  border: 2px solid #ff6e00;
  margin-left: -8px;
  object-fit: cover;
  transition: transform .2s ease;
}
.bcij-avatars img:first-child{ margin-left: 0; }
.bcij-avatars img:hover{ transform: scale(1.1); z-index: 2; }

.bcij-close{
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  border: none;
  background: transparent;
  line-height: 1;
}
.bcij-close:focus{ outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }

/* Content */
.bcij-content{ padding: 10px 20px 10px; height: 330px; overflow-y: auto; }
.bcij-title{ font-size: 18px; color: #000; margin: 10px 0 5px; line-height: 1.2; }
.bcij-h3{ font-size: 16px; margin: 0 0 5px; }
.bcij-subtitle{ color: #666; font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.bcij-title--light, .bcij-subtitle--light{ color: #fff; }

.bcij-card{
  margin-top: 16px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form */
.bcij-form{ display: flex; flex-direction: column; gap: 10px; }
.bcij-form input{
  font-size: 14px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #f9fafb;
  margin: 0 !important;
}
.bcij-form input:focus{ outline: none; border-color: rgba(255,110,0,.5); }

.bcij-messagebar{
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  margin-top: 8px;
  background: #fff;
}
.bcij-emoji-btn{
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.bcij-emoji-btn img{ pointer-events: none; }

#bcij-pesan{
  flex: 1;
  border: none !important;
  outline: none;
  font-size: 14px;
  padding: 5px;
  background: transparent;
}
#bcij-pesan:focus{ outline: none; }

.bcij-send{
  background: #ff6e00;
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bcij-send img{ pointer-events: none; }

/* Emoji picker */
.bcij-emoji-picker{
  position: absolute;
  bottom: 52px;
  left: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 10;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bcij-emoji{
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.bcij-emoji:hover{ transform: scale(1.2); transition: transform .2s ease-in-out; }

/* Tabs */
.bcij-tabs{
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #ddd;
  padding: 10px;
  background: #fff;
}
.bcij-tabbtn{
  color: #000;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: color .3s ease;
}
.bcij-tabbtn:hover{ color: #ff6e00; }
.bcij-tabbtn img{ transition: transform .3s ease-in-out; }
.bcij-tabbtn:hover img{ transform: translateY(-5px); }

.bcij-tabbtn.is-active{ color: #ff6e00; }

.bcij-center{ margin-top: 18px; text-align: center; }
.bcij-primary{
  padding: 10px 20px;
  font-size: 12px;
  border: none;
  border-radius: 5px;
  background-color: #ff6e00;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.bcij-primary:hover{ background-color: #e65c00; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }

/* FAQ */
.bcij-faq{ list-style: none; padding: 0; margin: 0; }
.bcij-faq li{ border-bottom: 1px dotted #ddd; padding-bottom: 10px; margin-bottom: 10px; }
.bcij-faq li:last-child{ border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.bcij-faq-q{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 12px;
  color: #000;
  line-height: 1.3;
}
.bcij-faq-arrow{ width: 10px; height: 10px; transition: transform .2s ease; }
.bcij-faq-a{ margin-top: 10px; font-size: 12px; color: #555; line-height: 1.5; }

/* Help list */
.bcij-help{ list-style: none; padding: 0; margin: 0; }
.bcij-help li{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #ccc;
}
.bcij-help li:last-child{ border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bcij-help a{ color: #000; text-decoration: none; font-size: 14px; }
.bcij-help-hours{ align-items: flex-start; }

.bcij-help-hours div{ color: #000; font-size: 14px; line-height: 1.5; }

/* Bubble icon swap animations */
.bcij-fade{ animation: bcij-fade-in .3s ease-in-out; }
@keyframes bcij-fade-in{ from{ opacity:0; transform: scale(.9);} to{opacity:1; transform:scale(1);} }

.bcij-rotate{ animation: bcij-rotate-icon .3s ease-in-out forwards; }
.bcij-reverse{ animation: bcij-reverse-rotate-icon .3s ease-in-out forwards; }
@keyframes bcij-rotate-icon{ from{transform:rotate(0);} to{transform:rotate(360deg);} }
@keyframes bcij-reverse-rotate-icon{ from{transform:rotate(360deg);} to{transform:rotate(0);} }

/* Make sure it stays visible over some builders */
.bcij-root, .bcij-chatbox, .bcij-bubble { box-sizing: border-box; }
