/* Polo, Polarkin's AI assistant: the button and its chat window (assets/polo.js). */
.polo{--polo-navy:#0b2356;--polo-blue:#007bd4;--polo-blue-dark:#0067b3;--polo-tint:#eef6fd;--polo-line:#e3e9f0;--polo-text:#3d4a5c;--polo-muted:#66748a;--polo-lift:0px;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--polo-navy);-webkit-font-smoothing:antialiased}
.polo *{box-sizing:border-box}
.polo-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* The button */
.polo-launch{position:fixed;right:20px;bottom:calc(20px + var(--polo-lift) + env(safe-area-inset-bottom,0px));z-index:9990;display:flex;align-items:center;gap:8px;
  padding:5px 18px 5px 5px;border:0;border-radius:999px;background:#fff;color:var(--polo-navy);font-family:inherit;font-weight:600;font-size:16px;line-height:1;cursor:pointer;
  box-shadow:0 8px 24px rgba(11,35,86,.18),0 0 0 1px rgba(11,35,86,.06);transition:transform .15s,box-shadow .15s,bottom .15s}
.polo-launch:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(11,35,86,.22),0 0 0 1px rgba(11,35,86,.08)}
.polo-launch:focus-visible{outline:3px solid #249ada;outline-offset:3px}
.polo-launch img{width:44px;height:44px;object-fit:contain}
.polo.is-open .polo-launch{display:none}

/* "Ask Polo" in the site header: its icon and the words, always */
.polo-header{display:inline-flex;align-items:center;gap:8px;flex:none;min-height:44px;min-width:44px;padding:5px 14px 5px 5px;border:1px solid var(--border,#dfebf1);border-radius:999px;
  background:#fff;color:var(--navy,#07234c);font-family:inherit;font-weight:700;font-size:16px;line-height:1;letter-spacing:0;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.polo-header:hover,.polo-header.is-active{border-color:#9fd3f5;background:var(--ice,#edf8fd)}
.polo-header-face{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:50%;background:var(--ice,#edf8fd);color:#007bd4}
@media (max-width:900px){
  .polo-header{padding:4px 12px 4px 5px;gap:6px}
  .polo-header-face{width:30px;height:30px}
}
@media (max-width:360px){
  .polo-header{padding:4px 9px 4px 3px;gap:4px;font-size:15px}
  .polo-header-face{width:26px;height:26px}
}

/* The window */
.polo-panel{position:fixed;right:20px;bottom:calc(20px + var(--polo-lift) + env(safe-area-inset-bottom,0px));z-index:9991;display:flex;flex-direction:column;
  width:min(400px,calc(100vw - 32px));height:min(640px,calc(100vh - 40px - var(--polo-lift)));background:#fff;border:1px solid var(--polo-line);border-radius:16px;overflow:hidden;
  box-shadow:0 12px 36px rgba(11,35,86,.12)}
.polo-panel[hidden]{display:none}
/* Opened from the header: a panel down the right-hand edge, the full height of the screen */
.polo.is-docked .polo-panel{top:0;right:0;bottom:0;width:min(420px,100vw);height:auto;border-radius:0;animation:polo-in .18s ease-out}
@keyframes polo-in{from{transform:translateY(-8px);opacity:.4}to{transform:none;opacity:1}}
.polo-head{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 18px;background:#fff;border-bottom:1px solid var(--polo-line);color:var(--polo-navy)}
.polo-head-icon{display:flex;flex:none;color:var(--polo-blue)}
.polo-head div{flex:1;line-height:1.25}
.polo-head b{font-size:17px;font-weight:700}
.polo-close{display:flex;align-items:center;justify-content:center;gap:4px;min-width:44px;height:44px;padding:0 10px;border:0;border-radius:22px;background:transparent;color:var(--polo-navy);
  font-family:inherit;font-size:24px;line-height:1;cursor:pointer}
.polo-close small{display:none;font-size:16px;font-weight:600}
.polo-close:hover{background:var(--polo-tint)}
.polo-close:focus-visible{background:var(--polo-tint);outline:2px solid var(--polo-blue);outline-offset:-2px}

.polo-log{position:relative;flex:1;overflow-y:auto;padding:20px 18px;display:flex;flex-direction:column;gap:12px;background:#faf8f4 var(--polo-background,none) center/cover no-repeat;overscroll-behavior:contain}
.polo-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:17px;line-height:1.5}
.polo-msg p{margin:0 0 8px}.polo-msg p:last-child{margin:0}
.polo-msg ul,.polo-msg ol{margin:4px 0 8px;padding-left:20px}.polo-msg li{margin:2px 0}
.polo-msg a{color:var(--polo-blue-dark);text-decoration:underline}
.polo-msg.is-polo{align-self:flex-start;background:#fff;color:var(--polo-text);border:1px solid var(--polo-line);border-bottom-left-radius:6px}
.polo-msg.is-user{align-self:flex-end;background:var(--polo-blue);color:#fff;border-bottom-right-radius:6px;white-space:pre-wrap}
.polo-msg.is-error{border-color:#f0c27a;background:#fff8ec}
.polo-typing{display:flex;gap:4px;padding:14px}
.polo-typing i{width:7px;height:7px;border-radius:50%;background:#9fb3c6;animation:polo-dot 1s infinite}
.polo-typing i:nth-child(2){animation-delay:.15s}.polo-typing i:nth-child(3){animation-delay:.3s}
@keyframes polo-dot{0%,80%,100%{opacity:.35;transform:none}40%{opacity:1;transform:translateY(-3px)}}

.polo-suggest{display:flex;flex-direction:column;gap:8px}
.polo-suggest button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--polo-line);border-radius:12px;background:#fff;color:var(--polo-navy);font-family:inherit;font-weight:500;font-size:16px;line-height:1.35;text-align:left;cursor:pointer}
.polo-suggest button i{flex:none;font-style:normal;color:var(--polo-muted)}
.polo-suggest button:hover{border-color:#b9d6ef;background:var(--polo-tint)}
.polo-suggest button:hover i{color:var(--polo-blue)}
.polo-suggest button:focus-visible{outline:2px solid var(--polo-blue);outline-offset:1px}
/* The opening menu: its sections, and the open one's questions indented under it. */
.polo-sections>button{font-weight:600}
.polo-sections>button[aria-expanded="true"]{border-color:#b9d6ef;background:var(--polo-tint)}
.polo-sections .polo-suggest{margin:0 0 4px 16px}

/* After a system: see the next (only under the latest answer) */
.polo-more button{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;border:1px solid #b9d6ef;border-radius:12px;background:#fff;color:var(--polo-blue-dark);font-family:inherit;font-weight:600;font-size:16px;line-height:1.3;cursor:pointer}
.polo-more button i{font-style:normal}
.polo-more button:hover{background:var(--polo-tint)}
.polo-more button:focus-visible{outline:2px solid var(--polo-blue);outline-offset:1px}
.polo-log>.polo-more:not(:last-child){display:none}

/* Product cards: one at a time, with arrows between them */
.polo-cards{display:flex;flex-direction:column;gap:8px;max-width:100%}
.polo-cards-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:600;color:var(--polo-muted)}
.polo-cards-nav button{width:32px;height:32px;border:1px solid #b9d6ef;border-radius:50%;background:#fff;color:var(--polo-blue-dark);font-size:20px;line-height:1;cursor:pointer}
.polo-cards-nav button:hover{background:var(--polo-tint)}
.polo-card[hidden]{display:none}
/* The website's own card, as in the product list (assets/configurator.css), fitted to the window; no comparing here */
.polo-card .pkc-pkg{width:100%;margin:0;box-shadow:none}
.polo-card .pkc-compare-toggle{display:none}

/* A shortlist: a line per system (its label, Polo's reason, its price), More info opening its card below */
.polo-shortlist{flex:none;display:flex;flex-direction:column;background:#fff;border:1px solid var(--polo-line);border-radius:14px;overflow:hidden}
.polo-pick+.polo-pick{border-top:1px solid var(--polo-line)}
.polo-pick-row{display:flex;align-items:center;gap:12px;padding:12px 14px}
.polo-pick-text{flex:1;min-width:0;font-size:16px;line-height:1.35}
.polo-pick-label{display:block;margin-bottom:2px;font-size:14px;font-weight:700;color:var(--polo-blue-dark)}
.polo-pick-text b{color:var(--polo-navy)}
.polo-pick-text small{color:var(--polo-muted);font-size:14px}
.polo-pick-text p{margin:3px 0 0;color:var(--polo-text);font-size:15px}
.polo-pick-colours{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:5px}
.polo-pick-colours i{width:12px;height:12px;border-radius:50%;border:1px solid var(--polo-line);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.polo-pick-colours small{margin-left:3px}
.polo-pick-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.polo-pick-price{font-weight:700;font-size:17px;color:var(--polo-navy);white-space:nowrap;text-align:right}
.polo-pick-price s{font-weight:500;font-size:14px;color:var(--polo-muted)}
.polo-pick-price small{display:block;font-weight:500;font-size:13px;color:var(--polo-muted)}
.polo-pick-more{min-height:36px;padding:6px 12px;border:1px solid #b9d6ef;border-radius:10px;background:#fff;color:var(--polo-blue-dark);font-family:inherit;font-weight:600;font-size:15px;cursor:pointer;white-space:nowrap}
.polo-pick-more:hover,.polo-pick-more[aria-expanded="true"]{background:var(--polo-tint)}
.polo-pick-more:focus-visible{outline:2px solid var(--polo-blue);outline-offset:1px}
.polo-pick .polo-card{padding:0 10px 12px}
.polo-more-ideas{margin-top:2px}

.polo-quote{margin:0;padding:10px 12px;background:#fff;border:1px solid var(--polo-line);border-radius:12px;font-size:15px}
.polo-quote div{display:flex;justify-content:space-between;gap:10px;padding:3px 0}
.polo-quote dt{color:var(--polo-muted)}.polo-quote dd{margin:0;font-weight:700;color:var(--polo-navy)}

.polo-actions{display:flex;flex-wrap:wrap;gap:6px}
.polo-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border:1px solid #b9d6ef;border-radius:10px;
  background:#fff;color:var(--polo-blue-dark);font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;text-decoration:none;text-align:center}
.polo-btn:hover{background:var(--polo-tint)}
.polo-btn.is-primary{background:var(--polo-blue);border-color:var(--polo-blue);color:#fff}
.polo-btn.is-primary:hover{background:var(--polo-blue-dark)}

/* Typing */
.polo-form{padding:12px 16px 8px;border-top:1px solid var(--polo-line);background:#fff}
.polo-bar{display:flex;align-items:flex-end;gap:6px;padding:5px;border:1px solid #cfdae5;border-radius:14px;background:#fff}
.polo-bar:focus-within{border-color:var(--polo-blue);box-shadow:0 0 0 1px var(--polo-blue)}
.polo-form textarea{flex:1;min-width:0;min-height:38px;max-height:120px;padding:9px 8px 9px 10px;border:0;border-radius:10px;background:transparent;box-shadow:none;font-family:inherit;font-size:17px;line-height:1.35;color:var(--polo-navy);resize:none}
.polo-form textarea:focus{outline:none;box-shadow:none}
.polo-form button{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;padding:0;border:0;border-radius:10px;background:var(--polo-blue);color:#fff;cursor:pointer}
.polo-form button:focus-visible{outline:2px solid var(--polo-navy);outline-offset:2px}
.polo-form.is-busy button{opacity:.5;cursor:wait}
.polo-note{margin:0;padding:0 18px 12px;font-size:14px;line-height:1.4;color:var(--polo-text);background:#fff}

/* Phones: the window fills the screen; the button is just Polo */
@media (max-width:600px){
  .polo-launch{right:14px;bottom:calc(14px + var(--polo-lift) + env(safe-area-inset-bottom,0px));padding:4px}
  .polo-launch span{display:none}
  .polo-panel,.polo.is-docked .polo-panel{top:0;right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}
  html.polo-is-open,html.polo-is-open body{overflow:hidden}
  /* Above everything (the WordPress toolbar too), with a plain "× Close" */
  .polo-panel,.polo.is-docked .polo-panel{z-index:100000}
  .polo-panel,.polo.is-docked .polo-panel{border:0}
  .polo-head{padding-top:max(10px,env(safe-area-inset-top))}
  .polo-close{background:var(--polo-tint)}
  .polo-close small{display:inline}
}
@media print{.polo{display:none}}
/* Polo's face on the Ask Polo buttons (header, finder, footer, the floating one) and the chat window's header: the
   cut-out head as it is (transparent around it), no circle behind it. */
.polo-face{display:block;flex:none;object-fit:contain}
.polo-header-face:has(.polo-face){background:none}
.polo-header-face .polo-face{width:100%;height:100%}
/* Ready-made prompts: answers to tap under the latest answer (chips that wrap), and New chat in the header. */
.polo-chips{display:flex;flex-wrap:wrap;gap:8px}
.polo-chips button{min-height:36px;padding:7px 13px;border:1px solid #b9d6ef;border-radius:999px;background:#fff;color:var(--polo-blue-dark);font-family:inherit;font-size:16px;font-weight:600;line-height:1.25;text-align:left;cursor:pointer}
.polo-chips button:hover{background:var(--polo-tint)}
.polo-chips button[aria-pressed="true"]{border-color:var(--polo-blue);background:var(--polo-blue);color:#fff}
.polo-chips button:focus-visible{outline:2px solid var(--polo-blue);outline-offset:1px}
.polo-next{margin-top:-2px}
.polo-new{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:0;border-radius:10px;background:none;color:var(--polo-navy);font-family:inherit;font-size:18px;cursor:pointer}
.polo-new small{font-size:15px;font-weight:600}
.polo-new:hover{background:var(--polo-tint)}
.polo-new:focus-visible{outline:2px solid var(--polo-blue);outline-offset:-2px}
/* The AI sparkle (Polo::spark): the chat window's header, the floating button and the footer's Ask Polo. */
.polo-head-icon .polo-spark{display:block;color:var(--polo-blue)}
.polo-launch-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:var(--polo-tint);color:var(--polo-blue)}
.footer-ask-button .polo-spark{flex:none;color:#fff}
