/* Vincent — wijnhulp. Maten en kleuren uit het overdrachtspakket.
   Alles onder #hw-vincent-root, en op de knoppen met !important: het thema
   geeft elke <button> anders zijn eigen honingkleurige opmaak. */

#hw-vincent-root,
#hw-vincent-root * {
  box-sizing: border-box;
}

#hw-vincent-root [hidden] {
  display: none !important;
}

/* ---- Launcher ---- */
#hw-vincent-root .hwv-launch {
  position: fixed !important;
  right: calc(24px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9998;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  background-image: none !important;
  border: 2px solid #BA0F30 !important;
  box-shadow: 0 12px 32px rgba(26, 20, 22, .13) !important;
  border-radius: 999px !important;
  padding: 6px 18px 6px 6px !important;
  font-family: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  color: #1A1416 !important;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.22, .61, .36, 1);
}

#hw-vincent-root .hwv-launch:hover,
#hw-vincent-root .hwv-launch:focus {
  transform: translateY(-2px);
  background: #fff !important;
  color: #1A1416 !important;
  border-color: #BA0F30 !important;
}

#hw-vincent-root .hwv-launch:focus-visible {
  outline: 0 !important;
  box-shadow: 0 12px 32px rgba(26, 20, 22, .13), 0 0 0 3px rgba(186, 15, 48, .26) !important;
}

#hw-vincent-root .hwv-launch img {
  width: 44px !important;
  height: 44px !important;
  max-width: none !important;
  flex: none !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---- Venster ---- */
#hw-vincent-root .hwv-win {
  position: fixed !important;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  width: 360px;
  height: 560px;
  max-height: calc(100vh - 48px);
  background: #fff !important;
  border: 2px solid #E8B43C;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(26, 20, 22, .13);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #1A1416;
}

#hw-vincent-root .hwv-head {
  flex: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #EAE6E7;
}

#hw-vincent-root .hwv-head img {
  width: 52px !important;
  height: 52px !important;
  max-width: none !important;
  flex: none;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
}

#hw-vincent-root .hwv-name {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: #1A1416;
  margin: 0;
}

#hw-vincent-root .hwv-sub {
  font-size: 13px;
  color: #6B5F62;
  line-height: 1.3;
}

#hw-vincent-root .hwv-x {
  margin: 0 0 0 auto !important;
  flex: none;
  width: 36px !important;
  height: 36px !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  cursor: pointer;
  color: #413739 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

#hw-vincent-root .hwv-x:hover,
#hw-vincent-root .hwv-x:focus {
  background: #F7F5F5 !important;
  color: #1A1416 !important;
}

#hw-vincent-root .hwv-x:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(186, 15, 48, .26) !important;
}

/* ---- Berichten ---- */
#hw-vincent-root .hwv-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#hw-vincent-root .hwv-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 100%;
}

#hw-vincent-root .hwv-row > img {
  width: 30px !important;
  height: 30px !important;
  max-width: none !important;
  flex: none;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
}

#hw-vincent-root .hwv-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

#hw-vincent-root .hwv-v {
  background: #F7F5F5;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.45;
  color: #1A1416;
}

#hw-vincent-root .hwv-me {
  align-self: flex-end;
  max-width: 85%;
  background: #1A1416;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.45;
}

#hw-vincent-root .hwv-me img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* ---- Wijnkaartje: volle breedte, fles links, knop onder de tekst ---- */
#hw-vincent-root .hwv-wines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

#hw-vincent-root .hwv-wine {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
  width: 100%;
  border: 1px solid #EAE6E7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#hw-vincent-root .hwv-wine:hover {
  border-color: #D2CCCD;
  box-shadow: 0 2px 10px rgba(26, 20, 22, .07);
}

#hw-vincent-root .hwv-fleslink {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: block;
  text-decoration: none !important;
  border: 0 !important;
}

#hw-vincent-root .hwv-bottle {
  width: 58px !important;
  height: 92px !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

#hw-vincent-root .hwv-wt {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#hw-vincent-root .hwv-wn {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: #1A1416 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

#hw-vincent-root .hwv-wn:hover { color: #BA0F30 !important; }

#hw-vincent-root .hwv-wm {
  font-size: 12px;
  line-height: 1.4;
  color: #6B5F62;
  margin-top: 2px;
}

#hw-vincent-root .hwv-wp {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: #1A1416;
  margin-top: 4px;
}

/* De enige knop die honing hoort te zijn, net als op de rest van de site. */
#hw-vincent-root .hwv-add {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin: 0 !important;
  flex: none;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #E8B43C !important;
  background-image: none !important;
  color: #1A1416 !important;
  font-family: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  padding: 8px 12px !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none !important;
}

#hw-vincent-root .hwv-add:hover,
#hw-vincent-root .hwv-add:focus { background: #D7A229 !important; color: #1A1416 !important; }
#hw-vincent-root .hwv-add:active { background: #BE8D1D !important; transform: scale(.98); }
#hw-vincent-root .hwv-add:focus-visible { outline: 0 !important; box-shadow: 0 0 0 3px rgba(186, 15, 48, .26) !important; }
#hw-vincent-root .hwv-add[disabled] { opacity: .7; cursor: default; }

