/* Chat assistant + language picker. Brand: navy #1A2753, teal #06727B, aqua #5FC4C8, brass #B98A2E. */

/* ---------- Launcher ---------- */
.pi-launcher {
  position: fixed; left: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 6px; border: 0; border-radius: 9999px;
  background: linear-gradient(135deg, #1A2753 0%, #0d4d63 55%, #06727B 100%);
  color: #fff; font: 600 14px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 28px -8px rgba(26, 39, 83, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.pi-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(26, 39, 83, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.pi-launcher:focus-visible { outline: 2px solid #5FC4C8; outline-offset: 3px; }
.pi-launcher.is-raised { transform: translateY(-48px); }
.pi-launcher.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
.pi-launcher__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; background: rgba(255, 255, 255, .14); }
.pi-launcher__icon svg { width: 20px; height: 20px; }
.pi-launcher__dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 9999px; background: #34d399; box-shadow: 0 0 0 2px #1A2753; }
@media (max-width: 639px) {
  .pi-launcher { left: 14px; bottom: 16px; height: 52px; width: 52px; padding: 0; justify-content: center; }
  .pi-launcher__label { display: none; }
  .pi-launcher__icon { background: transparent; }
  .pi-launcher__icon svg { width: 24px; height: 24px; }
}

/* ---------- Chat panel ---------- */
.pi-chat {
  position: fixed; left: 20px; bottom: 20px; z-index: 55;
  width: min(400px, calc(100vw - 40px)); height: min(620px, calc(100vh - 120px)); height: min(620px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; border: 1px solid rgba(26, 39, 83, .08);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 30px 70px -20px rgba(26, 39, 83, .45), 0 2px 8px rgba(26, 39, 83, .06);
  color: #1A2753; font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom left;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.pi-chat.is-open { opacity: 1; transform: none; }
.pi-chat[hidden] { display: none; }
@media (max-width: 639px) {
  .pi-chat { left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100vh - 80px); height: calc(100dvh - 80px); border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pi-chat, .pi-launcher { transition: none; } }

.pi-chat__head {
  display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px;
  background: linear-gradient(135deg, #1A2753 0%, #123a5e 60%, #06727B 100%); color: #fff;
}
.pi-chat__avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #E9C77B; }
.pi-chat__avatar svg { width: 20px; height: 20px; }
.pi-chat__meta { flex: 1; min-width: 0; }
.pi-chat__title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.pi-chat__status { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.pi-dot { width: 7px; height: 7px; border-radius: 9999px; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }

.pi-icon-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; transition: background-color .15s ease; }
.pi-icon-btn:hover { background: rgba(255, 255, 255, .14); }
.pi-icon-btn:focus-visible { outline: 2px solid #5FC4C8; outline-offset: 1px; }
.pi-icon-btn svg { width: 18px; height: 18px; }

.pi-chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #F6F9FB 0%, #fff 100%); }
.pi-msg { display: flex; }
.pi-msg--user { justify-content: flex-end; }
.pi-bubble { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: 14px; line-height: 1.55; word-wrap: break-word; }
.pi-msg--bot .pi-bubble { background: #fff; border: 1px solid #E2E8F0; border-bottom-left-radius: 6px; box-shadow: 0 2px 8px -4px rgba(26, 39, 83, .12); }
.pi-msg--user .pi-bubble { background: #06727B; color: #fff; border-bottom-right-radius: 6px; }
.pi-bubble a { color: #06727B; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pi-bubble ul { margin: 6px 0; padding-left: 18px; list-style: disc; }
.pi-bubble li { margin: 2px 0; }
.pi-bubble strong { font-weight: 700; }
.pi-small { margin: 8px 0 0; font-size: 12.5px; color: #64748B; }

.pi-typing .pi-bubble { display: inline-flex; gap: 4px; padding: 13px 14px; }
.pi-typing span { width: 7px; height: 7px; border-radius: 9999px; background: #94a3b8; animation: pi-blink 1s infinite ease-in-out; }
.pi-typing span:nth-child(2) { animation-delay: .15s; }
.pi-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pi-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.pi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pi-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9999px;
  border: 1px solid #E2E8F0; background: #fff; color: #1A2753 !important; text-decoration: none !important;
  font: 600 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.pi-btn:hover { border-color: #06727B; background: #EEF6F6; }
.pi-btn svg { width: 15px; height: 15px; }
.pi-btn--primary { background: #1A2753; border-color: #1A2753; color: #fff !important; }
.pi-btn--primary:hover { background: #06727B; border-color: #06727B; }
.pi-btn--wa { background: #25D366; border-color: #25D366; color: #fff !important; }
.pi-btn--wa:hover { background: #1EBE5B; border-color: #1EBE5B; }

.pi-chat__chips { display: flex; gap: 8px; padding: 8px 14px 10px; overflow-x: auto; scrollbar-width: none; background: #fff; }
.pi-chat__chips::-webkit-scrollbar { display: none; }
.pi-chat__chips[hidden] { display: none; }
.pi-chip {
  flex: none; padding: 7px 12px; border-radius: 9999px; border: 1px solid rgba(6, 114, 123, .3);
  background: #EEF6F6; color: #06727B; font: 600 12.5px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pi-chip:hover { background: #06727B; color: #fff; }
.pi-chip:focus-visible { outline: 2px solid #06727B; outline-offset: 2px; }

.pi-chat__form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #E2E8F0; background: #fff; }
.pi-chat__input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 9999px; border: 1px solid #E2E8F0; background: #F6F9FB;
  color: #1A2753; font: 400 16px/1 Inter, ui-sans-serif, system-ui, sans-serif; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.pi-chat__input:focus { border-color: #06727B; box-shadow: 0 0 0 3px rgba(6, 114, 123, .15); background: #fff; }
.pi-chat__send { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 9999px; background: #06727B; color: #fff; cursor: pointer; transition: background-color .15s ease; }
.pi-chat__send:hover { background: #1A2753; }
.pi-chat__send:focus-visible { outline: 2px solid #5FC4C8; outline-offset: 2px; }
.pi-chat__send svg { width: 18px; height: 18px; }
.pi-chat__foot { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 11.5px; color: #64748B; text-align: center; }
.pi-chat__foot a { color: #06727B; font-weight: 600; }

/* ---------- Language picker ---------- */
.pi-lang { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.pi-lang[hidden] { display: none; }
.pi-lang__scrim { position: absolute; inset: 0; background: rgba(26, 39, 83, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pi-lang__card {
  position: relative; width: min(560px, 100%); max-height: min(640px, calc(100vh - 32px)); max-height: min(640px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fff; color: #1A2753;
  box-shadow: 0 30px 70px -20px rgba(26, 39, 83, .5); opacity: 0; transform: translateY(10px) scale(.98);
  transition: opacity .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.pi-lang.is-open .pi-lang__card { opacity: 1; transform: none; }
.pi-lang__head { display: flex; align-items: center; gap: 12px; padding: 18px 14px 12px 20px; }
.pi-lang__head .pi-icon-btn { margin-left: auto; color: #1A2753; }
.pi-lang__head .pi-icon-btn:hover { background: #F1F5F9; }
.pi-lang__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: #EEF6F6; color: #06727B; }
.pi-lang__icon svg { width: 20px; height: 20px; }
.pi-lang__title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pi-lang__sub { margin: 2px 0 0; font-size: 13px; color: #64748B; }
.pi-lang__search { margin: 0 20px 10px; height: 42px; padding: 0 16px; border-radius: 9999px; border: 1px solid #E2E8F0; background: #F6F9FB; font: 400 16px/1 Inter, ui-sans-serif, system-ui, sans-serif; color: #1A2753; outline: none; }
.pi-lang__search:focus { border-color: #06727B; box-shadow: 0 0 0 3px rgba(6, 114, 123, .15); background: #fff; }
.pi-lang__list { list-style: none; margin: 0; padding: 4px 16px 8px; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .pi-lang__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pi-lang__opt {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid #E2E8F0; background: #fff; color: #1A2753; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.pi-lang__opt:hover { border-color: #06727B; background: #F6FBFB; }
.pi-lang__opt:focus-visible { outline: 2px solid #06727B; outline-offset: 2px; }
.pi-lang__opt[aria-current="true"] { border-color: #06727B; background: #EEF6F6; box-shadow: inset 0 0 0 1px #06727B; }
.pi-lang__native { font-size: 14.5px; font-weight: 600; }
.pi-lang__en { font-size: 11.5px; color: #64748B; }
.pi-lang__note { margin: 0; padding: 10px 20px 16px; font-size: 11.5px; color: #64748B; border-top: 1px solid #F1F5F9; }

/* ---------- Hide Google Translate's own bar and highlights ---------- */
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO, .VIpgJd-yAWNEb-L7lbkb { display: none !important; visibility: hidden !important; }
html.translated-ltr body, html.translated-rtl body, body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background-color: transparent !important; box-shadow: none !important; }
