/* Polmarket AI Panel Widget 1.4.0 */
#polmarket-ai-root { display:block; }
.polai-launcher {
  position: fixed;
  right: var(--polai-launcher-right, 12px);
  bottom: var(--polai-launcher-bottom, 86px);
  z-index: 2147483647;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  background: rgba(12,35,70,.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: polaiPulse 2.8s ease-in-out infinite;
}
.polai-launcher:hover { filter: brightness(1.03); }
.polai-launcher-text {
  font-weight:800;
  letter-spacing:.6px;
  font-size:16px;
  line-height:1;
  background: linear-gradient(90deg,#7dd3fc,#a78bfa,#7dd3fc);
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation: polaiGradient 3.2s ease-in-out infinite;
}
.polai-launcher-sub { margin-top:2px; font-size:9px; line-height:1; opacity:.85; letter-spacing:.2px; }
.polai-launcher-badge {
  position:absolute;
  top:-2px;
  right:-2px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#ef476f;
  border:2px solid #fff;
  opacity:0;
  transform:scale(.6);
  transition:.2s ease;
}
.polai-launcher.polai-has-badge .polai-launcher-badge { opacity:1; transform:scale(1); }
@keyframes polaiGradient { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
@keyframes polaiPulse { 0%,100%{box-shadow:0 10px 30px rgba(0,0,0,.18);} 50%{box-shadow:0 10px 30px rgba(0,0,0,.18), 0 0 0 6px rgba(18,103,215,.08);} }

.polai-panel {
  position: fixed;
  right: 18px;
  bottom: 164px;
  z-index: 2147483647;
  width: 420px;
  max-width: calc(100vw - 24px);
  height: min(720px, calc(100vh - 84px));
  max-height: calc(100vh - 84px);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(12,26,52,.34), 0 12px 34px rgba(12,26,52,.18);
  border: 1px solid rgba(14,28,55,.12);
  background:#fff;
  overflow:hidden;
  display:none;
}
.polai-panel.polai-open { display:flex; flex-direction:column; }
.polai-header {
  background: linear-gradient(135deg,#15345f,#1d4c8c);
  color:#fff;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:10px;
}
.polai-logo {
  width:32px;
  height:32px;
  border-radius:12px;
  background: linear-gradient(135deg,#7c3aed,#3b82f6);
  color:#fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 8px 20px rgba(0,0,0,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:13px;
}
.polai-titlewrap { flex:1; min-width:0; }
.polai-title { font-size:15px; font-weight:700; line-height:1.12; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.polai-subtitle { font-size:11px; opacity:.92; }
.polai-header-actions { display:flex; gap:8px; }
.polai-iconbtn{
  width:32px;
  height:32px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  font-size:18px;
  line-height:1;
}
.polai-iconbtn:hover { background:rgba(255,255,255,.16); }
.polai-body {
  padding:14px;
  background:#f6f8fc;
  flex:1;
  overflow:auto;
}
.polai-entry-assistant + .polai-entry-assistant,
.polai-entry-assistant + .polai-bubble.polai-me,
.polai-bubble.polai-me + .polai-entry-assistant { margin-top:2px; }
.polai-bubble {
  background:#fff;
  border-radius:18px;
  padding:12px 13px;
  box-shadow:0 8px 24px rgba(10,20,40,.05);
  border:1px solid rgba(10,20,40,.06);
  margin-bottom:12px;
  white-space:normal;
  color:#213247;
}
.polai-bubble-body p{ margin:0 0 10px; line-height:1.58; }
.polai-bubble-body p:last-child{ margin-bottom:0; }
.polai-bubble-body ul{ margin:0; padding-left:18px; }
.polai-bubble-body li{ margin:0 0 6px; line-height:1.5; }
.polai-bubble.polai-me {
  background:#eaf2ff;
  color:#17355f;
  border-color:#cfe0ff;
  box-shadow:none;
  margin-left:42px;
}
.polai-bubble.polai-welcome { border-top-left-radius:10px; }
.polai-hint {
  font-size:12px;
  color:#58708c;
  margin:0 0 12px;
  padding:11px 12px;
  background:#ffffff;
  border-radius:16px;
  border:1px dashed rgba(16,52,104,.10);
}
.polai-typing { display:flex; align-items:center; gap:6px; width:max-content; }
.polai-typing span {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#7e8aa2;
  animation: polaiDots 1.2s infinite ease-in-out;
}
.polai-typing span:nth-child(2){ animation-delay:.15s; }
.polai-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes polaiDots { 0%,80%,100%{ transform:scale(.7); opacity:.5; } 40%{ transform:scale(1); opacity:1; } }

.polai-chips {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 10px;
}
.polai-chip {
  border:1px solid rgba(19,50,96,.10);
  background:#f7f9fd;
  color:#324450;
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  line-height:1.2;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.polai-chip:hover {
  background:#fff;
  border-color:rgba(19,50,96,.18);
  transform:translateY(-1px);
}
.polai-cards-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:10px; }
.polai-carousel { position:relative; margin:0 0 12px; padding-bottom:2px; }
.polai-cards-scroll {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - (var(--polai-cards-desktop-ui, 2) - 1) * 12px) / var(--polai-cards-desktop-ui, 2));
  gap:12px;
  overflow-x:auto;
  overflow-y:visible;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:rgba(50,68,80,.58) rgba(19,52,95,.08);
  scroll-behavior:smooth;
  scrollbar-gutter:stable;
  padding:10px 16px 14px 2px;
}
.polai-cards-scroll::-webkit-scrollbar { display:block; height:8px; }
.polai-cards-scroll::-webkit-scrollbar-track { background:rgba(19,52,95,.08); border-radius:999px; }
.polai-cards-scroll::-webkit-scrollbar-thumb { background:rgba(50,68,80,.46); border-radius:999px; }
.polai-cards-scroll::-webkit-scrollbar-thumb:hover { background:rgba(50,68,80,.76); }
.polai-card {
  scroll-snap-align:start;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(10,20,40,.07);
  box-shadow:0 8px 24px rgba(10,20,40,.05);
  overflow:visible;
  display:flex;
  flex-direction:column;
  position:relative;
}
.polai-card img {
  width:100%;
  height:136px;
  object-fit:contain;
  display:block;
  background:linear-gradient(180deg,#fbfcff,#f3f6fb);
  padding:10px;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
}
.polai-card .polai-card-body {
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
  position:relative;
  z-index:2;
}
.polai-card .polai-card-title {
  font-weight:700;
  font-size:13px;
  line-height:1.4;
  min-height:37px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.polai-card .polai-card-title a { color:#17355f; text-decoration:none; }
.polai-card .polai-card-title a:hover { text-decoration:underline; }
.polai-price { font-weight:800; color:#1f2f46; font-size:15px; line-height:1.2; margin:0; }
.polai-card ul { margin:0; padding-left:16px; font-size:12px; opacity:.92; }
.polai-card-actions {
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.polai-card-price-row{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.polai-card-actions-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-shrink:0;
}
.polai-card-link,
.polai-card-add,
.polai-cta,
.polai-send,
.polai-footer-cta-btn {
  font-family:inherit !important;
  text-transform:none !important;
  letter-spacing:0 !important;
}
.polai-card-link::before,
.polai-card-add::before,
.polai-cta::before,
.polai-send::before,
.polai-footer-cta-btn::before,
.polai-card-link::after,
.polai-card-add::after,
.polai-cta::after,
.polai-send::after,
.polai-footer-cta-btn::after { content:none !important; display:none !important; }
.polai-card-link span,
.polai-card-add span,
.polai-cta span,
.polai-footer-cta-btn span { position:relative; z-index:2; display:inline-block; color:inherit !important; }
.polai-sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.polai-icon-action,
.polai-card-link,
.polai-card-add {
  position:relative;
  width:27px;
  height:27px;
  min-width:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  padding:0;
  text-decoration:none;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.polai-icon-action:hover,
.polai-card-link:hover,
.polai-card-add:hover { transform:translateY(-1px); }
.polai-card-add {
  color:#ffffff !important;
  background:#f3c316 !important;
  box-shadow:0 8px 20px rgba(243,195,22,.28);
}
.polai-card-add:hover {
  background:#ffd63b !important;
  color:#16355f !important;
}
.polai-card-add:disabled,
.polai-card-add.is-loading {
  cursor:not-allowed;
  background:#f8e59a !important;
  color:#7a5c00 !important;
  box-shadow:none;
  transform:none;
}
.polai-card-link {
  color:#ffffff !important;
  background:#b7b9bd !important;
  box-shadow:0 8px 20px rgba(120,129,143,.22);
}
.polai-card-link:hover {
  background:#f3c316 !important;
  color:#16355f !important;
  text-decoration:none;
}
.polai-card-icon{
  width:14px;
  height:14px;
  display:block;
  fill:currentColor;
}
.polai-icon-action::after,
.polai-card-link::after,
.polai-card-add::after{
  content:attr(data-tooltip) !important;
  display:block !important;
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  background:rgba(17,24,39,.96);
  color:#fff;
  border-radius:9px;
  padding:7px 10px;
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  z-index:30;
}
.polai-icon-action:hover::after,
.polai-card-link:hover::after,
.polai-card-add:hover::after,
.polai-icon-action:focus-visible::after,
.polai-card-link:focus-visible::after,
.polai-card-add:focus-visible::after{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.polai-icon-action:focus-visible,
.polai-card-link:focus-visible,
.polai-card-add:focus-visible{
  outline:2px solid #1d4ed8;
  outline-offset:2px;
}
.polai-carousel-btn {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(10,20,40,.08);
  background:#fff;
  box-shadow:0 6px 18px rgba(10,20,40,.10);
  color:#17355f;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  font-size:18px;
  line-height:1;
  z-index:2;
}
.polai-carousel-btn.is-prev{ left:-4px; }
.polai-carousel-btn.is-next{ right:-4px; }
.polai-carousel-btn:hover{ background:#f8fbff; }

.polai-cta {
  margin-top:12px;
  width:100%;
  border:none;
  cursor:pointer;
  padding:12px 14px;
  border-radius:14px;
  background:linear-gradient(135deg,#0a3777,#1267d7) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-weight:800;
  font-size:15px;
  box-shadow:0 12px 34px rgba(18,103,215,.18);
}
.polai-cta:disabled { opacity:.6; cursor:not-allowed; }
.polai-followups { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

.polai-footer-cta {
  padding:0 14px 10px;
  background:#fff;
  border-top:1px solid rgba(10,20,40,.06);
}
.polai-footer-cta[hidden] { display:none !important; }
.polai-footer-cta-btn {
  width:100%;
  border:none;
  border-radius:16px;
  background:#eff5ff !important;
  color:#17355f !important;
  box-shadow:none;
  padding:12px 14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.polai-footer-cta-btn:hover { background:#e7f0ff !important; }
.polai-footer-cta-btn:disabled {
  opacity:1;
  cursor:not-allowed;
  background:#eef3fb !important;
  color:#58708c !important;
}
.polai-footer-cta-main {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  text-align:left;
}
.polai-footer-cta-title { font-size:14px; font-weight:800; }
.polai-footer-cta-subtitle { font-size:11px; color:#5d7390 !important; }
.polai-footer-cta-icon {
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#dbe8ff;
  color:#215cc4 !important;
  flex:0 0 auto;
  font-size:16px;
}

.polai-footer {
  padding:12px 14px 12px;
  background:#fff;
  border-top:1px solid rgba(10,20,40,.06);
}
.polai-order-lookup{
  margin:0 0 10px;
  padding:11px;
  border:1px solid rgba(33,92,196,.14);
  background:#f6f9ff;
  border-radius:16px;
}
.polai-order-lookup[hidden]{ display:none !important; }
.polai-order-lookup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px;}
.polai-order-lookup-copy{min-width:0;flex:1;}
.polai-order-lookup-title{
  font-size:13px;
  font-weight:800;
  color:#17355f;
  margin-bottom:4px;
}
.polai-order-lookup-desc{
  font-size:11px;
  line-height:1.45;
  color:#5d7390;
  margin-bottom:0;
}
.polai-order-close{border:none;background:transparent;color:#5d7390;width:28px;height:28px;border-radius:999px;cursor:pointer;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.polai-order-close:hover{background:rgba(19,52,95,.08);color:#17355f;}
.polai-order-lookup-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
@media (min-width: 430px) {
  .polai-order-lookup-grid{ grid-template-columns:1fr 1fr; }
}
.polai-order-input{
  width:100%;
  border:1px solid rgba(10,20,40,.10);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
  background:#fff;
  color:#213247;
  box-shadow: inset 0 1px 1px rgba(10,20,40,.02);
}
.polai-order-input:focus{
  border-color:#b5ccf5;
  box-shadow:0 0 0 3px rgba(33,92,196,.08);
}
.polai-order-actions{
  margin-top:9px;
  display:flex;
  justify-content:flex-end;
}
.polai-order-submit{
  border:none;
  border-radius:14px;
  min-width:136px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
  background:linear-gradient(135deg,#215cc4,#2b78e4) !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(43,120,228,.16);
}
.polai-order-submit:disabled{
  opacity:.75;
  cursor:not-allowed;
}
.polai-inputrow { display:flex; gap:10px; align-items:center; }
.polai-input {
  flex:1;
  border:1px solid rgba(10,20,40,.10);
  border-radius:16px;
  padding:11px 14px;
  outline:none;
  background:#fff;
  color:#213247;
  box-shadow: inset 0 1px 1px rgba(10,20,40,.02);
}
.polai-input:focus {
  border-color:#b5ccf5;
  box-shadow:0 0 0 3px rgba(33,92,196,.08);
}
.polai-send {
  border:none;
  border-radius:16px;
  min-width:76px;
  padding:11px 15px;
  font-weight:700;
  cursor:pointer;
  background:linear-gradient(135deg,#215cc4,#2b78e4) !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(43,120,228,.16);
}
.polai-send:disabled { opacity:.75; cursor:not-allowed; }
.polai-footbar {
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.polai-footnote {
  margin-top:0;
  font-size:9px;
  line-height:1.25;
  opacity:.78;
  font-weight:600;
  color:#324450;
}
.polai-rating { display:flex; align-items:center; gap:6px; color:#324450; font-size:11px; white-space:nowrap; }
.polai-rating-label { font-weight:600; opacity:.92; color:#324450; }
.polai-rating-btn {
  border:none;
  background:transparent;
  color:#324450;
  padding:2px 4px;
  border-radius:999px;
  cursor:pointer;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  gap:3px;
}
.polai-rating-btn:hover { background:rgba(10,20,40,.05); }
.polai-rating-btn.is-selected { background:rgba(18,103,215,.10); color:#0b2d5c; }
.polai-rating-done .polai-rating-label { opacity:.55; }
.polai-rating-count { font-weight:700; }

@media (max-width: 980px) {
  .polai-cards-scroll {
    grid-auto-columns:calc((100% - (var(--polai-cards-tablet-ui, 2) - 1) * 12px) / var(--polai-cards-tablet-ui, 2));
  }
}
@media (max-width: 520px) {
  .polai-panel {
    right:12px;
    bottom:78px;
    width:calc(100vw - 24px);
    height:78vh;
  }
  .polai-body { padding:12px; }
  .polai-cards-scroll {
    grid-auto-columns:calc((100% - (var(--polai-cards-mobile-ui, 1.16) - 1) * 12px) / var(--polai-cards-mobile-ui, 1.16));
    padding-right:10px;
  }
  .polai-carousel-btn { display:none; }
  .polai-footbar { flex-wrap:wrap; }
  .polai-rating { width:100%; justify-content:flex-end; }
}

.polai-inline-link{color:#215cc4;text-decoration:underline;word-break:break-all;}
