/* Beatrix CCTV package card — chat bubble only */
.bx-pkg {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: inherit;
  white-space: normal;
  overflow: hidden;
  isolation: isolate;
}
/* Tiled diagonal watermark — logo from --bx-pkg-wm (Pengaturan). No DOM image nodes. */
.bx-pkg.has-wm::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  /* Oversized layer so rotation still covers the full card */
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background-image: var(--bx-pkg-wm);
  /* ~60px logos, even grid; diagonal via rotate below */
  background-size: 60px 60px;
  background-repeat: repeat;
  background-position: 0 0;
  opacity: 0.06;
  filter: grayscale(1);
  transform: rotate(-28deg);
  transform-origin: center center;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
@media (max-width: 480px) {
  .bx-pkg.has-wm::before {
    background-size: 56px 56px;
    opacity: 0.055;
  }
}
@media (min-width: 768px) {
  .bx-pkg.has-wm::before {
    background-size: 68px 68px;
    opacity: 0.065;
  }
}
.bx-pkg.has-wm > * {
  position: relative;
  z-index: 1;
}
.bx-pkg-intro {
  margin: 0 0 0.55rem;
  font-weight: 500;
}
.bx-pkg-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a5f9e;
  line-height: 1.2;
}
.bx-pkg-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0d2137;
  line-height: 1.25;
}
.bx-pkg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}
.bx-pkg-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 33, 55, 0.14);
  background: #fff;
  color: rgba(13, 33, 55, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bx-pkg-section {
  margin: 0;
  padding: 0.55rem 0 0;
}
.bx-pkg-section.has-divider {
  border-top: 1px solid rgba(13, 33, 55, 0.1);
  margin-top: 0.45rem;
  padding-top: 0.65rem;
}
.bx-pkg-sec-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(13, 33, 55, 0.62);
  letter-spacing: 0.01em;
}
.bx-pkg-item {
  margin: 0 0 0.55rem;
}
.bx-pkg-item:last-child {
  margin-bottom: 0.15rem;
}
.bx-pkg-name {
  font-weight: 700;
  color: #0d2137;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 0.12rem;
}
.bx-pkg-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.bx-pkg-qty {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(13, 33, 55, 0.72);
  font-size: 0.86rem;
  font-weight: 500;
}
.bx-pkg-sub {
  flex: 0 0 auto;
  font-weight: 700;
  color: #0d2137;
  white-space: nowrap;
  font-size: 0.86rem;
}
.bx-pkg-foot {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(13, 33, 55, 0.12);
}
.bx-pkg-sum {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.28rem;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.bx-pkg-sum-label {
  color: rgba(13, 33, 55, 0.7);
  font-weight: 500;
}
.bx-pkg-sum-val {
  font-weight: 600;
  white-space: nowrap;
  color: #0d2137;
}
.bx-pkg-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: #f1f4f7;
  font-variant-numeric: tabular-nums;
}
.bx-pkg-total-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0d2137;
}
.bx-pkg-total-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b7a4b;
  white-space: nowrap;
  line-height: 1.15;
}
.bx-pkg-notes {
  margin-top: 0.65rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(13, 33, 55, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: normal;
}
.bx-pkg-notes-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0d2137;
}
.bx-pkg-notes-intro {
  margin: 0 0 0.45rem;
  color: rgba(13, 33, 55, 0.72);
  font-weight: 500;
}
.bx-pkg-notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0 0 0.45rem;
}
.bx-pkg-notes-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.bx-pkg-notes-label {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(13, 33, 55, 0.78);
  font-weight: 500;
}
.bx-pkg-notes-price {
  flex: 0 0 auto;
  font-weight: 700;
  color: #0d2137;
  white-space: nowrap;
}
.bx-pkg-notes-footer {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(13, 33, 55, 0.55);
  font-weight: 500;
}
.bx-pkg-hint {
  margin: 0.75rem 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(13, 33, 55, 0.68);
  font-weight: 500;
}
.bx-pkg-wa-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.35rem;
}
.bx-pkg-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #22c55e;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bx-pkg-wa:hover,
.bx-pkg-wa:focus-visible {
  background: #16a34a;
  color: #fff !important;
}
.bx-pkg-wa-label {
  flex: 0 1 auto;
  text-align: center;
}

.ai-bubble-text.has-bx-pkg,
.bx-dock-text.has-bx-pkg {
  white-space: normal;
}
.ai-bubble:has(.bx-pkg),
.bx-dock-bubble:has(.bx-pkg) {
  max-width: min(100%, 26rem);
  width: 100%;
}
@media (max-width: 420px) {
  .bx-pkg {
    font-size: 0.88rem;
  }
  .bx-pkg-title {
    font-size: 1rem;
  }
  .bx-pkg-badge {
    font-size: 0.66rem;
    padding: 0.18rem 0.5rem;
  }
  .bx-pkg-meta {
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
  }
  .bx-pkg-total {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .bx-pkg-total-val {
    font-size: 1.05rem;
  }
  .ai-bubble:has(.bx-pkg),
  .bx-dock-bubble:has(.bx-pkg) {
    max-width: 96%;
  }
}
