/* Supreme Rivana — lead chat widget (ANP-style layout, Rivana theme) */
.vcw,
.vcw * {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

.vcw {
  --acc: #358558;
  --acc-deep: #2C6546;
  --acc-dark: #1E2B25;
  --gold: #D8DCCA;
  --ink: #1E2B25;
  --ink2: #596258;
  --bot: #F3F5EA;
  --ok: #1E7A4C;
  --err: #B4321A;
  --line: #DCE3D4;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}

.vcw > * { pointer-events: auto; }

.vcw-launch {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--acc) 0%, var(--acc-deep) 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -6px rgba(30, 43, 37, .45), 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 4px rgba(226, 227, 207, .95);
  animation: vcw-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.vcw-launch:hover { filter: brightness(1.06); }

.vcw-av {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}
.vcw-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.vcw-launch .vcw-av { width: 100%; height: 100%; background: none; font-size: 26px; }

.vcw-dot {
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22A55B;
  border: 2px solid #fff;
}
.vcw-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  border: 2px solid #fff;
  background: var(--err);
  color: #fff;
  font: 700 12px/18px Arial, sans-serif;
  text-align: center;
}
.vcw-launch.is-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  animation: vcw-ring 2.2s ease-out infinite;
}

.vcw-teaser {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(24px + 58px + 12px + env(safe-area-inset-bottom));
  width: 292px;
  max-width: calc(100vw - 32px);
  padding: 15px 15px 13px;
  display: grid;
  gap: 10px;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 44px -12px rgba(30, 43, 37, .42), 0 0 0 1px rgba(30, 43, 37, .06);
  animation: vcw-pop .3s ease-out both;
}
.vcw-teaser p { margin: 0; padding-right: 14px; font-size: 15px; line-height: 1.42; }
.vcw-x, .vcw-x2 { border: 0; background: none; color: var(--ink2); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.vcw-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; font-size: 17px; }
.vcw-who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.vcw-who b { color: var(--ink); font-size: 13px; }
.vcw-who .vcw-av { width: 26px; height: 26px; font-size: 14px; background: linear-gradient(140deg, var(--acc), var(--acc-deep)); }

.vcw-panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 40px));
  height: min(680px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 26px 64px -14px rgba(30, 43, 37, .5), 0 0 0 1px rgba(30, 43, 37, .07);
  transform-origin: 100% 100%;
  animation: vcw-open .3s cubic-bezier(.2, .9, .3, 1.15) both;
}
.vcw-panel.is-closing { animation: vcw-shut .2s ease-in both; }

