/*
 * Testy chat widget (public site). Self-contained: no page CSS is assumed, none is changed.
 *
 * Every selector starts at .tc-root and every custom property is --tc-*. The token VALUES are
 * copied from DESIGN.md so the widget looks the same on pages/base.html (Tailwind preflight plus
 * design-system.css) and on public/base.html (no preflight).
 *
 * The mascot rig mounted inside the widget owns a set of .tc-* part classes (tc-rig, tc-hat,
 * tc-eye, tc-panel, tc-body, tc-note, tc-inner, tc-pop, tc-face, tc-board, tc-fx ...) and the
 * variables --tc-a, --tc-ax, --tc-ay, --tc-d, --tc-dx, --tc-dy, --tc-lean-x, --tc-spin and
 * --tc-ttl. Never reuse one of those names here, and never write a reset that reaches svg parts.
 *
 * prefers-reduced-motion is deliberately not consulted (owner decision).
 */

.tc-root{
  --tc-paper:#ffffff; --tc-paper-2:#f4f8fc;
  --tc-ink:#121419; --tc-ink-2:#3f5165;
  --tc-blue:#0071bc; --tc-blue-deep:#00558f; --tc-night:#062b4a;
  --tc-wash:#e9f3fb; --tc-line:#cfe2f1; --tc-line-2:#9fc4e2;
  --tc-hl:#ffdc3a; --tc-hl-deep:#f5c800;
  --tc-f-coral:#ffa08f; --tc-f-mint:#9fe3c3; --tc-f-sky:#a8d6fb; --tc-f-lilac:#cbbcf6;
  --tc-display:"Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --tc-text:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tc-ease:cubic-bezier(.2,.8,.2,1);
  --tc-spring:cubic-bezier(.34,1.56,.64,1);
  --tc-gap:18px;
  --tc-fab:104px; --tc-fab-off:8px; --tc-edge:18px;
  font-family:var(--tc-text);font-size:16px;line-height:1.5;font-weight:400;font-style:normal;
  letter-spacing:normal;text-transform:none;text-align:left;text-indent:0;white-space:normal;word-spacing:normal;
  color:var(--tc-ink);color-scheme:light;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;
  direction:ltr;
}
@supports (transition-timing-function:linear(0, 1)){
  .tc-root{--tc-spring:linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1)}
}

/* A low-specificity reset for the widget's own html elements only (never svg parts: the rig lives in here). */
.tc-root :where(div,span,p,a,b,i,em,strong,button,input,textarea,label,ul,ol,li,dl,dt,dd,table,thead,tbody,tr,th,td,form,fieldset,legend,section,header,h2,h3):where(:not(.tc-mascot *)){
  box-sizing:border-box;margin:0;padding:0;border:0 solid transparent;background:none;
  font:inherit;color:inherit;letter-spacing:inherit;text-transform:none;text-decoration:none;text-shadow:none;
  min-width:0;float:none;box-shadow:none;outline:0;vertical-align:baseline;
}
.tc-root :where(button,input,textarea){appearance:none;-webkit-appearance:none;border-radius:0;-webkit-tap-highlight-color:transparent}
.tc-root :where(button,a){cursor:pointer;touch-action:manipulation}
.tc-root :where(ul,ol){list-style:none}
.tc-root :where(table){border-collapse:separate;border-spacing:0}
.tc-root [hidden]{display:none !important}
.tc-root :where(button,a,input,textarea,[tabindex]):focus-visible{outline:3px solid var(--tc-blue);outline-offset:3px}
.tc-root .tc-sr{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tc-root svg{max-width:none;max-height:none}
.tc-root .tc-ico{display:block;overflow:visible;flex:none}
.tc-root .tc-ico path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ---------- launcher: Testy on a white face, the yellow plate off-register behind it ----------
   While the chat is open the launcher steps aside: the window blooms out of it and covers its corner,
   and the window's own close button (or Escape) brings it back. */
.tc-root .tc-fab{
  position:fixed;z-index:900;right:max(var(--tc-edge), env(safe-area-inset-right, 0px));bottom:calc(var(--tc-edge) + env(safe-area-inset-bottom, 0px));
  width:var(--tc-fab);height:var(--tc-fab);display:grid;place-items:center;isolation:isolate;color:var(--tc-blue);
  border-radius:31px 35px 29px 33px;transition:transform .5s var(--tc-spring);
}
.tc-root .tc-fab::before{content:"";position:absolute;inset:0;z-index:-2;border-radius:33px 28px 35px 30px;background:var(--tc-hl);transform:translate(var(--tc-fab-off), var(--tc-fab-off)) rotate(.8deg);transition:transform .5s var(--tc-spring)}
.tc-root .tc-fab::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--tc-paper);box-shadow:inset 0 0 0 2.5px var(--tc-blue);transition:background-color .2s}
.tc-root .tc-fab:active{transform:translate(3px, 3px);transition-duration:.12s}
.tc-root .tc-fab:active::before{transform:translate(3px, 3px) rotate(0deg);transition-duration:.12s}
.tc-root .tc-fab-testy{width:88%;height:88%;display:grid;place-items:center;pointer-events:none;transform-origin:50% 62%;transition:transform .55s var(--tc-spring)}
.tc-root .tc-mascot{display:block;line-height:0;pointer-events:none}
.tc-root .tc-fab-testy > *{grid-area:1 / 1;width:100%}
.tc-root .tc-fab .tc-still{display:block;width:100%;height:100%;overflow:visible}
.tc-root .tc-still{display:block;width:46px;height:46px;overflow:visible}
/* A mouse over the launcher: Testy leans in, a little bigger (the excited bounce is played by widget.js). */
@media (hover: hover) and (pointer: fine){
  .tc-root .tc-fab:hover{transform:translate(-3px, -3px)}
  .tc-root .tc-fab:hover::before{transform:translate(calc(var(--tc-fab-off) + 4px), calc(var(--tc-fab-off) + 4px)) rotate(-.6deg)}
  .tc-root .tc-fab:hover::after{background:var(--tc-wash)}
  .tc-root .tc-fab:hover .tc-fab-testy{transform:scale(1.09) rotate(-5deg)}
}
.tc-root.tc-open .tc-fab{visibility:hidden}

