/* KIWL Machine brand overrides */
.logo img,
a.logo img {
  max-height: 42px;
  width: auto;
  height: auto;
}

/* Hide broken static-site search UI */
header form.custom.search,
header .js-search-overlay,
.search-overlay {
  display: none !important;
}

/* Hide legacy direct WhatsApp float if any leftover markup remains */
a.kiwl-wa-float {
  display: none !important;
}

/* ========== Live Chat floating widget ========== */
.kiwl-lc {
  --kiwl-lc-blue: #0b2c5c;
  --kiwl-lc-blue-2: #123f7a;
  --kiwl-lc-green: #25d366;
  --kiwl-lc-online: #22c55e;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}
.kiwl-lc *,
.kiwl-lc *::before,
.kiwl-lc *::after {
  box-sizing: border-box;
}

.kiwl-lc-launcher {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--kiwl-lc-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(11, 44, 92, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kiwl-lc-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 44, 92, 0.42);
}
.kiwl-lc-launcher svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  flex-shrink: 0;
}
.kiwl-lc-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kiwl-lc-online);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(11, 44, 92, 0.15);
}
.kiwl-lc-launcher {
  position: fixed;
}

.kiwl-lc-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 100001;
  width: min(360px, calc(100vw - 28px));
  height: min(520px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #f4f6f8;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.kiwl-lc-panel.is-open {
  display: flex;
  animation: kiwl-lc-in 0.22s ease;
}
@keyframes kiwl-lc-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kiwl-lc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, var(--kiwl-lc-blue), var(--kiwl-lc-blue-2));
  color: #fff;
}
.kiwl-lc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--kiwl-lc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.kiwl-lc-head-text {
  min-width: 0;
  flex: 1;
}
.kiwl-lc-head-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.kiwl-lc-head-text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}
.kiwl-lc-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.kiwl-lc-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.kiwl-lc-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kiwl-lc-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.kiwl-lc-msg--user {
  align-self: flex-end;
  background: #2f6fed;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.kiwl-lc-msg--bot {
  align-self: flex-start;
  background: #fff;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}
.kiwl-lc-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.kiwl-lc-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: kiwl-lc-bounce 1.2s infinite ease-in-out;
}
.kiwl-lc-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.kiwl-lc-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes kiwl-lc-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.kiwl-lc-foot {
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.kiwl-lc-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--kiwl-lc-green);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.kiwl-lc-wa:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.kiwl-lc-wa svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}
.kiwl-lc-note {
  margin: 8px 2px 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.35;
  color: #6b7280;
}

@media (max-width: 767px) {
  .kiwl-lc-launcher {
    right: 12px;
    bottom: 16px;
    padding: 11px 16px 11px 12px;
    font-size: 14px;
  }
  .kiwl-lc-panel {
    right: 12px;
    bottom: 72px;
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 100px));
  }
}

/* Google Map on Contact */
.kiwl-map-wrap {
  max-width: 900px;
  margin: 0 auto 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(11, 44, 92, 0.12);
  background: #eef2f6;
}
.kiwl-map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
.kiwl-map-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #1f2937;
}
.kiwl-map-caption a {
  color: #1e4f9c;
  font-weight: 600;
  text-decoration: none;
}
.kiwl-map-caption a:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .kiwl-map-wrap iframe {
    height: 280px;
  }
}