.vcw-head {
  padding: 14px 14px 12px;
  padding-top: max(14px, env(safe-area-inset-top));
  display: grid;
  gap: 9px;
  background: linear-gradient(135deg, #1E2B25, #2A3A31);
  color: #fff;
}
.vcw-row { display: flex; align-items: center; gap: 10px; }
.vcw-row .vcw-av { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.vcw-id { display: grid; gap: 2px; line-height: 1.2; min-width: 0; }
.vcw-id b { font-size: 15px; }
.vcw-id span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #D5DDD0; }
.vcw-id i { width: 7px; height: 7px; border-radius: 50%; background: #22A55B; display: inline-block; }
.vcw-x2 { margin-left: auto; width: 34px; height: 34px; font-size: 19px; background: rgba(255,255,255,.14); color: #fff; }
.vcw-x2:hover { background: rgba(255,255,255,.24); }
.vcw-trust { display: flex; flex-wrap: wrap; gap: 6px; }
.vcw-trust span { padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #E7EDD9; font-size: 10.5px; font-weight: 600; }
.vcw-steps { display: flex; align-items: center; gap: 6px; position: relative; height: 12px; padding-right: 62px; }
.vcw-steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); }
.vcw-steps i.on { background: #CFE0A8; }
.vcw-steps em { position: absolute; right: 0; top: -3px; font-style: normal; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #C7D1C1; }

.vcw-log { flex: 1; min-height: 96px; overflow-y: auto; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #FAFBF7, #fff 60%); scrollbar-width: thin; }
.vcw-m { flex: 0 0 auto; max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.42; word-wrap: break-word; animation: vcw-in .25s ease-out both; }
.vcw-bot { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--bot); color: #3D4540; }
.vcw-me { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--acc-deep); color: #fff; }
.vcw-ty { align-self: flex-start; flex: 0 0 auto; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--bot); }
.vcw-ty i { width: 7px; height: 7px; border-radius: 50%; background: #A3AE9A; animation: vcw-bounce 1s infinite; }
.vcw-ty i:nth-child(2) { animation-delay: .15s; }
.vcw-ty i:nth-child(3) { animation-delay: .3s; }

.vcw-card { align-self: stretch; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 14px; background: #FCFDF9; overflow: hidden; animation: vcw-in .25s ease-out both; }
.vcw-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #EAF0E3; font-size: 12.5px; font-weight: 700; }
.vcw-ch small { padding: 2px 7px; border-radius: 999px; background: rgba(53,133,88,.12); color: #2C6546; font-size: 10.5px; white-space: nowrap; }
.vcw-pr { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #F0F3EB; font-size: 13px; }
.vcw-pr b { font-weight: 700; } .vcw-pr span { color: var(--ink2); }
.vcw-pr em { font-style: normal; font-weight: 700; transition: filter .5s; }
.vcw-card.is-locked .vcw-pr em { filter: blur(6px); user-select: none; }
.vcw-cf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: rgba(53,133,88,.07); font-size: 12.5px; }
.vcw-cf a, .vcw-cf button { padding: 8px 12px; border: 0; border-radius: 9px; background: var(--acc-dark); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.vcw-cf button:disabled { opacity: .5; cursor: default; }

.vcw-done ul { margin: 0; padding: 12px; list-style: none; display: grid; gap: 8px; }
.vcw-done li { display: flex; gap: 9px; font-size: 13.5px; }
.vcw-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #E3F4EA; color: var(--ok); font: 800 12px/20px Arial, sans-serif; text-align: center; }

.vcw-comp { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px 14px; display: grid; gap: 8px; background: #fff; border-top: 1px solid #EDF1E7; }
.vcw-stack { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.vcw-chip { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 13px; border: 1.5px solid var(--acc-deep); border-radius: 10px; background: #fff; color: var(--acc-deep); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.vcw-chip:hover { background: var(--acc-deep); color: #fff; }
.vcw-chip span { flex: none; width: 18px; text-align: center; opacity: .85; }
.vcw-chip.gh { border-style: dashed; border-color: #D8DCCE; color: var(--ink2); justify-content: center; }
.vcw-free { display: flex; gap: 6px; }
.vcw-free input { flex: 1; min-width: 0; padding: 10px 11px; border: 1.5px solid #DEE4D8; border-radius: 10px; font-size: 15px; color: var(--ink); background: #fff; }
.vcw-send { flex: none; width: 42px; border: 0; border-radius: 10px; background: var(--acc-dark); color: #fff; font-size: 17px; cursor: pointer; }

.vcw-mob { display: grid; gap: 8px; }
.vcw-ml { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.vcw-ml b { color: var(--ok); }
.vcw-mr { display: flex; overflow: hidden; border: 2px solid #DEE4D8; border-radius: 12px; background: #fff; }
.vcw-mr.is-v { border-color: var(--ok); } .vcw-mr.is-b { border-color: var(--err); }
.vcw-mr select { border: 0; padding: 0 8px; max-width: 104px; background: #F6F8F2; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.vcw-mr input { flex: 1; min-width: 0; padding: 11px 10px; border: 0; font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.vcw-mr input:focus { outline: none; }
.vcw-ok { width: 30px; display: grid; place-items: center; color: var(--ok); font-weight: 800; opacity: 0; }
.vcw-mr.is-v .vcw-ok { opacity: 1; }
.vcw-err { font-size: 12.5px; color: var(--err); }
.vcw-big { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 12px; background: var(--acc-dark); color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.vcw-big:disabled { opacity: .5; cursor: default; }
.vcw-safe { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; font-weight: 600; color: var(--ok); }
.vcw-cons { font-size: 11px; line-height: 1.4; color: var(--ink2); }
.vcw-cons a { color: var(--acc-deep); }
.vcw-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vcw-day { padding: 7px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink2); font-size: 11.5px; text-align: center; cursor: pointer; }
.vcw-day b { display: block; font-size: 16px; color: var(--ink); }
.vcw-day:hover { border-color: var(--acc-deep); }
.vcw-retry { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #FCE9E4; color: var(--err); font-size: 13.5px; }
.vcw-spin { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: vcw-spin .8s linear infinite; }
.vcw :focus-visible { outline: 2px solid var(--acc-deep); outline-offset: 2px; }
.vcw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@keyframes vcw-pop { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: none; } }
@keyframes vcw-open { from { opacity: 0; transform: translateY(24px) scale(.62); } to { opacity: 1; transform: none; } }
@keyframes vcw-shut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(24px) scale(.62); } }
@keyframes vcw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vcw-bounce { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes vcw-ring { 0% { box-shadow: 0 0 0 0 rgba(53,133,88,.45); } 70% { box-shadow: 0 0 0 14px rgba(53,133,88,0); } 100% { box-shadow: 0 0 0 0 rgba(53,133,88,0); } }
@keyframes vcw-spin { to { transform: rotate(360deg); } }

@media (min-width: 701px) and (max-height: 820px) {
  .vcw-panel { height: min(680px, calc(100dvh - 110px)); }
  .vcw-comp { padding: 8px 12px 10px; gap: 6px; }
  .vcw-stack { gap: 5px; }
  .vcw-chip { padding: 8px 11px; font-size: 13px; }
  .vcw-free input { padding: 8px 10px; font-size: 14px; }
  .vcw-send { width: 38px; font-size: 15px; }
}
@media (min-width: 701px) and (max-height: 560px) {
  .vcw-panel { top: 12px; bottom: 12px; height: auto; max-height: none; }
}
@media (max-width: 700px) {
  .vcw-launch { right: max(16px, env(safe-area-inset-right)); bottom: calc(72px + 12px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .vcw-launch .vcw-av { font-size: 23px; }
  .vcw-teaser { right: max(16px, env(safe-area-inset-right)); bottom: calc(72px + 12px + 52px + 10px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); }
  .vcw-panel { left: 0; right: 0; top: 0; bottom: 0; width: auto; height: 100%; height: 100dvh; max-height: none; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); animation-name: vcw-up; }
  .vcw-panel.is-closing { animation-name: vcw-down; }
}
@keyframes vcw-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes vcw-down { from { transform: none; } to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .vcw-launch, .vcw-launch.is-pulse::after, .vcw-teaser, .vcw-panel, .vcw-panel.is-closing, .vcw-m, .vcw-card, .vcw-ty i, .vcw-spin { animation: none !important; }
}