/* Promide Chatbot. Change the colours here to match the website palette. */
.pcb-root {
  --pcb-primary: #12263f;      /* header / user bubbles */
  --pcb-accent: #f5a300;       /* buttons / highlights */
  --pcb-accent-dark: #c98600;
  --pcb-bg: #f4f6f9;
  --pcb-text: #1d2733;
  --pcb-white: #fff;
  --pcb-wa: #25d366;
  font-family: inherit;
  color: var(--pcb-text);
}
.pcb-root { -webkit-text-size-adjust: 100%; }
.pcb-root *, .pcb-root *::before, .pcb-root *::after { box-sizing: border-box; }
.pcb-root button, .pcb-root a { -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }

.pcb-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 99998;
  height: 58px; padding: 0 20px 0 14px; border: 0; border-radius: 999px;
  background: var(--pcb-accent); color: var(--pcb-primary); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 700; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .2s;
  animation: pcb-ring 2.6s ease-out 1.2s infinite;
}
.pcb-launcher:hover { transform: scale(1.05); }
.pcb-ico { position: relative; display: flex; }
.pcb-ico svg { display: block; color: var(--pcb-primary); }
.pcb-dot { position: absolute; top: -2px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #e53935; border: 2px solid var(--pcb-accent); }
.pcb-label { white-space: nowrap; }
@keyframes pcb-ring { 0% { box-shadow: 0 6px 20px rgba(0,0,0,.28), 0 0 0 0 rgba(245,163,0,.55); } 70%,100% { box-shadow: 0 6px 20px rgba(0,0,0,.28), 0 0 0 16px rgba(245,163,0,0); } }
.pcb-launcher.pcb-open { display: none; }

.pcb-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 99999;
  width: 370px; max-width: calc(100vw - 24px);
  height: 600px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--pcb-white); border-radius: 16px;
  box-shadow: 0 14px 44px rgba(0,0,0,.3);
  animation: pcb-in .22s ease-out;
}
.pcb-panel[hidden] { display: none; }
@keyframes pcb-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pcb-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--pcb-primary); color: #fff; border-bottom: 3px solid var(--pcb-accent); }
.pcb-logo { flex: 0 0 auto; width: 74px; height: 40px; background: #fff; border-radius: 8px; padding: 4px 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--pcb-primary); }
.pcb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pcb-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pcb-title { font-size: 14px; }
.pcb-sub { font-size: 12px; opacity: .8; }
.pcb-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }

.pcb-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--pcb-bg); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pcb-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; animation: pcb-in .2s ease-out; }
.pcb-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pcb-user { align-self: flex-end; background: var(--pcb-primary); color: #fff; border-bottom-right-radius: 4px; }

.pcb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pcb-chips.pcb-used { display: none; }
.pcb-chip {
  font: inherit; font-size: 13px; line-height: 1.3; text-align: left; text-decoration: none;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--pcb-primary); border: 1.5px solid var(--pcb-accent);
  transition: background .15s, color .15s;
}
.pcb-chip:hover { background: var(--pcb-accent); color: var(--pcb-primary); }
.pcb-link { background: var(--pcb-primary); color: #fff; border-color: var(--pcb-primary); }
.pcb-link:hover { background: var(--pcb-accent-dark); border-color: var(--pcb-accent-dark); color: #fff; }
.pcb-wa-chip { border-color: var(--pcb-wa); }
.pcb-wa-chip:hover { background: var(--pcb-wa); color: #fff; }

.pcb-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: #fff; border-top: 1px solid #e3e7ec; }
.pcb-act { flex: 1 1 auto; text-align: center; text-decoration: none; font-size: 12px; font-weight: 600; padding: 9px 8px; border-radius: 8px; color: var(--pcb-primary); background: var(--pcb-accent); white-space: nowrap; }
.pcb-act:hover { background: var(--pcb-accent-dark); color: #fff; }
.pcb-wa { background: var(--pcb-wa); color: #fff; flex-basis: 100%; font-size: 13px; }
.pcb-wa:hover { background: #1ebe5b; }

@media (max-width: 480px) {
  .pcb-launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 54px; font-size: 14px; }
  .pcb-panel { right: 0; bottom: 0; left: 0; width: 100%; max-width: 100%; height: 88vh; height: 88dvh; border-radius: 16px 16px 0 0; }
  .pcb-act { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .pcb-panel, .pcb-msg, .pcb-launcher { animation: none !important; transition: none; } }

/* Desktop: pin the chatbot to the extreme bottom-right and keep it fixed while scrolling */
@media (min-width: 481px) {
  .pcb-root {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 2147483000;      /* stays above sticky headers, sliders, etc. */
    width: 0;
    height: 0;
  }

  /* Launcher: flush to the corner, rounded only on the top-left */
  .pcb-launcher {
    position: fixed;
    right: 0;
    bottom: 0;
    height: 56px;
    border-radius: 14px 0 0 0;
    box-shadow: -3px -3px 14px rgba(0, 0, 0, .22);
  }

  /* Chat window: docked to the corner as well */
  .pcb-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    border-radius: 16px 0 0 0;
    max-height: 100vh;
    max-height: 100dvh;
  }
}