@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/vv/fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/vv/fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/vv/fonts/poppins-600-latin.woff2") format("woff2"); }

:root {
  --plum: #9E005D;
  --plum-dark: #7A0048;
  --plum-soft: #F6EDF2;
  --ink: #221A20;
  --muted: #6F6370;
  --line: #E7E1E3;
  --band: #F1EEF0;
  --page: #EDE6EA;
  --white: #FFFFFF;
  --ok: #1D7A4A;
  --ok-soft: #E3F2EA;
  --warn: #8A5300;
  --warn-soft: #FBEEDB;
  --star: #9E005D;
  --col: 480px;
  --f: "Poppins", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--f); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* One column, phone-shaped on every screen */
.shell { max-width: var(--col); margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 20px 60px -30px rgba(80, 0, 50, 0.35); }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: var(--plum); color: var(--white); }
.logo { font-weight: 600; font-size: 21px; text-decoration: none; letter-spacing: -0.01em; }
.tag { font-size: 12px; opacity: 0.85; }
.storepill { margin-left: auto; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: var(--white); font: 500 12px var(--f); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.storepill:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.chat { flex: 1; padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.msg.bot .avatar { width: 30px; height: 30px; border-radius: 8px; flex: none; background: var(--plum) url("/assets/brand/cropped-cropped-viiniveli-horizontal-4x-180x180-9db341df.png") center / cover; }
.msg.me { justify-content: flex-end; }
.bubble { padding: 9px 13px; border-radius: 16px; max-width: 86%; }
.msg.bot .bubble { background: var(--band); border-bottom-left-radius: 5px; }
.msg.me .bubble { background: var(--plum); color: var(--white); border-bottom-right-radius: 5px; }
.bubble b { font-weight: 600; }
.hello { display: block; font-size: 19px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.hello em { font-style: normal; color: var(--plum); }
.stack { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-left: 38px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 38px; }
.chip { font: 500 13px var(--f); padding: 7px 12px; border-radius: 999px; background: var(--white); color: var(--plum); border: 1.5px solid var(--plum); cursor: pointer; }
.chip:hover { background: var(--plum-soft); }
.chip:focus-visible, .btn:focus-visible, .send:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.chip.ghost { border-color: var(--line); color: var(--muted); }
.hint-label { font-size: 12px; color: var(--muted); padding-left: 38px; margin-bottom: -4px; }

.postal { display: flex; gap: 6px; padding-left: 38px; }
.postal input { flex: 1; min-width: 0; font: 500 17px var(--f); letter-spacing: 0.08em; padding: 10px 12px; border: 1.5px solid var(--plum); border-radius: 12px; }
.postal input:focus { outline: 2px solid var(--plum-soft); }
.btn { font: 600 14px var(--f); padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--plum); color: var(--plum); background: var(--white); cursor: pointer; text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.solid { background: var(--plum); color: var(--white); }
.btn.solid:hover { background: var(--plum-dark); }

/* Wine card: the original Viiniveli card */
.wcard { background: var(--band); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.wc-label { font-size: 12px; font-weight: 600; color: var(--plum); text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 4px 0; }
.wc-main { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--white); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--ink); }
.wc-bottle { width: 96px; height: 190px; object-fit: contain; align-self: center; }
.wc-bottle.none { background: var(--band); border-radius: 10px; }
.wc-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wc-name { font-size: 16px; font-weight: 500; line-height: 1.2; }
.wc-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wc-vl { height: 16px; }
.wc-stars { display: flex; gap: 1px; }
.wc-stars img { width: 13px; height: 13px; }
.wc-badge { height: 38px; width: auto; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wc-tags span { font-size: 11px; font-weight: 500; border: 1.5px solid #8C8C8C; border-radius: 3px; padding: 0 4px; line-height: 17px; display: inline-flex; align-items: center; gap: 3px; }
.wc-tags img { width: 11px; height: 11px; }
.wc-price { display: flex; align-items: flex-start; line-height: 1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wc-price .eur { font-size: 38px; font-weight: 400; }
.wc-price .cents { font-size: 17px; font-weight: 500; border-bottom: 1.5px solid var(--ink); margin-left: 3px; margin-top: 3px; padding-bottom: 1px; }
.wc-vol { font-size: 12px; color: var(--muted); }
.wc-stock { font-size: 13px; font-weight: 600; padding: 8px 11px; border-radius: 11px; display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.wc-stock.in { background: var(--ok-soft); color: var(--ok); }
.wc-stock.out { background: var(--warn-soft); color: var(--warn); }
.wc-stock.unknown { background: var(--white); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.wc-pop { font-size: 13px; font-weight: 500; color: var(--plum); padding: 0 4px; }
.wc-why { font-size: 13px; color: var(--muted); padding: 0 4px; margin: 0; }
.wc-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
.wc-actions.two { grid-template-columns: 1fr 1fr; }
.btn-alko img { height: 18px; }

.links { display: flex; flex-direction: column; gap: 6px; }
.rlink { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 13px; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line); text-decoration: none; }
.rlink:hover { border-color: var(--plum); }
.rlink b { font-weight: 500; }
.rlink small { color: var(--muted); font-size: 12px; white-space: nowrap; }

.typing .bubble { color: var(--muted); }
.typing .dots span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing .dots span:nth-child(2) { animation-delay: 0.2s; }
.typing .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.composer { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; font: 400 16px var(--f); padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--plum); }
.composer input:focus { outline: 2px solid var(--plum-soft); }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--plum); display: grid; place-items: center; cursor: pointer; flex: none; }
.send img { width: 20px; height: 20px; }

.age { position: fixed; inset: 0; background: rgba(34, 26, 32, 0.6); display: grid; place-items: center; z-index: 20; padding: 16px; }
.age-box { background: var(--white); border-radius: 18px; padding: 22px; max-width: 340px; display: grid; gap: 10px; }
.age-q { font-size: 19px; font-weight: 600; margin: 0; }
.age-s { font-size: 14px; color: var(--muted); margin: 0; }
.age-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

@media (min-width: 600px) {
  .chat { padding: 22px 18px 28px; }
}
@media (prefers-reduced-motion: reduce) { .typing .dots span { animation: none; opacity: 0.6; } }
.wc-eo { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #8C2557; text-transform: uppercase; letter-spacing: 0.03em; }
.wc-main.noimg { grid-template-columns: 1fr; }

/* Hero clip: short, muted, skippable, folds away when the chat starts */
.hero { position: relative; overflow: hidden; height: min(30vh, 250px); transition: height 0.45s ease; background: #1b1418; }
.hero video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.done { height: 0; }
.skip { position: absolute; top: 10px; right: 10px; font: 600 12px var(--f); color: var(--white); background: rgba(0, 0, 0, 0.45); border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.skip:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.caret::after { content: "▍"; animation: blink 0.9s infinite; margin-left: 1px; }
@media (prefers-reduced-motion: reduce) { .hero { transition: none; } }
.heroimg { position: absolute; inset: 0; display: block; color: var(--white); text-decoration: none; }
.heroimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heroimg span { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 500; background: rgba(0, 0, 0, 0.45); padding: 4px 9px; border-radius: 999px; }
.hero-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; color: var(--white); background: linear-gradient(to top, rgba(20, 8, 16, 0.82), rgba(20, 8, 16, 0)); display: grid; gap: 2px; pointer-events: none; }
.hero-txt b { font-size: 16px; font-weight: 600; }
.hero-txt span { font-size: 13px; line-height: 1.35; opacity: 0.92; }
.heroimg span { top: 10px; bottom: auto; }
/* An answer scrolls to its own start: label just under the header, with room
   for the question above it. */
.chat { overflow-anchor: none; }
.chat > * { scroll-margin-top: calc(var(--barh, 56px) + 64px); }
.wc-claim { font-weight: 600; text-transform: none; }

/* Store picker: opens from the store pill in the header */
.sheet { position: fixed; inset: 0; z-index: 15; background: rgba(34, 26, 32, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { position: relative; width: 100%; max-width: var(--col); background: var(--white); border-radius: 20px 20px 0 0; padding: 22px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; max-height: 85vh; overflow: auto; }
.sheet-q { font-size: 20px; font-weight: 600; margin: 0; }
.sheet-s { font-size: 14px; color: var(--muted); margin: -4px 0 4px; }
.sheet-form { padding-left: 0; }
.sheet-x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--band); width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.sheet-msg { margin: 4px 0 0; font-weight: 500; }
.sheet-list { display: grid; gap: 6px; }
.storebtn { text-align: left; font: 500 15px var(--f); padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; display: grid; gap: 1px; }
.storebtn:hover, .storebtn:focus-visible { border-color: var(--plum); outline: none; }
.storebtn small { font-size: 12px; color: var(--muted); font-weight: 400; }
.storepill { cursor: pointer; }
.sheet-box { grid-template-columns: minmax(0, 1fr); }
.sheet-box > * { min-width: 0; }
.postal input { width: 100%; }

/* Chat avatar: the Viiniveli corkscrew, white on plum */
.msg.bot .avatar { background: var(--plum) url("/vv/img/avatar.png") center / cover; }

/* Home-screen offer, shown as a chat message from the third visit on */
.a2hs-steps { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.a2hs-steps kbd { font: inherit; font-weight: 600; color: var(--plum); }

/* Desktop: the same phone, in a phone frame */
@media (min-width: 760px) and (min-height: 620px) {
  html, body { height: 100%; overflow: hidden; }
  body { padding-block: 22px; }
  .shell { position: relative; height: 100%; max-width: 410px; min-height: 0; border: 11px solid #1B1418; border-radius: 54px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(60, 0, 40, 0.55); }
  .shell::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 999px; background: #1B1418; z-index: 7; }
  .bar { position: relative; padding-top: 44px; }
  .chat { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
  .chat > * { scroll-margin-top: 64px; }
  .composer { position: relative; padding-bottom: 18px; }
  .sheet, .age { align-items: center; }
  .sheet-box { border-radius: 20px; max-width: 390px; }
}

/* Header: a long store name shortens instead of wrapping */
.storepill { max-width: 48vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly input { letter-spacing: 0; font-size: 16px; }
@media (min-width: 760px) and (min-height: 620px) {
  .tag { display: none; }
  .storepill { max-width: 200px; }
}

/* The store pill is the place to change the store, so it looks like a button */
.storepill { background: var(--white); color: var(--plum); border: 0; font-weight: 700; font-size: 13px; padding: 6px 12px 6px 9px; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }
.storepill .pin { width: 10px; height: 13px; flex: none; background: var(--plum); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.8 5 8 5 8s5-4.2 5-8a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.8 5 8 5 8s5-4.2 5-8a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.storepill:hover { background: var(--plum-soft); }
@media (max-width: 440px) { .tag { display: none; } }

/* Simpler card (Ville 2.10.): one meta line, one sales line, recipe inside */
.wc-meta { font-size: 13px; color: var(--muted); }
.wc-recipe { display: block; padding: 2px 4px; font-size: 14px; color: var(--ink); text-decoration: none; }
.wc-recipe b { color: var(--plum); font-weight: 600; }
.wc-recipe:hover b { text-decoration: underline; }
.msg.bot .bubble { position: relative; }
.weekly-x { position: absolute; top: 4px; right: 6px; }
.xbtn { border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; padding: 4px 6px; }
.msg.bot .bubble:has(.weekly-x) { padding-right: 30px; }

/* Voice: speak, we write it down and answer in text */
.mic { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--plum); background: var(--white); color: var(--plum); display: grid; place-items: center; cursor: pointer; flex: none; }
.mic.on { background: var(--plum); color: var(--white); animation: micpulse 1.2s infinite; }
@keyframes micpulse { 0% { box-shadow: 0 0 0 0 rgba(158, 0, 93, 0.45); } 70% { box-shadow: 0 0 0 12px rgba(158, 0, 93, 0); } 100% { box-shadow: 0 0 0 0 rgba(158, 0, 93, 0); } }
@media (prefers-reduced-motion: reduce) { .mic.on { animation: none; } }

/* Recipe tip: its own button under the price choices, not inside the card */
.recipe-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.recipe-chip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Rosabotti: Rosa red, recipe cards, the chat button ---------------- */
body.bot-rosa { --plum: #AC1430; --plum-dark: #8A0F26; --plum-soft: #F8E7EB; --page: #F1E7EA; }
body.bot-rosa .msg.bot .avatar { background: #AC1430 url("/vv/img/avatar-rosa.png") center / cover; }
body.bot-rosa .logo { text-transform: none; }

.rcard { background: var(--band); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.rc-main { display: grid; grid-template-columns: 112px 1fr; gap: 12px; background: var(--white); border-radius: 14px; padding: 10px; text-decoration: none; color: var(--ink); }
.rc-img { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; }
.rc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rc-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--plum); }
.rc-title { font-size: 17px; font-weight: 600; line-height: 1.2; }
.rc-desc { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-meta { font-size: 12px; color: var(--muted); margin-top: auto; }
.rc-btn { width: 100%; }

/* The chat button inside rosaviinijaruoka.fi */
.closebtn { margin-left: 8px; border: 0; background: rgba(255, 255, 255, 0.18); color: var(--white); width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; flex: none; }
.launcher { position: fixed; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--plum); color: var(--white); font: 600 15px var(--f); padding: 8px 18px 8px 8px; border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(80, 0, 20, 0.55); }
.launcher-av { width: 40px; height: 40px; border-radius: 50%; background: var(--white) url("/vv/img/rosabotti-icon.png") center / 70% no-repeat; }
body.mode-widget { background: transparent; }
body.mode-widget .shell { min-height: 100vh; height: 100vh; }
body.mode-widget .chat { overflow-y: auto; min-height: 0; }
body.mode-widget .bar { position: relative; }
body.mode-widget.collapsed { background: transparent; }
body.mode-widget.collapsed .shell { display: none; }
body.mode-widget .composer { position: relative; }
.closebtn { margin-left: auto; }
.storepill:not([hidden]) ~ .closebtn { margin-left: 8px; }

/* Rosa's newsletter in the chat: the same consent sentence as the site's own form */
.postal.news { flex-wrap: wrap; }
.postal.news .consent { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--muted); padding: 2px 2px 0; }
.postal.news .consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; border-radius: 4px; accent-color: var(--plum); }
.postal.news .consent a { color: inherit; }
.postal.news .news-msg { flex-basis: 100%; margin: 0; font-size: 13px; color: #b00020; }

/* Paragraphs inside an answer: short, with air between them */
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }

/* The chat button document never scrolls itself, only the chat inside it.
   (scrollIntoView used to scroll the whole widget and hide its header.) */
html:has(body.mode-widget), body.mode-widget { height: 100%; overflow: hidden; }
body.mode-widget .shell { height: 100%; min-height: 0; max-width: none; }
