
    /* =====================================================================
   TRUEPACK FLEXIBLES — CHATBOT WIDGET
   All styles are scoped under .truepouch-products
   ===================================================================== */

    /* ---------- Scoped reset ---------- */
    .truepouch-products,
    .truepouch-products *,
    .truepouch-products *::before,
    .truepouch-products *::after {
      box-sizing: border-box;
    }

    /* ---------- Root wrapper ---------- */
    .truepouch-products {
      position: fixed;
      inset: 0;
      z-index: 999999;
      pointer-events: none;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
      font-size: 15px;
      line-height: 1.5;
      color: #0f172a;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    .truepouch-products .tp-sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* =====================================================================
   RIGHT-WALL LAUNCHER
   ===================================================================== */
    .truepouch-products-toggle {
      position: fixed;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 999999;
      pointer-events: auto;

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 9px;

      width: 40px;
      padding: 10px 10px;

      border: 0;
      border-radius: 16px 0 0 16px;
      background: linear-gradient(160deg, #0b2545 0%, #123b73 55%, #0f5132 100%);
      color: #ffffff;
      font: inherit;
      cursor: pointer;

      box-shadow: -8px 10px 28px rgba(11, 37, 69, 0.30),
        -1px 0 0 rgba(255, 255, 255, 0.08) inset;

      transition: transform 0.24s cubic-bezier(0.22, 0.8, 0.3, 1),
        box-shadow 0.24s ease,
        opacity 0.22s ease;
    }

    .truepouch-products-toggle:hover {
      transform: translateY(-50%) translateX(-4px);
      box-shadow: -12px 14px 34px rgba(11, 37, 69, 0.38);
    }

    .truepouch-products-toggle:focus-visible {
      outline: 3px solid #0f9d58;
      outline-offset: 3px;
    }

    .truepouch-products-toggle.is-hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-50%) translateX(120%);
    }

    .truepouch-products-toggle-icon {
      font-size: 19px;
      line-height: 1;
      display: block;
    }

    .truepouch-products-toggle-text {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #e6f0ff;
      white-space: nowrap;
    }

    /* =====================================================================
   CHAT WINDOW
   ===================================================================== */
    .truepouch-products-window {
      position: fixed;
      right: 16px;
      top: 50%;
      z-index: 999999;
      pointer-events: auto;

      display: flex;
      flex-direction: column;

      width: 390px;
      max-width: calc(100vw - 24px);
      height: min(650px, calc(100vh - 32px));
      height: min(650px, calc(100dvh - 32px));

      background: #ffffff;
      border-radius: 18px;
      overflow: hidden;

      box-shadow: 0 28px 70px rgba(8, 24, 48, 0.30),
        0 4px 14px rgba(8, 24, 48, 0.12),
        0 0 0 1px rgba(11, 37, 69, 0.06);

      opacity: 0;
      visibility: hidden;
      transform: translateY(-50%) translateX(26px) scale(0.96);
      transform-origin: right center;

      transition: opacity 0.26s ease,
        transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1),
        visibility 0.28s ease;
    }

    .truepouch-products-window.is-open {
      opacity: 1;
      visibility: visible;
      transform: translateY(-50%) translateX(0) scale(1);
    }

    /* ---------- Header ---------- */
    .truepouch-products-header {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 13px 12px 13px 14px;
      background: #000;
      color: #ffffff;
    }

    .truepouch-products-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .truepouch-products-logo {
  flex: 0 0 auto;
  width: 120px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.truepouch-products-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}

    .truepouch-products-brand-text {
      min-width: 0;
    }

    .truepouch-products-title {
      font-size: 13.5px;
      font-weight: 800;
      letter-spacing: 0.05em;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .truepouch-products-subtitle {
      font-size: 11px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.80);
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .truepouch-products-status {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 10.5px;
      font-weight: 600;
      color: #8ff0c2;
      margin-top: 2px;
      letter-spacing: 0.02em;
    }

    .truepouch-products-status .tp-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #35d68a;
      box-shadow: 0 0 0 3px rgba(53, 214, 138, 0.18);
      display: inline-block;
    }

    .truepouch-products-header-actions {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .truepouch-products-iconbtn,
    .truepouch-products-close {
      appearance: none;
      border: 0;
      background: rgba(255, 255, 255, 0.10);
      color: #ffffff;
      width: 32px;
      height: 32px;
      border-radius: 9px;
      font-size: 17px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.18s ease, transform 0.18s ease;
    }

    .truepouch-products-iconbtn:hover,
    .truepouch-products-close:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    .truepouch-products-close {
      font-size: 21px;
    }

    .truepouch-products-iconbtn:focus-visible,
    .truepouch-products-close:focus-visible {
      outline: 2px solid #8ff0c2;
      outline-offset: 2px;
    }

    /* ---------- Body / conversation ---------- */
    .truepouch-products-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      scroll-behavior: smooth;

      display: flex;
      flex-direction: column;
      gap: 10px;

      padding: 16px 14px 12px;
      background: #f7f9fc;
      scrollbar-width: thin;
      scrollbar-color: #c3d2e5 transparent;
    }

    .truepouch-products-body::-webkit-scrollbar {
      width: 7px;
    }

    .truepouch-products-body::-webkit-scrollbar-thumb {
      background: #c3d2e5;
      border-radius: 999px;
    }

    /* ---------- Messages ---------- */
    .truepouch-products-message {
      display: flex;
      width: 100%;
    }

    .truepouch-products-message.is-bot {
      justify-content: flex-start;
    }

    .truepouch-products-message.is-user {
      justify-content: flex-end;
    }

    .truepouch-products-bubble {
      max-width: 86%;
      padding: 10px 13px;
      border-radius: 14px;
      font-size: 14px;
      line-height: 1.52;
      overflow-wrap: anywhere;
      word-break: break-word;
      animation: tpFadeUp 0.26s ease both;
    }

    .truepouch-products-message.is-bot .truepouch-products-bubble {
      background: #ffffff;
      border: 1px solid #e3e9f2;
      color: #132a45;
      border-bottom-left-radius: 5px;
      box-shadow: 0 1px 2px rgba(15, 42, 80, 0.05);
    }

    .truepouch-products-message.is-user .truepouch-products-bubble {
      background: linear-gradient(135deg, #123b73, #0b2545);
      color: #ffffff;
      border-bottom-right-radius: 5px;
      box-shadow: 0 2px 8px rgba(11, 37, 69, 0.20);
    }

    .truepouch-products-bubble strong {
      font-weight: 700;
    }

    .truepouch-products-bubble a {
      color: #0f5132;
      font-weight: 600;
      text-decoration: underline;
      overflow-wrap: anywhere;
    }

    .truepouch-products-message.is-user .truepouch-products-bubble a {
      color: #ffffff;
    }

    @keyframes tpFadeUp {
      from {
        opacity: 0;
        transform: translateY(6px);
      }

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

    /* ---------- Typing indicator ---------- */
    .truepouch-products-typing {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 12px 14px;
      background: #ffffff;
      border: 1px solid #e3e9f2;
      border-radius: 14px;
      border-bottom-left-radius: 5px;
      box-shadow: 0 1px 2px rgba(15, 42, 80, 0.05);
    }

    .truepouch-products-typing span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #9bb0cb;
      animation: tpBounce 1.2s infinite ease-in-out;
    }

    .truepouch-products-typing span:nth-child(2) {
      animation-delay: 0.15s;
    }

    .truepouch-products-typing span:nth-child(3) {
      animation-delay: 0.30s;
    }

    @keyframes tpBounce {

      0%,
      80%,
      100% {
        transform: translateY(0);
        opacity: 0.45;
      }

      40% {
        transform: translateY(-4px);
        opacity: 1;
      }
    }

    /* ---------- Quick replies ---------- */
    .truepouch-products-quick {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      width: 100%;
      margin-top: 2px;
      animation: tpFadeUp 0.26s ease both;
    }

    .truepouch-products-quick-btn {
      appearance: none;
      pointer-events: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;

      max-width: 100%;
      padding: 8px 13px;

      border: 1px solid #cfdcee;
      border-radius: 999px;
      background: #ffffff;
      color: #123b73;

      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      line-height: 1.35;
      text-align: left;
      text-decoration: none;
      cursor: pointer;

      transition: background 0.18s ease, border-color 0.18s ease,
        color 0.18s ease, transform 0.18s ease,
        box-shadow 0.18s ease;
    }

    .truepouch-products-quick-btn:hover {
      background: #eef4fd;
      border-color: #123b73;
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(18, 59, 115, 0.10);
    }

    .truepouch-products-quick-btn:active {
      transform: translateY(0);
    }

    .truepouch-products-quick-btn:focus-visible {
      outline: 2px solid #0f9d58;
      outline-offset: 2px;
    }

    .truepouch-products-quick-btn.is-primary {
      background: linear-gradient(135deg, #123b73, #0b2545);
      border-color: #123b73;
      color: #ffffff;
    }

    .truepouch-products-quick-btn.is-primary:hover {
      background: linear-gradient(135deg, #164a8e, #0d2c56);
      border-color: #164a8e;
      color: #ffffff;
    }

    /* =====================================================================
   ENQUIRY FORM
   ===================================================================== */
    .truepouch-products-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 12px;

      background: #ffffff;
      border: 1px solid #e3e9f2;
      border-radius: 14px;
      padding: 14px;

      box-shadow: 0 1px 2px rgba(15, 42, 80, 0.05);
      animation: tpFadeUp 0.26s ease both;
    }

    .truepouch-products-formhead {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eef2f8;
    }

    .truepouch-products-formtitle {
      font-size: 14px;
      font-weight: 800;
      color: #0b2545;
      letter-spacing: 0.01em;
    }

    .truepouch-products-formsub {
      font-size: 11.5px;
      color: #64748b;
    }

    .truepouch-products-field {
      display: flex;
      flex-direction: column;
      gap: 5px;
      min-width: 0;
    }

    .truepouch-products-field label {
      font-size: 12px;
      font-weight: 700;
      color: #31465f;
      letter-spacing: 0.01em;
    }

    .truepouch-products-input,
    .truepouch-products-select,
    .truepouch-products-textarea {
      width: 100%;
      max-width: 100%;
      font-family: inherit;
      font-size: 14px;
      line-height: 1.4;
      color: #0f172a;
      background: #fbfcfe;
      border: 1px solid #d5dfec;
      border-radius: 10px;
      padding: 10px 11px;
      transition: border-color 0.18s ease, box-shadow 0.18s ease,
        background 0.18s ease;
    }

    .truepouch-products-textarea {
      min-height: 78px;
      resize: vertical;
    }

    .truepouch-products-input::placeholder,
    .truepouch-products-textarea::placeholder {
      color: #94a3b8;
    }

    .truepouch-products-input:focus,
    .truepouch-products-select:focus,
    .truepouch-products-textarea:focus {
      outline: none;
      background: #ffffff;
      border-color: #123b73;
      box-shadow: 0 0 0 3px rgba(18, 59, 115, 0.13);
    }

    .truepouch-products-field.has-error .truepouch-products-input,
    .truepouch-products-field.has-error .truepouch-products-select,
    .truepouch-products-field.has-error .truepouch-products-textarea {
      border-color: #d14343;
      background: #fff7f7;
    }

    .truepouch-products-field.has-error .truepouch-products-input:focus,
    .truepouch-products-field.has-error .truepouch-products-select:focus,
    .truepouch-products-field.has-error .truepouch-products-textarea:focus {
      box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.14);
    }

    .truepouch-products-error {
      margin: 0;
      font-size: 12px;
      font-weight: 600;
      color: #b3261e;
      line-height: 1.4;
    }

    .truepouch-products-turnstile {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      min-height: 0;
    }

    .truepouch-products-tsnote {
      font-size: 12px;
      color: #b3261e;
      background: #fdecec;
      border: 1px solid #f3c6c3;
      border-radius: 10px;
      padding: 9px 11px;
      font-weight: 600;
    }

    .truepouch-products-formstatus {
      margin: 0;
      font-size: 12.5px;
      font-weight: 600;
      line-height: 1.45;
      padding: 9px 11px;
      border-radius: 10px;
      animation: tpFadeUp 0.22s ease both;
    }

    .truepouch-products-formstatus.is-error {
      background: #fdecec;
      border: 1px solid #f3c6c3;
      color: #a4211a;
    }

    .truepouch-products-formstatus.is-success {
      background: #ecfdf3;
      border: 1px solid #b7e4c9;
      color: #0f5132;
    }

    .truepouch-products-submit {
      width: 100%;
      border: 0;
      border-radius: 11px;
      padding: 12px 16px;

      background: linear-gradient(135deg, #123b73, #0b2545);
      color: #ffffff;

      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.02em;
      cursor: pointer;

      transition: filter 0.18s ease, transform 0.18s ease,
        opacity 0.18s ease, box-shadow 0.18s ease;
    }

    .truepouch-products-submit:hover:not(:disabled) {
      filter: brightness(1.10);
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(11, 37, 69, 0.24);
    }

    .truepouch-products-submit:active:not(:disabled) {
      transform: translateY(0);
    }

    .truepouch-products-submit:focus-visible {
      outline: 3px solid #0f9d58;
      outline-offset: 2px;
    }

    .truepouch-products-submit:disabled {
      opacity: 0.62;
      cursor: not-allowed;
    }

    .truepouch-products-formnote {
      margin: 0;
      font-size: 11px;
      line-height: 1.45;
      color: #7c8ba1;
      text-align: center;
    }

    /* =====================================================================
   SUCCESS PANEL
   ===================================================================== */
    .truepouch-products-success {
      width: 100%;
      max-width: 100%;
      background: #ffffff;
      border: 1px solid #b7e4c9;
      border-radius: 14px;
      padding: 16px 15px;
      box-shadow: 0 1px 2px rgba(15, 42, 80, 0.05);
      animation: tpFadeUp 0.3s ease both;
    }

    .truepouch-products-success-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #e7f8ef;
      color: #0f9d58;
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .truepouch-products-success-title {
      font-size: 15px;
      font-weight: 800;
      color: #0f5132;
      margin-bottom: 6px;
    }

    .truepouch-products-success p {
      margin: 0 0 8px;
      font-size: 13.5px;
      line-height: 1.55;
      color: #24405c;
    }

    .truepouch-products-success p:last-child {
      margin-bottom: 0;
    }

    /* =====================================================================
   FOOTER / COMPOSER
   ===================================================================== */
    .truepouch-products-footer {
      flex: 0 0 auto;
      border-top: 1px solid #e3e9f2;
      background: #ffffff;
      padding: 10px 12px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .truepouch-products-chatinput {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
    }

    .truepouch-products-chatinput .truepouch-products-input {
      flex: 1 1 auto;
      min-width: 0;
      border-radius: 999px;
      padding: 10px 15px;
      font-size: 14px;
    }

    .truepouch-products-send {
      flex: 0 0 auto;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 50%;
      background: linear-gradient(135deg, #123b73, #0b2545);
      color: #ffffff;
      font-size: 15px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-family: inherit;
      transition: filter 0.18s ease, transform 0.18s ease;
    }

    .truepouch-products-send:hover {
      filter: brightness(1.12);
    }

    .truepouch-products-send:focus-visible {
      outline: 3px solid #0f9d58;
      outline-offset: 2px;
    }

    /* =====================================================================
   RESPONSIVE — TABLET / SMALL DESKTOP
   ===================================================================== */
    @media (max-width: 1024px) {
      .truepouch-products-window {
        right: 12px;
        max-width: calc(100vw - 20px);
      }
    }

    /* =====================================================================
   RESPONSIVE — MOBILE
   ===================================================================== */
    @media (max-width: 767px) {
      .truepouch-products-toggle {
        width: 35px;
        padding: 7px 7px;
        gap: 7px;
        border-radius: 14px 0 0 14px;
      }

      .truepouch-products-toggle-icon {
        font-size: 17px;
      }

      .truepouch-products-toggle-text {
        font-size: 10px;
        letter-spacing: 0.12em;
      }
    }

    @media (max-width: 520px) {
      .truepouch-products-window {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        height: min(640px, calc(100vh - 32px));
        height: min(640px, calc(100dvh - 32px));
        max-height: calc(100dvh - 32px);
        border-radius: 16px;
        transform: translateY(18px) scale(0.99);
        transform-origin: bottom center;
      }

      .truepouch-products-window.is-open {
        transform: translateY(0) scale(1);
      }

      .truepouch-products-body {
        padding: 14px 12px 10px;
      }

      .truepouch-products-bubble {
        max-width: 92%;
        font-size: 13.5px;
      }

      .truepouch-products-quick-btn {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        text-align: center;
        font-size: 12.5px;
        padding: 9px 10px;
      }

      .truepouch-products-quick-btn.is-full {
        flex: 1 1 100%;
      }
    }

    /* =====================================================================
   RESPONSIVE — VERY SMALL DEVICES (< 360px)
   ===================================================================== */
    @media (max-width: 359px) {
      .truepouch-products-toggle {
        width: 42px;
        padding: 11px 5px;
        gap: 6px;
      }

      .truepouch-products-toggle-text {
        font-size: 9px;
        letter-spacing: 0.10em;
      }

      .truepouch-products-window {
        left: 4px;
        right: 4px;
        bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        height: min(600px, calc(100dvh - 16px));
        max-height: calc(100dvh - 16px);
        border-radius: 14px;
      }

      .truepouch-products-header {
        padding: 11px 10px;
      }

      .truepouch-products-logo {
        width: 34px;
        height: 34px;
        font-size: 12px;
        border-radius: 10px;
      }

      .truepouch-products-title {
        font-size: 12.5px;
      }

      .truepouch-products-subtitle {
        font-size: 10px;
      }

      .truepouch-products-body {
        padding: 12px 10px 8px;
        gap: 9px;
      }

      .truepouch-products-form {
        padding: 11px;
        gap: 10px;
      }

      .truepouch-products-input,
      .truepouch-products-select,
      .truepouch-products-textarea {
        font-size: 13.5px;
        padding: 9px 10px;
      }

      .truepouch-products-quick-btn {
        flex: 1 1 100%;
        font-size: 12.5px;
      }

      .truepouch-products-iconbtn,
      .truepouch-products-close {
        width: 30px;
        height: 30px;
      }
    }

    /* =====================================================================
   REDUCED MOTION
   ===================================================================== */
    @media (prefers-reduced-motion: reduce) {

      .truepouch-products *,
      .truepouch-products *::before,
      .truepouch-products *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
      }

      .truepouch-products-body {
        scroll-behavior: auto;
      }
    }




@media (max-width: 520px) {
  .truepouch-products-logo {
    width: 130px;
    height: 38px;
  }
}

@media (max-width: 359px) {
  .truepouch-products-logo {
    width: 115px;
    height: 34px;
  }
}