/* ---------- teaser: one quiet line beside the launcher ---------- */
.tc-root .tc-tease{
  position:fixed;z-index:899;right:calc(max(var(--tc-edge), env(safe-area-inset-right, 0px)) + var(--tc-fab) + 22px);bottom:calc(var(--tc-edge) + var(--tc-fab) / 2 - 22px + env(safe-area-inset-bottom, 0px));
  max-width:min(280px, calc(100vw - var(--tc-fab) - 70px));display:flex;align-items:center;gap:10px;text-align:left;
  padding:11px 12px 11px 15px;background:var(--tc-paper);border:2px solid var(--tc-line);border-radius:17px 15px 6px 16px;
  font-size:16px;line-height:1.35;color:var(--tc-ink);box-shadow:0 18px 40px -22px rgba(6,43,74,.45);
  opacity:0;transform:translate(10px, 4px);transition:opacity .4s, transform .6s var(--tc-ease), border-color .2s;
}
.tc-root .tc-tease.tc-on{opacity:1;transform:none}
.tc-root .tc-tease:hover{border-color:var(--tc-line-2)}
.tc-root .tc-tease .tc-ico{width:12px;height:12px;color:var(--tc-ink-2)}
@media (max-width: 640px){ .tc-root .tc-tease{display:none} }

/* ---------- the window and the yellow plate behind it (same geometry, so they never drift) ---------- */
.tc-root .tc-win,.tc-root .tc-plate{
  position:fixed;right:max(var(--tc-edge), env(safe-area-inset-right, 0px));bottom:calc(var(--tc-edge) + env(safe-area-inset-bottom, 0px));
  width:410px;max-width:calc(100vw - 36px);height:min(680px, calc(100vh - 48px));height:min(680px, calc(100dvh - 48px));
  border-radius:28px;transition:width .5s var(--tc-ease), height .5s var(--tc-ease);
}
.tc-root.tc-wide .tc-win,.tc-root.tc-wide .tc-plate{width:min(760px, calc(100vw - 36px));height:min(900px, calc(100vh - 48px));height:min(900px, calc(100dvh - 48px))}
.tc-root .tc-plate{z-index:999;background:var(--tc-hl);pointer-events:none}
.tc-root .tc-win{z-index:1000;background:var(--tc-paper);border:2px solid var(--tc-line);box-shadow:0 40px 90px -30px rgba(6,43,74,.55);display:flex;flex-direction:column;overflow:hidden}

.tc-root .tc-top{flex:none;display:flex;align-items:center;gap:6px;padding:10px 10px 10px 14px;border-bottom:1.5px solid var(--tc-line);background:var(--tc-paper)}
.tc-root .tc-av{width:52px;height:52px;flex:none;border-radius:17px 15px 18px 16px;background:var(--tc-wash);display:grid;place-items:center;cursor:pointer;margin-right:6px}
.tc-root .tc-av > *{grid-area:1 / 1}
.tc-root .tc-av .tc-still{width:54px;height:54px}
.tc-root .tc-who{margin-right:auto;font-family:var(--tc-display);font-weight:600;font-size:21px;line-height:1.2;letter-spacing:-0.02em;color:var(--tc-ink)}
.tc-root .tc-tb{height:40px;min-width:40px;padding:0 10px;border-radius:13px;display:inline-grid;place-items:center;color:var(--tc-ink-2);font-size:16px;font-weight:500;line-height:1;white-space:nowrap;transition:background-color .2s, color .2s}
.tc-root .tc-tb:hover{background:var(--tc-wash);color:var(--tc-blue)}
.tc-root .tc-tb .tc-ico{width:19px;height:19px}
.tc-root .tc-tb.tc-x .tc-ico{width:17px;height:17px}
.tc-root .tc-tb.tc-x{color:var(--tc-ink)}

.tc-root .tc-log{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 16px 12px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:var(--tc-line) transparent}
.tc-root .tc-log > *{flex:none}
.tc-root.tc-wide .tc-log{padding-inline:max(16px, calc((100% - 640px) / 2))}
.tc-root.tc-wide .tc-in{padding-inline:max(14px, calc((100% - 644px) / 2))}