/* ---- Knop naar WhatsApp ---- */
#hw-vincent-root .hwv-wa {
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 2px 0 2px 38px !important;
  padding: 9px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #25D366 !important;
  color: #0B1C12 !important;
  font-family: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#hw-vincent-root .hwv-wa:hover,
#hw-vincent-root .hwv-wa:focus {
  background: #1EBE5A !important;
  color: #0B1C12 !important;
}

#hw-vincent-root .hwv-wa:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(186, 15, 48, .26) !important;
}

/* ---- Chips ---- */
#hw-vincent-root .hwv-chips {
  flex: none;
  padding: 10px 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#hw-vincent-root .hwv-chip {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid #D2CCCD !important;
  background: #fff !important;
  background-image: none !important;
  color: #1A1416 !important;
  font-family: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  cursor: pointer;
}

#hw-vincent-root .hwv-chip:hover,
#hw-vincent-root .hwv-chip:focus {
  border-color: #BA0F30 !important;
  background: #FDF0F2 !important;
  color: #1A1416 !important;
}

#hw-vincent-root .hwv-chip:focus-visible { outline: 0 !important; box-shadow: 0 0 0 3px rgba(186, 15, 48, .26) !important; }

/* ---- Invoer ---- */
#hw-vincent-root .hwv-form {
  flex: none;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 8px;
  margin: 0;
  background: #fff;
}

#hw-vincent-root .hwv-foto {
  width: 42px !important;
  height: 42px !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: none;
  border: 1px solid #D2CCCD !important;
  border-radius: 10px !important;
  background: #fff !important;
  background-image: none !important;
  color: #413739 !important;
  box-shadow: none !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

#hw-vincent-root .hwv-foto:hover,
#hw-vincent-root .hwv-foto:focus {
  border-color: #BA0F30 !important;
  color: #BA0F30 !important;
  background: #FDF0F2 !important;
}

#hw-vincent-root .hwv-foto:focus-visible { outline: 0 !important; box-shadow: 0 0 0 3px rgba(186, 15, 48, .26) !important; }

#hw-vincent-root .hwv-in {
  flex: 1;
  min-width: 0;
  width: auto !important;
  height: 42px !important;
  min-height: 0 !important;
  border: 1px solid #D2CCCD !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  font-family: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: normal !important;
  color: #1A1416 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none;
}

#hw-vincent-root .hwv-in::placeholder { color: #8D8285; opacity: 1; }

#hw-vincent-root .hwv-in:focus {
  border-color: #BA0F30 !important;
  box-shadow: 0 0 0 3px rgba(186, 15, 48, .26) !important;
}

#hw-vincent-root .hwv-send {
  width: 42px !important;
  height: 42px !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: none;
  border: 0 !important;
  border-radius: 10px !important;
  background: #E8B43C !important;
  background-image: none !important;
  color: #1A1416 !important;
  box-shadow: none !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

#hw-vincent-root .hwv-send:hover,
#hw-vincent-root .hwv-send:focus { background: #D7A229 !important; color: #1A1416 !important; }
#hw-vincent-root .hwv-send:active { background: #BE8D1D !important; }
#hw-vincent-root .hwv-send:disabled { background: #E7E2E3 !important; color: #8D8285 !important; cursor: default; }
#hw-vincent-root .hwv-send:focus-visible { outline: 0 !important; box-shadow: 0 0 0 3px rgba(186, 15, 48, .26) !important; }

/* ---- Denkt na ---- */
#hw-vincent-root .hwv-denk::after {
  content: '';
  display: inline-block;
  /* Vaste breedte, anders springt het wolkje mee met de puntjes. */
  width: 1.4em;
  text-align: left;
  font-size: 1.15em;
  letter-spacing: .08em;
  line-height: 1.2;
  animation: hwv-denk 1.2s steps(4, end) infinite;
}

@keyframes hwv-denk {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

/* ---- Mobiel ---- */
@media (max-width: 480px) {
  /* Zolang het venster open is scrollt de winkel eronder niet mee. */
  html.hwv-open,
  html.hwv-open body {
    overflow: hidden !important;
  }

  #hw-vincent-root .hwv-win {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    /* dvh volgt de balken van de browser; JS verfijnt dit nog met het toetsenbord erbij. */
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
  #hw-vincent-root .hwv-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }

  /* Compact knopje, strak in de hoek. */
  #hw-vincent-root .hwv-launch {
    right: max(5px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(5px, env(safe-area-inset-bottom, 0px)) !important;
    gap: 7px !important;
    padding: 4px 11px 4px 4px !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    /* Vangnet: wat er ook misgaat met de positionering, hij blijft klein. */
    max-width: 60vw !important;
    max-height: 60px !important;
  }

  #hw-vincent-root .hwv-launch img {
    width: 34px !important;
    height: 34px !important;
  }

  /* De twee woorden onder elkaar. */
  #hw-vincent-root .hwv-lt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hw-vincent-root .hwv-launch,
  #hw-vincent-root .hwv-add,
  #hw-vincent-root .hwv-send { transition: none !important; }
  #hw-vincent-root .hwv-denk::after { animation: none; content: '...'; }
}
