/* Flowers & Lovers — svetainės pokalbis (fl2026 stilius: hairline linijos, be apvalinimų). */
.flc {
  --c-bg: var(--bg, #f6f4f0);
  --c-surface: var(--surface, #edeae4);
  --c-ink: var(--ink, #161513);
  --c-ink-80: var(--ink-80, #444141);
  --c-ink-70: var(--ink-70, #605d5d);
  --c-ink-60: var(--ink-60, #7d7979);
  --c-rule: var(--rule, rgba(22, 21, 19, .22));
  --c-green: var(--green, #3f5a43);
  --c-sale: var(--sale, #ae1800);
  --c-on-ink: var(--on-ink, #f6f4f0);
  --c-head: var(--font-heading, "Oswald", "Arial Narrow", sans-serif);
  --c-body: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  --c-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
  --c-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  font-family: var(--c-body);
  color: var(--c-ink);
}
.flc *, .flc *::before, .flc *::after { box-sizing: border-box; }
.flc [hidden] { display: none !important; }
.flc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Launcher */
.flc-launch {
  position: fixed; right: 20px; bottom: var(--c-bottom); z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; border: 1px solid var(--c-ink); border-radius: 0;
  background: var(--c-ink); color: var(--c-on-ink); cursor: pointer;
  font-family: var(--c-head); font-weight: 400; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 10px 30px rgba(22, 21, 19, .18);
  transition: transform .4s var(--c-ease), opacity .25s;
}
.flc-launch:hover { transform: translateY(-2px); }
.flc-launch:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.flc-launch svg { flex: none; }
.flc-launch__dot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; background: var(--c-sale); border: 2px solid var(--c-bg); }
.flc.is-open .flc-launch { opacity: 0; pointer-events: none; transform: translateY(8px); }
body.has-buybar .flc-launch, body.has-buybar .flc-nudge { --c-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* Nudge */
.flc-nudge {
  position: fixed; right: 20px; bottom: calc(var(--c-bottom) + 58px); z-index: 150;
  display: flex; align-items: stretch; background: var(--c-bg); border: 1px solid var(--c-ink);
  box-shadow: 0 10px 30px rgba(22, 21, 19, .12); animation: flc-in .5s var(--c-ease) both;
}
.flc-nudge__go { background: none; border: 0; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--c-ink); cursor: pointer; text-align: left; }
.flc-nudge__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.flc-nudge__x { background: none; border: 0; border-left: 1px solid var(--c-rule); padding: 0 10px; color: var(--c-ink-70); cursor: pointer; display: flex; align-items: center; }

/* Panel */
.flc-panel {
  position: fixed; right: 20px; bottom: var(--c-bottom); z-index: 160;
  width: 392px; height: min(680px, calc(100vh - 40px)); height: min(680px, calc(100dvh - 40px));
  display: flex; flex-direction: column; background: var(--c-bg); border: 1px solid var(--c-ink);
  box-shadow: 0 24px 60px rgba(22, 21, 19, .22); overflow: hidden;
  animation: flc-in .45s var(--c-ease) both;
}
@keyframes flc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.flc-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--c-ink); flex: none; text-transform: none; letter-spacing: normal; font-family: var(--c-body); position: static; background: none; }
.flc-head__id { flex: 1; min-width: 0; }
.flc-title { margin: 0; font-family: var(--c-head); font-weight: 400; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.flc-sub { margin: 4px 0 0; display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; line-height: 1.35; color: var(--c-ink-70); }
.flc-sub .flc-dot { transform: translateY(-1px); }
.flc-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-60); display: inline-block; }
.flc.is-studio-open .flc-dot { background: #3b9b4f; box-shadow: 0 0 0 3px rgba(59, 155, 79, .18); }
.flc-human {
  flex: none; background: transparent; border: 1px solid var(--c-ink); border-radius: 0; color: var(--c-ink); cursor: pointer;
  padding: 8px 11px; font-family: var(--c-head); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  transition: background .2s, color .2s;
}
.flc-human:hover, .flc.is-hand .flc-human { background: var(--c-ink); color: var(--c-on-ink); }
.flc--noai .flc-human { display: none; }
.flc-x { flex: none; background: none; border: 0; padding: 8px; color: var(--c-ink); cursor: pointer; display: flex; }
.flc-x:hover { opacity: .6; }

/* Messages */
.flc-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; scroll-behavior: smooth; scrollbar-width: thin; }
.flc-msg { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 14px; }
.flc-msg--user { align-items: flex-end; }
.flc-msg.is-new { animation: flc-in .35s var(--c-ease) both; }
.flc-bubble { max-width: 88%; padding: 10px 13px; background: var(--c-surface); font-size: 14.5px; line-height: 1.5; color: var(--c-ink); overflow-wrap: anywhere; }
.flc-msg--user .flc-bubble { background: var(--c-ink); color: var(--c-on-ink); }
.flc-bubble p { margin: 0 0 .55em; }
.flc-bubble p:last-child { margin-bottom: 0; }
.flc-bubble strong { font-weight: 600; }
.flc-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-ink-60); }
.flc-bubble a:hover { text-decoration-color: currentColor; }

.flc-typing .flc-bubble { display: flex; gap: 4px; padding: 14px 14px; }
.flc-typing i, .flc-overlay__box i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink-60); animation: flc-dot 1.2s infinite ease-in-out; display: inline-block; }
.flc-typing i:nth-child(2), .flc-overlay__box i:nth-child(2) { animation-delay: .15s; }
.flc-typing i:nth-child(3), .flc-overlay__box i:nth-child(3) { animation-delay: .3s; }
@keyframes flc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Chips */
.flc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-width: 100%; }
.flc-chip {
  background: transparent; border: 1px solid var(--c-rule); border-radius: 0; padding: 8px 12px; cursor: pointer;
  font: inherit; font-size: 13.5px; line-height: 1.25; color: var(--c-ink); text-align: left; transition: border-color .2s, background .2s;
}
.flc-chip:hover { border-color: var(--c-ink); background: rgba(22, 21, 19, .04); }
.flc-chips--opt .flc-chip { border-color: var(--c-ink); background: var(--c-bg); min-height: 38px; }
.flc-chips--opt .flc-chip:hover { background: var(--c-ink); color: var(--c-bg); }