/* ---------- messages ---------- */
.tc-root .tc-msg{align-self:flex-start;max-width:88%;padding:11px 15px;border-radius:18px 18px 18px 6px;background:var(--tc-paper-2);color:var(--tc-ink);font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.tc-root .tc-msg.tc-me{align-self:flex-end;background:var(--tc-blue);color:#fff;border-radius:18px 18px 6px 18px;white-space:pre-wrap}
.tc-root .tc-msg.tc-next{margin-top:-6px;border-top-left-radius:8px}
.tc-root .tc-msg.tc-me.tc-next{border-top-left-radius:18px;border-top-right-radius:8px}
.tc-root .tc-msg p + p,.tc-root .tc-msg p + ul,.tc-root .tc-msg p + ol,.tc-root .tc-msg ul + p,.tc-root .tc-msg ol + p{margin-top:9px}
.tc-root .tc-msg ul,.tc-root .tc-msg ol{padding-left:22px}
.tc-root .tc-msg ul{list-style:disc outside}
.tc-root .tc-msg ol{list-style:decimal outside}
.tc-root .tc-msg li{display:list-item;padding-left:2px}
.tc-root .tc-msg li + li{margin-top:4px}
.tc-root .tc-msg li::marker{color:var(--tc-blue)}
.tc-root .tc-msg strong{font-weight:650}
.tc-root .tc-msg em{font-style:italic}
.tc-root .tc-fine{font-size:11.5px;line-height:1.45;color:var(--tc-ink-2);text-align:center;text-wrap:balance;padding:0 14px;margin:-8px 0 2px}
.tc-root .tc-fine a{font-weight:500;color:var(--tc-blue);text-decoration:underline;text-decoration-color:var(--tc-line-2);text-underline-offset:2px;transition:color .2s, text-decoration-color .2s}
.tc-root .tc-fine a:hover{color:var(--tc-blue-deep);text-decoration-color:var(--tc-hl-deep)}
.tc-root .tc-a{color:var(--tc-blue);font-weight:500;background:linear-gradient(var(--tc-hl), var(--tc-hl)) no-repeat 0 100% / 0 3px;padding-bottom:2px;border-radius:0;transition:background-size .4s var(--tc-ease), color .2s}
.tc-root .tc-a:hover{color:var(--tc-blue-deep);background-size:100% 3px}

.tc-root .tc-typing{align-self:flex-start;display:flex;align-items:center;gap:10px;padding:12px 15px;border-radius:18px 18px 18px 6px;background:var(--tc-paper-2);color:var(--tc-ink-2);font-size:16px;line-height:1.3}
.tc-root .tc-typing svg{width:46px;height:16px;display:block;overflow:visible;flex:none}
.tc-root .tc-typing path{fill:none;stroke:var(--tc-blue);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:tc-scribble 1.1s var(--tc-ease) infinite}
@keyframes tc-scribble{0%{stroke-dashoffset:1}60%{stroke-dashoffset:0}100%{stroke-dashoffset:-1}}

/* the waving hand in a greeting (👋): the site's icon style, ink line on an off-register fill, three hand-drawn
   frames boiling on the 130ms beat, waving from the wrist then resting */
.tc-root .tc-hand{display:inline-block;width:1.35em;height:1.35em;vertical-align:-.3em;margin:0 .14em 0 .1em;overflow:visible;transform-origin:50% 86%;animation:tc-hi 2.6s ease-in-out .5s infinite}
.tc-root .tc-hand .tc-fr{visibility:hidden;animation:tc-boil .39s steps(1, end) infinite}
.tc-root .tc-hand .tc-fr1{animation-delay:-.26s}
.tc-root .tc-hand .tc-fr2{animation-delay:-.13s}
.tc-root .tc-hand .tc-fill{fill:var(--tc-hl)}
.tc-root .tc-hand .tc-ink{fill:none;stroke:var(--tc-blue);stroke-width:3.3;stroke-linecap:round;stroke-linejoin:round}
@keyframes tc-hi{0%,50%,100%{transform:rotate(0deg)}7%{transform:rotate(16deg)}14%{transform:rotate(-7deg)}21%{transform:rotate(15deg)}28%{transform:rotate(-4deg)}35%{transform:rotate(10deg)}42%{transform:rotate(0deg)}}
@keyframes tc-boil{0%{visibility:visible}33.34%,100%{visibility:hidden}}

/* ---------- suggested replies: paper rows with a pen arrow, not pills ---------- */
.tc-root .tc-sugs{display:grid;gap:8px}
.tc-root .tc-sug,.tc-root .tc-opt,.tc-root .tc-slot{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;
  padding:12px 14px;border:2px solid var(--tc-line);border-radius:14px 16px 13px 15px;background:var(--tc-paper);
  font-size:16px;font-weight:500;line-height:1.35;color:var(--tc-ink);
  transition:border-color .2s, color .2s, background-color .2s, transform .45s var(--tc-spring), box-shadow .45s var(--tc-spring);
}
.tc-root .tc-sug:hover,.tc-root .tc-opt:not([disabled]):hover,.tc-root .tc-slot:not([disabled]):hover{border-color:var(--tc-blue);color:var(--tc-blue);background:var(--tc-wash);transform:translate(-1px, -1px);box-shadow:4px 4px 0 var(--tc-hl)}
.tc-root .tc-sug:active,.tc-root .tc-opt:not([disabled]):active,.tc-root .tc-slot:not([disabled]):active{transform:translate(2px, 2px);box-shadow:0 0 0 var(--tc-hl);transition-duration:.1s}
.tc-root .tc-sug .tc-ico,.tc-root .tc-slot .tc-ico{width:18px;height:13px}

/* ---------- buttons: a face on an off-register plate ---------- */
.tc-root .tc-btn{
  position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--tc-display);font-weight:600;font-size:16px;letter-spacing:-0.01em;line-height:1;white-space:nowrap;
  padding:14px 18px;border-radius:15px 17px 14px 16px;transition:transform .5s var(--tc-spring), color .2s;
}
.tc-root .tc-btn::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--tc-face);transition:background-color .2s}
.tc-root .tc-btn::before{content:"";position:absolute;inset:0;z-index:-2;border-radius:16px 13px 17px 14px;background:var(--tc-off);transform:translate(4px, 4px) rotate(.8deg);transition:transform .5s var(--tc-spring)}
.tc-root .tc-btn-cta{--tc-face:var(--tc-hl);--tc-face-h:var(--tc-hl-deep);--tc-off:var(--tc-blue);color:var(--tc-ink)}
.tc-root .tc-btn-blue{--tc-face:var(--tc-blue);--tc-face-h:var(--tc-blue-deep);--tc-off:var(--tc-hl);color:#fff}
.tc-root .tc-btn-line{--tc-face:var(--tc-paper);--tc-face-h:var(--tc-wash);--tc-off:var(--tc-line);color:var(--tc-blue)}
.tc-root .tc-btn-line::after{box-shadow:inset 0 0 0 2px var(--tc-blue)}
.tc-root .tc-btn:hover{transform:translate(-2px, -2px)}
.tc-root .tc-btn:hover::after{background:var(--tc-face-h)}
.tc-root .tc-btn:hover::before{transform:translate(7px, 7px) rotate(-.6deg)}
.tc-root .tc-btn:active{transform:translate(2px, 2px);transition-duration:.12s}
.tc-root .tc-btn:active::before{transform:translate(2px, 2px) rotate(0deg);transition-duration:.12s}
.tc-root .tc-btn[disabled]{opacity:.45;pointer-events:none}
.tc-root .tc-btn .tc-ico{width:20px;height:13px}
.tc-root .tc-btn-wide{display:flex;width:calc(100% - 4px)}
.tc-root .tc-quiet{font-size:16px;font-weight:500;color:var(--tc-blue);padding:8px 2px;background:linear-gradient(var(--tc-hl), var(--tc-hl)) no-repeat 0 calc(100% - 5px) / 0 3px;transition:background-size .4s var(--tc-ease), color .2s}
.tc-root .tc-quiet:hover{color:var(--tc-blue-deep);background-size:100% 3px}
.tc-root .tc-quiet[disabled]{color:var(--tc-ink-2);pointer-events:none}
.tc-root .tc-acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;padding-right:6px;padding-bottom:5px}

