/* VISION CREATIVE — lead chat widget ("Shreya")
   Self-contained. Inherits page accent via --sky / --sky-deep.
*/

.vcw,
.vcw * {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

.vcw {
    --acc:#9C2C19;--acc-deep:#560700;--acc-dark:#3D0500;--gold:#E0B55E;--ink:#17130d;--ink2:#655e55;--bot:#FBF4E7;--ok:#1E7A4C;--err:#B4321A;--line:rgba(156,44,25,.16);
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
}

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

/* Launcher */
.vcw-launch {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(96px + 58px + 16px + 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(61,5,0,.5), 0 0 0 3px rgba(255,251,244,.95), 0 0 0 4px var(--gold);
    animation: vcw-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

.vcw-launch:hover { filter: brightness(1.06); }

.vcw-av {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    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;
}

/* Teaser card */
.vcw-teaser {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(96px + 58px + 16px + 70px + 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(61,5,0,.28), 0 0 0 1px rgba(156,44,25,.1);
    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));
}

/* Panel */
.vcw-panel {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(96px + 58px + 16px + env(safe-area-inset-bottom));
    width: min(380px, calc(100vw - 40px));
    height: min(680px, calc(100dvh - 190px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 26px 64px -14px rgba(61,5,0,.45), 0 0 0 1px rgba(156,44,25,.1);
    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(140deg, #560700 0%, #3D0500 55%, #2a0400 100%);
    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: rgba(255,244,220,.82);
}

.vcw-id i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25B867;
    box-shadow: 0 0 0 3px rgba(37,184,103,.18);
    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: #F1E3C4;
    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: var(--gold); }

.vcw-steps em {
    position: absolute;
    right: 0;
    top: -3px;
    font-style: normal;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(240,219,151,.75);
}

/* Log */
.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, #FFF9F0, #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: #3D454A;
}

.vcw-me {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    background: var(--acc-dark);
    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: #A39B8B;
    animation: vcw-bounce 1s infinite;
}

.vcw-ty i:nth-child(2) { animation-delay: .15s; }
.vcw-ty i:nth-child(3) { animation-delay: .3s; }

/* Cards */
.vcw-card {
    align-self: stretch;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #FFFCF6;
    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 rgba(224,181,94,.22);
    font-size: 12.5px;
    font-weight: 700;
}

.vcw-ch small {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(224,181,94,.22);
    color: #7A5510;
    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 rgba(224,181,94,.18);
    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(224,181,94,.12);
    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: rgba(224,181,94,.18);
    color: var(--ok);
    font: 800 12px/20px Arial, sans-serif;
    text-align: center;
}

/* Composer / chips */
.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 rgba(224,181,94,.22);
}

.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 rgba(156,44,25,.28);
    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, border-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: rgba(156,44,25,.22);
    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 rgba(156,44,25,.18);
    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 rgba(156,44,25,.18);
    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: #FBF4E7;
    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 */
@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(197, 165, 90, .55); }
    70% { box-shadow: 0 0 0 14px rgba(197, 165, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 165, 90, 0); }
}

@keyframes vcw-spin {
    to { transform: rotate(360deg); }
}

/* Short desktop windows */
@media (min-width: 701px) and (max-height: 820px) {
    .vcw-panel {
        height: min(680px, calc(100dvh - 190px));
    }
    .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;
    }
}

/* Small screens: full-height sheet */
@media (max-width: 700px) {
    .vcw-launch {
        right: max(20px, env(safe-area-inset-right));
        bottom: calc(82px + 52px + 14px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
    }
    .vcw-launch .vcw-av { font-size: 23px; }
    .vcw-teaser {
        right: max(20px, env(safe-area-inset-right));
        bottom: calc(82px + 52px + 14px + 64px + env(safe-area-inset-bottom));
        width: calc(100vw - 40px);
    }
    .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;
    }
}

/* Harico fixes */
.vcw-launch.is-hide{opacity:0;pointer-events:none;transform:scale(.85);transition:opacity .2s,transform .2s}
.vcw-teaser{cursor:pointer}
.vcw-teaser-title{font:700 14px/1.3 Inter,system-ui,sans-serif;color:#3D0500;padding-right:18px}
.vcw-teaser-sub{font:500 12px/1.4 Inter,system-ui,sans-serif;color:#655e55}
.vcw-teaser-x{position:absolute;top:8px;right:8px;width:24px;height:24px;border:0;border-radius:50%;background:rgba(156,44,25,.08);color:#560700;cursor:pointer;font-size:16px;line-height:1}
.vcw-quick{display:flex;gap:8px;padding:8px 12px 12px;flex-wrap:wrap}
.vcw-qbtn{flex:1;min-width:120px;text-align:center;padding:10px 12px;border-radius:10px;background:linear-gradient(140deg,#9C2C19,#560700);color:#fff;text-decoration:none;font:600 13px/1 Inter,system-ui,sans-serif;border:1px solid rgba(224,181,94,.25)}
.vcw-qbtn:hover{filter:brightness(1.05)}

/* vcw-x2-fix */
.vcw-x2{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;display:grid;place-items:center;cursor:pointer;flex:0 0 34px;margin-left:auto}
.vcw-x2:hover{background:rgba(255,255,255,.26)}
.vcw-head .vcw-row{display:flex;align-items:center;gap:10px}

/* close-fix */
.vcw-panel{visibility:hidden;opacity:0;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
.vcw-panel.is-open{visibility:visible;opacity:1;pointer-events:auto}
.vcw-x2{position:relative;z-index:10;pointer-events:auto !important;width:36px;height:36px;min-width:36px;border:0;border-radius:50%;background:rgba(255,255,255,.18) !important;color:#fff !important;font-size:26px;line-height:1;display:grid !important;place-items:center;cursor:pointer;flex:0 0 36px;margin-left:auto;padding:0}
.vcw-x2:hover{background:rgba(255,255,255,.32) !important}
.vcw-x2:active{transform:scale(.96)}
