.tiktok-live-container {
  position: relative;
  background: #000;
  color: #fff;
  max-width: 420px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  font-family: sans-serif;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
}

.video-content {
  width: 100%;
  height: auto;
  display: block;
}

.live-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.viewer-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 14px;
  z-index: 20;
}

.viewer-count svg {
  fill: white;
}

.comment-overlay {
  position: absolute;
  bottom: 200px;
  left: 10px;
  right: 10px;
  height: 200px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: auto;
  z-index: 30;
  font-size: 13px;
  scroll-behavior: smooth;
}

.comment-overlay::-webkit-scrollbar {
  display: none;
}

.comment-overlay .comment {
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 16px;
  display: inline-block;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 80%;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

.comment .username {
  font-weight: bold;
  color: #00f2ea;
  margin-right: 4px;
}
.comment.reply {
  margin-left: 25px; /* bisa 40px kalau mau lebih ekstrem */
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-left: 3px solid #2563eb;
  padding-left: 10px;
  position: relative;
  opacity: 0.9;
}


.comment.reply::before {
  
  position: absolute;
  left: -18px;
  top: 3px;
  font-size: 14px;
}

.typing-indicator {
  background: rgba(0, 0, 0, 0.6); /* Gelap transparan */
  color: white;
  font-style: italic;
  border-radius: 16px;
  padding: 6px 12px;
  margin-left: 20px; /* Menjorok ke kanan */
  animation: fadeInOut 2s ease-in-out infinite;
  font-size: 13px;
}

@keyframes fadeInOut {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment.old {
  animation: swipeLeft 0.5s ease forwards;
}

@keyframes swipeLeft {
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.accordion-form {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 70px;
  left: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  padding: 10px;
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.accordion-form.show {
  display: flex;
  opacity: 1;
  max-height: 200px;
}

/* Accordion style */
.accordion-form {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 16px;
  border-radius: 16px 16px 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  max-height: none;        /* biar tinggi otomatis */
  overflow: visible;       /* biar nggak terpotong */
}

.accordion-form.show {
  display: flex;
  opacity: 1;
}

.accordion-form input[type="text"],
.accordion-form input[type="number"] {
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: white;  
  color: black;
  text-align: left; /* pastikan rata kiri */    
}

.chat-form {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.chat-form input[type="text"] {
  flex-grow: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
}

.chat-form input[type="text"]::placeholder {
  color: #ccc;
}
.chat-form button {
  background: #2563eb;
  border: none;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-form button:hover {
  background: #1d4ed8;
}

.chat-form button svg {
  fill: white;
}

/* Floating product inspired style */
.floating-product {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  padding: 10px;
  margin: 0 10px;
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  z-index: 20;
  font-size: 13px;
}

.floating-product img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 12px;
}

.product-info h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.product-info p {
  margin: 4px 0;
  font-weight: bold;
  color: #facc15;
}

.badge {
  background-color: #ef4444;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.buy-button {
  background-color: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 13px;
  margin-top: 4px;
  display: inline-block;
}


.button-group {
  display: flex;
  justify-content: flex-end;    /* tombol rata kanan */
  gap: 10px;
}

.button-group button {
  font-size: 13px;              /* lebih kecil */
  font-weight: bold;
  border-radius: 8px;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  text-transform: none;         /* tidak uppercase */
}

.button-group button:first-child {
  background: #1f2937;
  color: white;
}

.button-group button:last-child {
  background: #2563eb;
  color: white;
}
.price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.price-action p {
  margin: 0;
  color: #facc15;
  font-weight: bold;
  font-size: 14px;
}
.floating-product-carousel {
  position: absolute;
  bottom: 70px;
  left: 10px;
  right: 10px;
  z-index: 20;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.floating-product-slide {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  padding: 10px;
  min-width: 100%;
  opacity: 0;
  transform: translateX(100%);
  position: absolute;
  transition: all 0.6s ease-in-out;
}

.floating-product-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.floating-product-slide img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  margin-right: 12px;
  object-fit: cover;
}

.floating-product-slide h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: white;
}

.floating-product-slide p {
  margin: 0;
  color: #facc15;
  font-weight: bold;
}

.floating-product-slide .buy-button {
  background-color: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
  margin-top: 6px;
}

.floating-unmute {
  position: absolute;
  bottom: 45%; /* atau bisa coba 50% */
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 9999;
}

.floating-unmute button {
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Style untuk notifikasi deaktivasi */
.notice.tiktok-deactivated {
    border-left-color: #ffb900;
    background: #fff8e5;
}

.notice.tiktok-deactivated p:before {
    content: "\f534";
    font-family: dashicons;
    margin-right: 5px;
    vertical-align: middle;
    color: #ffb900;
}