/* ---------- cards (components) ---------- */
.tc-root .tc-card{align-self:stretch;display:grid;gap:12px;padding:15px 16px 16px;background:var(--tc-paper);border:2px solid var(--tc-line);border-radius:20px;min-width:0}
.tc-root .tc-card.tc-bare{padding:0;border:0;border-radius:0}
.tc-root .tc-card > div:empty{display:none}
.tc-root .tc-win:focus,.tc-root .tc-log:focus,.tc-root .tc-dd:focus{outline:0}
.tc-root .tc-h{font-family:var(--tc-display);font-weight:600;font-size:19px;line-height:1.2;letter-spacing:-0.02em;color:var(--tc-ink);text-wrap:balance}
.tc-root .tc-sub{font-size:16px;line-height:1.4;color:var(--tc-ink-2)}
.tc-root .tc-strong{font-weight:650;color:var(--tc-ink)}
/* The highlighter (DESIGN.md, Marks): one hand-cut yellow stroke behind the words, a little tilted, with
   rough ends. Stretched to each line of a phrase that wraps. .tc-mk marks a card's words; mark.tc-hlt is
   Testy's ==highlight==, which draws in left to right once (widget.js, drawMarks). */
.tc-root .tc-mk,.tc-root .tc-msg mark.tc-hlt{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath fill='%23ffdc3a' d='M4 15.2C46 13.6 98 14.9 146 13.7C165 13.2 182 13.1 196 12.5L198.6 17.6L196.8 23L199.2 28.6L196.3 34.9C157 35.8 110 35.1 64 36.3C46 36.8 29 36.7 3.4 37.4L.9 31.8L3.1 26.5L.4 21.3Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;padding:0 .22em;margin:0 -.22em;border-radius:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.tc-root .tc-msg mark.tc-hlt{color:inherit;background-color:transparent;font:inherit}
.tc-root .tc-msg mark.tc-draw{animation:tc-hl-draw 620ms cubic-bezier(.65,0,.35,1) both}
@keyframes tc-hl-draw{from{background-size:0 100%}to{background-size:100% 100%}}
.tc-root .tc-done{opacity:.62}
.tc-root .tc-err{font-size:16px;line-height:1.35;color:var(--tc-ink);font-weight:500;display:flex;gap:8px;align-items:flex-start}
.tc-root .tc-err::before{content:"";flex:none;width:9px;height:9px;margin-top:7px;border-radius:3px 4px 2px 4px;background:var(--tc-f-coral)}

/* choices */
.tc-root .tc-opts{display:grid;gap:8px}
.tc-root .tc-opt{justify-content:flex-start}
.tc-root .tc-box{flex:none;width:22px;height:22px;border:2px solid var(--tc-line-2);border-radius:7px 8px 6px 8px;display:grid;place-items:center;color:var(--tc-blue);background:var(--tc-paper);transition:border-color .2s, background-color .2s}
.tc-root .tc-box.tc-round{border-radius:50% 46% 52% 48%}
.tc-root .tc-box .tc-ico{width:14px;height:12px;opacity:0;transform:scale(.4);transition:opacity .15s, transform .4s var(--tc-spring)}
.tc-root .tc-opt[aria-pressed="true"],.tc-root .tc-opt.tc-picked{border-color:var(--tc-blue);background:var(--tc-wash)}
.tc-root .tc-opt[aria-pressed="true"] .tc-box,.tc-root .tc-opt.tc-picked .tc-box{border-color:var(--tc-blue);background:var(--tc-hl)}
.tc-root .tc-opt[aria-pressed="true"] .tc-box .tc-ico,.tc-root .tc-opt.tc-picked .tc-box .tc-ico{opacity:1;transform:none;color:var(--tc-ink)}
.tc-root .tc-opt[disabled],.tc-root .tc-slot[disabled]{cursor:default}
.tc-root .tc-opt[disabled]:not(.tc-picked),.tc-root .tc-slot[disabled]:not(.tc-picked){opacity:.55}
.tc-root .tc-slot.tc-picked{border-color:var(--tc-blue);background:var(--tc-wash)}

/* classes */
.tc-root .tc-list{display:grid;gap:12px}
.tc-root .tc-class{display:grid;gap:10px;padding:15px 16px 16px;background:var(--tc-paper);border:2px solid var(--tc-line);border-radius:20px 18px 21px 19px}
.tc-root .tc-class.tc-chosen{border-color:var(--tc-blue);background:var(--tc-wash)}
.tc-root .tc-class-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px 14px;flex-wrap:wrap}
.tc-root .tc-when{font-family:var(--tc-display);font-weight:600;font-size:19px;line-height:1.25;letter-spacing:-0.02em}
.tc-root .tc-price{font-family:var(--tc-display);font-weight:600;font-size:17px;white-space:nowrap}
.tc-root .tc-facts{display:grid;gap:3px;font-size:16px;line-height:1.4;color:var(--tc-ink-2)}
.tc-root .tc-facts b{font-weight:600;color:var(--tc-ink)}
.tc-root .tc-seats{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:500;color:var(--tc-ink)}
.tc-root .tc-meter{display:flex;gap:3px;flex:none}
.tc-root .tc-meter i{display:block;width:11px;height:13px;border-radius:3px 4px 2px 3px;background:var(--tc-wash);box-shadow:inset 0 0 0 1.5px var(--tc-line)}
.tc-root .tc-meter i.tc-taken{background:var(--tc-f-sky);box-shadow:none}
.tc-root .tc-meter.tc-tight i.tc-taken{background:var(--tc-f-coral)}
.tc-root .tc-slot{flex-wrap:nowrap}
.tc-root .tc-slot-main{display:grid;gap:2px;min-width:0}
.tc-root .tc-slot-main span{font-weight:400;color:var(--tc-ink-2)}
.tc-root .tc-slot:not([disabled]):hover .tc-slot-main span{color:inherit}