/* Product cards */
.flc-cards { display: flex; gap: 8px; margin-top: 10px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.flc-card { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: var(--c-ink); border: 1px solid var(--c-rule); background: var(--c-bg); transition: border-color .2s; }
.flc-card:hover { border-color: var(--c-ink); }
.flc-card__img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--c-surface); overflow: hidden; }
.flc-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--c-ease); }
.flc-card:hover .flc-card__img img { transform: scale(1.05); }
.flc-card__tag { position: absolute; left: 6px; top: 6px; background: var(--c-sale); color: #fff; font-family: var(--c-head); font-size: 11px; padding: 3px 6px; }
.flc-card__name { display: block; padding: 8px 9px 2px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.flc-card__price { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 9px 9px; font-family: var(--c-head); font-size: 13.5px; letter-spacing: .02em; }

/* Order card */
.flc-order { width: 100%; max-width: 100%; margin-top: 10px; border: 1px solid var(--c-ink); background: var(--c-bg); padding: 14px 14px 12px; }
.flc-order__h { margin: 0 0 10px; font-family: var(--c-head); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.flc-order__item { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--c-rule); }
.flc-order__item img { flex: none; width: 52px; height: 65px; object-fit: cover; background: var(--c-surface); display: block; }
.flc-order__item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flc-order__item strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.flc-order__item span { font-family: var(--c-head); font-size: 15px; letter-spacing: .02em; }
.flc-order__list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; line-height: 1.45; color: var(--c-ink-80); }
.flc-order__list li { padding: 3px 0; overflow-wrap: anywhere; }
.flc-order__note { margin: 8px 0 0; font-size: 12.5px; color: var(--c-ink-70); }
.flc-order__pay {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px; padding: 15px 16px; cursor: pointer;
  background: var(--c-ink); color: var(--c-on-ink); border: 1px solid var(--c-ink); border-radius: 0;
  font-family: var(--c-head); font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; line-height: 1; transition: background .2s;
}
.flc-order__pay:hover { background: var(--c-ink-80); }
.flc-order__pay:disabled { opacity: .5; cursor: default; }
.flc-order__pay span { flex: 1; text-align: center; }
.flc-order__hint { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--c-ink-60); }
.flc-order__err { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--c-sale); }
.flc-order__err a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Overlay (checkout preparation) */
.flc-overlay { position: absolute; inset: 0; z-index: 3; background: rgba(246, 244, 240, .86); display: flex; align-items: center; justify-content: center; }
.flc-overlay__box { display: flex; gap: 5px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; padding: 20px; }
.flc-overlay__box p { flex-basis: 100%; margin: 12px 0 0; font-family: var(--c-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* Inline CTA to human */
.flc-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; cursor: pointer;
  background: var(--c-ink); color: var(--c-on-ink); border: 1px solid var(--c-ink); border-radius: 0;
  font-family: var(--c-head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
}
.flc-cta:hover { background: var(--c-ink-80); }

/* Composer */
.flc-form { flex: none; display: flex; align-items: flex-end; gap: 0; border-top: 1px solid var(--c-ink); background: var(--c-bg); }
.flc-form textarea {
  flex: 1; min-width: 0; resize: none; border: 0; border-radius: 0; background: transparent; color: var(--c-ink);
  font: inherit; font-size: 16px; line-height: 1.4; padding: 15px 16px; min-height: 52px; max-height: 120px; outline: none; box-shadow: none;
  -webkit-appearance: none; appearance: none; width: auto;
}
.flc-form textarea:focus { background: #fff; }
.flc-send { flex: none; width: 52px; height: 52px; border: 0; border-left: 1px solid var(--c-rule); border-radius: 0; background: var(--c-ink); color: var(--c-on-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.flc-send:disabled { opacity: .45; cursor: default; }
.flc-legal { flex: none; margin: 0; padding: 8px 16px 10px; font-size: 11.5px; line-height: 1.45; color: var(--c-ink-60); border-top: 1px solid var(--c-rule); }
.flc-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.flc.is-hand .flc-form, .flc--noai .flc-form, .flc--noai .flc-body { display: none; }

/* Handoff view */
.flc-hand { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 20px; }
.flc.is-hand .flc-body { display: none; }
.flc-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; margin: 0 0 14px; font: inherit; font-size: 13px; color: var(--c-ink-70); cursor: pointer; }
.flc-back:hover { color: var(--c-ink); }
.flc-h { margin: 0 0 8px; font-family: var(--c-head); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.flc-hstate { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; color: var(--c-ink-80); }
.flc-hlead { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--c-ink-70); }
.flc-hnote { display: block; margin: 0 0 16px; }
.flc-hnote span, .flc-leave label span { display: block; margin: 0 0 6px; font-size: 12.5px; color: var(--c-ink-70); }
.flc-hnote textarea, .flc-leave input, .flc-leave textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.45; color: var(--c-ink); background: var(--c-surface);
  border: 1px solid transparent; border-bottom-color: var(--c-rule); border-radius: 0; padding: 10px 12px; resize: vertical; min-height: 44px; box-shadow: none; outline: none;
}
.flc-hnote textarea:focus, .flc-leave input:focus, .flc-leave textarea:focus { background: #fff; border-color: var(--c-ink); }
.flc-ch { display: flex; flex-direction: column; border-top: 1px solid var(--c-ink); }
.flc-ch__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--c-rule); border-radius: 0; color: var(--c-ink); text-decoration: none; font: inherit;
  transition: background .2s, padding .3s var(--c-ease);
}
.flc-ch__btn:hover { background: rgba(22, 21, 19, .04); padding-left: 10px; }
.flc-ch__btn > svg:first-child { flex: none; }
.flc-ch__btn > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.flc-ch__btn strong { font-family: var(--c-head); font-weight: 400; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; }
.flc-ch__btn small { font-size: 12.5px; color: var(--c-ink-70); }
.flc-ch__btn--main { background: var(--c-ink); color: var(--c-on-ink); padding: 16px 14px; border-bottom: 0; }
.flc-ch__btn--main small { color: var(--c-on-ink); opacity: .75; }
.flc-ch__btn--main:hover { background: var(--c-ink-80); padding-left: 18px; }

.flc-leave { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-ink); }
.flc-leave label { display: block; margin: 0; }
.flc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.flc-submit {
  justify-self: start; padding: 14px 20px; border: 1px solid var(--c-ink); border-radius: 0; background: var(--c-ink); color: var(--c-on-ink); cursor: pointer;
  font-family: var(--c-head); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
}
.flc-submit:disabled { opacity: .5; }
.flc-fstatus { margin: 0; font-size: 13.5px; line-height: 1.45; }
.flc-fstatus.is-ok { color: var(--c-green); font-weight: 600; }
.flc-fstatus.is-err { color: var(--c-sale); }

.flc-toast {
  position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 12px 14px; z-index: 2;
  background: var(--c-ink); color: var(--c-on-ink); font-size: 13.5px; line-height: 1.4;
  transform: translateY(calc(100% + 16px)); transition: transform .35s var(--c-ease);
}
.flc-toast.is-on { transform: none; }

/* Mobile: full screen */
@media (max-width: 600px) {
  .flc-launch { right: 14px; padding: 0; width: 54px; height: 54px; justify-content: center; }
  .flc-launch__t { display: none; }
  .flc-launch svg { width: 22px; height: 22px; }
  .flc-nudge { right: 14px; left: 14px; bottom: calc(var(--c-bottom) + 64px); }
  .flc-nudge__go { flex: 1; }
  .flc-panel {
    inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; max-height: none; border: 0; box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .flc-bubble { max-width: 92%; }
  .flc-legal { padding-bottom: 8px; }
}
html.flc-lock, html.flc-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .flc-panel, .flc-msg.is-new, .flc-nudge { animation: none; }
  .flc-typing i, .flc-overlay__box i { animation: none; opacity: .6; }
}
@media print { .flc { display: none !important; } }