/* comparison: a real table, the first column stays put while the rest swipes */
.tc-root .tc-cmp{border:2px solid var(--tc-line);border-radius:18px;overflow:hidden;background:var(--tc-paper)}
.tc-root .tc-cmp-scroll{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--tc-line) transparent}
.tc-root .tc-cmp table{width:100%;min-width:max-content;font-size:16px;line-height:1.35}
.tc-root .tc-cmp th,.tc-root .tc-cmp td{padding:11px 12px;text-align:left;vertical-align:top;border-bottom:1.5px solid var(--tc-line);min-width:104px;max-width:200px;background:var(--tc-paper);font-weight:400;white-space:normal}
.tc-root .tc-cmp tr:last-child > *{border-bottom:0}
.tc-root .tc-cmp thead th{font-family:var(--tc-display);font-weight:600;font-size:16px;vertical-align:bottom}
.tc-root .tc-cmp tbody th,.tc-root .tc-cmp thead th:first-child{position:sticky;left:0;z-index:1;font-weight:600;color:var(--tc-ink);min-width:0;width:112px;max-width:112px;border-right:1.5px solid var(--tc-line)}
.tc-root .tc-cmp .tc-best{background:var(--tc-wash)}
.tc-root .tc-cmp .tc-tm{width:22px;height:18px;color:var(--tc-blue)}
.tc-root .tc-cmp .tc-tm path{stroke-width:2.8}
.tc-root .tc-cmp .tc-tm.tc-no{color:var(--tc-ink-2);width:16px;height:16px}

/* summary, confirmed */
.tc-root .tc-dl{display:grid;gap:0}
.tc-root .tc-dl > div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;border-bottom:1.5px dashed var(--tc-line)}
.tc-root .tc-dl > div:last-child{border-bottom:0;padding-bottom:0}
.tc-root .tc-dl > div:first-child{padding-top:0}
.tc-root .tc-dl dt{color:var(--tc-ink-2);flex:none;max-width:45%}
.tc-root .tc-dl dd{font-weight:600;text-align:right;overflow-wrap:anywhere}
.tc-root .tc-yay{border-color:var(--tc-blue);box-shadow:6px 6px 0 var(--tc-hl);margin:0 6px 6px 0}
.tc-root .tc-yay .tc-h{font-size:22px}

/* steps */
.tc-root .tc-steps{display:grid;gap:9px;counter-reset:tc-step}
.tc-root .tc-steps li{display:flex;align-items:flex-start;gap:11px;font-size:16px;line-height:1.4;color:var(--tc-ink-2)}
.tc-root .tc-steps .tc-dot{flex:none;width:22px;height:22px;margin-top:0;border-radius:50% 46% 52% 48%;border:2px solid var(--tc-line-2);display:grid;place-items:center;color:var(--tc-ink)}
.tc-root .tc-steps .tc-dot .tc-ico{width:13px;height:11px}
.tc-root .tc-steps .tc-is-done{color:var(--tc-ink)}
.tc-root .tc-steps .tc-is-done .tc-dot{border-color:var(--tc-blue);background:var(--tc-blue);color:#fff}
.tc-root .tc-steps .tc-is-now{color:var(--tc-ink);font-weight:600}
.tc-root .tc-steps .tc-is-now .tc-dot{border-color:var(--tc-blue);background:var(--tc-hl);animation:tc-now 1.8s ease-in-out infinite}
@keyframes tc-now{0%,100%{transform:scale(1) rotate(0deg)}50%{transform:scale(1.12) rotate(6deg)}}

/* link cards */
.tc-root a.tc-go{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border:2px solid var(--tc-blue);border-radius:16px 18px 15px 17px;background:var(--tc-paper);color:var(--tc-blue);box-shadow:4px 4px 0 var(--tc-line);margin:0 4px 4px 0;transition:transform .45s var(--tc-spring), box-shadow .45s var(--tc-spring), background-color .2s}
.tc-root a.tc-go:hover{transform:translate(-2px, -2px);box-shadow:7px 7px 0 var(--tc-hl);background:var(--tc-wash)}
.tc-root a.tc-go:active{transform:translate(2px, 2px);box-shadow:1px 1px 0 var(--tc-hl);transition-duration:.1s}
.tc-root a.tc-go.tc-main{background:var(--tc-blue);color:#fff;box-shadow:4px 4px 0 var(--tc-hl)}
.tc-root a.tc-go.tc-main:hover{background:var(--tc-blue-deep);box-shadow:7px 7px 0 var(--tc-hl)}
.tc-root .tc-go-main{display:grid;gap:2px;min-width:0}
.tc-root .tc-go-main b{font-family:var(--tc-display);font-weight:600;font-size:17px;line-height:1.25;letter-spacing:-0.01em}
.tc-root .tc-go-main span{font-size:16px;line-height:1.35;color:var(--tc-ink-2)}
.tc-root a.tc-go.tc-main .tc-go-main span{color:#fff}
.tc-root a.tc-go .tc-ico{width:22px;height:14px}

/* fields: the input lifts off a yellow plate on focus and each keystroke presses it */
.tc-root .tc-field{display:grid;gap:8px}
.tc-root .tc-field label,.tc-root .tc-field legend,.tc-root .tc-lbl{font-family:var(--tc-display);font-weight:600;font-size:17px;line-height:1.3;color:var(--tc-ink);transition:color .2s}
.tc-root .tc-field:focus-within > label,.tc-root .tc-field:focus-within > legend{color:var(--tc-blue)}
.tc-root .tc-opt-tag{font-family:var(--tc-text);font-weight:400;color:var(--tc-ink-2)}
.tc-root .tc-row{display:flex;align-items:flex-end;gap:10px;padding-right:6px;padding-bottom:6px}
.tc-root .tc-inp{position:relative;display:block;isolation:isolate;flex:1;min-width:0}
.tc-root .tc-inp::before{content:"";position:absolute;inset:2px;z-index:-1;border-radius:15px 13px 16px 14px;background:var(--tc-hl);transform:translate(0, 0) rotate(0deg);transition:transform .55s var(--tc-spring)}
.tc-root .tc-inp:focus-within::before{transform:translate(6px, 6px) rotate(.7deg)}
.tc-root .tc-inp.tc-press::before{animation:tc-nib .22s var(--tc-ease)}
@keyframes tc-nib{0%{transform:translate(6px, 6px) rotate(.7deg)}40%{transform:translate(4px, 4.5px) rotate(.4deg)}100%{transform:translate(6px, 6px) rotate(.7deg)}}
.tc-root .tc-inp > input,.tc-root .tc-inp > textarea,.tc-root .tc-inp > .tc-select{
  position:relative;display:block;width:100%;height:50px;padding:0 14px;border:2px solid var(--tc-line);border-radius:16px;
  background:var(--tc-paper);color:var(--tc-ink);font-family:var(--tc-text);font-size:17px;line-height:1.4;font-weight:400;caret-color:var(--tc-blue);
  transition:border-color .2s;box-shadow:none;outline:0;
}
.tc-root .tc-inp > textarea{resize:none;min-height:50px;max-height:132px;padding:11px 14px;overflow-y:auto}
.tc-root .tc-inp > input::placeholder,.tc-root .tc-inp > textarea::placeholder{color:var(--tc-ink-2);opacity:.75}
.tc-root .tc-inp > input:hover,.tc-root .tc-inp > textarea:hover,.tc-root .tc-inp > .tc-select:hover{border-color:var(--tc-line-2)}
.tc-root .tc-inp > input:focus,.tc-root .tc-inp > textarea:focus,.tc-root .tc-inp > .tc-select:focus,.tc-root .tc-inp > .tc-select[aria-expanded="true"]{border-color:var(--tc-blue);outline:0}
.tc-root .tc-inp > input:disabled,.tc-root .tc-inp > textarea:disabled{background:var(--tc-paper-2);color:var(--tc-ink-2);opacity:1;-webkit-text-fill-color:var(--tc-ink-2)}
.tc-root .tc-inp > .tc-select{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}
.tc-root .tc-inp > .tc-select .tc-ico{width:14px;height:9px;color:var(--tc-blue);transition:transform .3s var(--tc-ease)}
.tc-root .tc-inp > .tc-select[aria-expanded="true"] .tc-ico{transform:rotate(180deg)}
.tc-root .tc-select.tc-empty span{color:var(--tc-ink-2)}
.tc-root .tc-hint{font-size:16px;line-height:1.35;color:var(--tc-ink-2)}
.tc-root .tc-sq{flex:none;width:50px;height:50px;border-radius:15px;background:var(--tc-blue);color:#fff;display:grid;place-items:center;transition:background-color .2s, transform .45s var(--tc-spring)}
.tc-root .tc-sq:hover{background:var(--tc-blue-deep);transform:translateY(-2px)}
.tc-root .tc-sq[disabled]{background:var(--tc-line);cursor:default;transform:none}
.tc-root .tc-sq .tc-ico{width:22px;height:22px}
.tc-root .tc-sq .tc-ico path{stroke-width:2.6}
.tc-root .tc-date{display:grid;grid-template-columns:1fr 1fr 1.35fr auto;gap:8px;align-items:end;padding-right:6px;padding-bottom:6px}
.tc-root .tc-date .tc-part{display:grid;gap:4px}
.tc-root .tc-field .tc-date .tc-part > span:first-child{font-family:var(--tc-text);font-weight:400;font-size:16px;color:var(--tc-ink-2);line-height:1.2}
.tc-root .tc-date input{text-align:center;padding:0 6px;font-variant-numeric:tabular-nums}

/* the anchored dropdown (never a native select panel) */
.tc-root .tc-dd{position:absolute;z-index:5;display:grid;gap:2px;padding:6px;background:var(--tc-paper);border:2px solid var(--tc-blue);border-radius:16px 18px 15px 17px;box-shadow:6px 6px 0 var(--tc-hl), 0 24px 50px -24px rgba(6,43,74,.5);overflow-y:auto;overscroll-behavior:contain;animation:tc-dd .28s var(--tc-ease)}
@keyframes tc-dd{from{opacity:0;transform:translateY(-6px) scale(.98)}}
.tc-root .tc-dd [role="option"]{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:11px;font-size:17px;line-height:1.3;color:var(--tc-ink);cursor:pointer}
.tc-root .tc-dd [role="option"].tc-at{background:var(--tc-wash);color:var(--tc-blue)}
.tc-root .tc-dd [role="option"][aria-selected="true"]{font-weight:600}
.tc-root .tc-dd .tc-ico{width:14px;height:12px;color:var(--tc-blue)}

/* one-time code */
.tc-root .tc-otp{display:flex;gap:7px;padding-right:6px;padding-bottom:6px}
.tc-root .tc-otp .tc-inp{flex:1 1 0;max-width:54px}
.tc-root .tc-otp .tc-inp::before{border-radius:12px 10px 13px 11px}
.tc-root .tc-otp .tc-inp:focus-within::before{transform:translate(4px, 4px) rotate(.7deg)}
.tc-root .tc-otp input{height:56px;padding:0;text-align:center;font-family:var(--tc-display);font-size:24px;font-weight:600;border-radius:13px;font-variant-numeric:tabular-nums}

/* payment */
.tc-root .tc-amount{font-family:var(--tc-display);font-weight:600;font-size:30px;line-height:1.05;letter-spacing:-0.03em}
.tc-root .tc-pay-el{min-height:120px;border-radius:12px;position:relative}
.tc-root .tc-pay-el.tc-wait::before{content:"";position:absolute;inset:0;border-radius:12px;background:linear-gradient(100deg, var(--tc-paper-2) 40%, var(--tc-wash) 50%, var(--tc-paper-2) 60%) 0 0 / 300% 100%;animation:tc-wait 1.3s linear infinite}
@keyframes tc-wait{to{background-position:-150% 0}}
.tc-root .tc-secure{display:flex;align-items:center;gap:8px;font-size:16px;color:var(--tc-ink-2);line-height:1.3}
.tc-root .tc-secure .tc-ico{width:15px;height:17px;color:var(--tc-blue)}

/* contact: our landline (call hours), WhatsApp (outside them) and a call back request */
.tc-root .tc-contact{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.tc-root .tc-contact .tc-btn .tc-ico{width:24px;height:24px}
.tc-root .tc-contact .tc-btn + .tc-sub{margin-top:-1px}
.tc-root .tc-contact .tc-sub + .tc-btn{margin-top:6px}
.tc-root .tc-call .tc-ico{transform-origin:50% 60%;animation:tc-ring 1.5s ease-in-out .5s 2}
.tc-root .tc-call .tc-ico .tc-wave{animation:tc-ringwave 1.5s ease-out .5s 2}
.tc-root .tc-call .tc-ico .tc-wave + .tc-wave{animation-delay:.68s}
.tc-root .tc-call:hover .tc-ico,.tc-root .tc-call:hover .tc-ico .tc-wave{animation-iteration-count:infinite}
.tc-root .tc-ask{padding-top:4px}
.tc-root .tc-hours{font-size:13px;line-height:1.45;color:var(--tc-ink-2);text-wrap:pretty}
@keyframes tc-ring{0%,46%,100%{transform:rotate(0deg)}6%,18%,30%{transform:rotate(-13deg)}12%,24%,36%{transform:rotate(11deg)}}
@keyframes tc-ringwave{0%,100%{opacity:0}10%,40%{opacity:1}55%{opacity:0}}

/* notices */
.tc-root .tc-alert{align-self:stretch;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 15px;border-radius:16px 14px 17px 15px;background:var(--tc-wash);color:var(--tc-ink);font-size:16px;line-height:1.4}
.tc-root .tc-alert > span{flex:1 1 200px}

/* ---------- composer ---------- */
.tc-root .tc-in{flex:none;display:flex;align-items:flex-end;gap:10px;padding:12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) 14px;border-top:1.5px solid var(--tc-line);background:var(--tc-paper);position:relative}
.tc-root .tc-in .tc-inp{margin-right:4px}
.tc-root .tc-in.tc-shut{align-items:center;padding-top:14px;color:var(--tc-ink-2);font-size:16px;line-height:1.4}
.tc-root .tc-in.tc-shut .tc-quiet{padding:0 0 2px;background-position:0 100%}
.tc-root .tc-jump{position:absolute;left:50%;top:-50px;transform:translateX(-50%);height:40px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;border-radius:13px 15px 12px 14px;background:var(--tc-paper);border:2px solid var(--tc-blue);color:var(--tc-blue);font-size:16px;font-weight:500;line-height:1;box-shadow:3px 3px 0 var(--tc-hl);white-space:nowrap}
.tc-root .tc-jump .tc-ico{width:12px;height:14px}

/* ---------- confetti: cut paper, inside the window only ---------- */
.tc-root .tc-confetti{position:absolute;inset:0;z-index:6;overflow:hidden;pointer-events:none;border-radius:inherit}
.tc-root .tc-confetti i{position:absolute;top:-20px;display:block;will-change:transform}

/* ---------- phones: the whole screen, sized to the visual viewport so the keyboard never covers the input ---------- */
@media (max-width: 640px){
  .tc-root{--tc-fab:78px;--tc-fab-off:6px;--tc-edge:16px}
  .tc-root .tc-fab{border-radius:24px 27px 22px 25px}
  .tc-root .tc-fab::before{border-radius:25px 21px 27px 23px}
  .tc-root .tc-win,.tc-root .tc-plate,.tc-root.tc-wide .tc-win,.tc-root.tc-wide .tc-plate{left:0;right:0;top:var(--tc-vvt, 0px);bottom:auto;width:auto;max-width:none;height:var(--tc-vvh, 100vh);border-radius:0;transition:none}
  .tc-root .tc-win{border:0;box-shadow:none}
  .tc-root .tc-top{padding-top:calc(10px + env(safe-area-inset-top, 0px));padding-left:max(14px, env(safe-area-inset-left, 0px));padding-right:max(10px, env(safe-area-inset-right, 0px))}
  .tc-root .tc-tb.tc-x{width:44px;height:44px}
  .tc-root .tc-grow{display:none}
  .tc-root .tc-log{padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}
  .tc-root .tc-in{padding-left:max(14px, env(safe-area-inset-left, 0px));padding-right:max(14px, env(safe-area-inset-right, 0px))}
  .tc-root.tc-kb .tc-in{padding-bottom:12px}
}
@supports (height: 100dvh){
  @media (max-width: 640px){ .tc-root .tc-win,.tc-root .tc-plate{height:var(--tc-vvh, 100dvh)} }
}

/* The page behind a full-screen chat does not scroll. Set on <html> only while a phone has the chat open. */
html.tc-lock,html.tc-lock body{overflow:hidden !important;overscroll-behavior:none}
