/* Shopping assistant window (Views/Shared/_ChatWidget.cshtml, chat.js). Every class starts with osvc- so the shop's
   Bootstrap styles and this window do not touch each other. Colours: Osevio pink #ff1576, navy #21409B. */

.osvc { --osvc-pink: #ff1576; --osvc-pink-dark: #ed0261; --osvc-navy: #21409B; --osvc-text: #2f2f33; --osvc-muted: #8a8a93;
        --osvc-line: #ececf1; --osvc-lift: 0px;
        font-family: 'League Spartan', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--osvc-text);
        -webkit-font-smoothing: antialiased; }
.osvc *, .osvc *::before, .osvc *::after { box-sizing: border-box; }
.osvc button { font-family: inherit; }
.osvc p, .osvc ul, .osvc ol { margin: 0; }

/* launcher */
.osvc-launch { position: fixed; right: 20px; bottom: calc(20px + var(--osvc-lift)); z-index: 99990; width: 62px; height: 62px; border: 0; padding: 0;
               border-radius: 50%; cursor: pointer; color: #fff; background: radial-gradient(circle at 30% 25%, #ff5a9e 0%, var(--osvc-pink) 55%, var(--osvc-pink-dark) 100%);
               box-shadow: 0 10px 28px rgba(255, 21, 118, .38), 0 2px 6px rgba(0, 0, 0, .12); display: none; align-items: center; justify-content: center;
               transition: transform .2s ease, box-shadow .2s ease, bottom .25s ease, width .22s ease, height .22s ease; }
.osvc-launch.osvc-on { display: flex; animation: osvc-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.osvc-launch:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 32px rgba(255, 21, 118, .45), 0 2px 6px rgba(0, 0, 0, .12); }
.osvc-launch:focus-visible { outline: 3px solid #ffd1e4; outline-offset: 3px; }
.osvc-launch svg { width: 40px; height: 40px; transition: transform .6s ease; }
.osvc-launch:hover .osvc-fl { transform: rotate(18deg); }
.osvc-launch .osvc-chev { display: none; width: 22px; height: 22px; }
.osvc-launch .osvc-dot { position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
/* While the window is open the button shrinks to a small "close" button under it. */
.osvc-open .osvc-launch { width: 46px; height: 46px; box-shadow: 0 6px 16px rgba(255, 21, 118, .3), 0 2px 4px rgba(0, 0, 0, .1); }
.osvc-open .osvc-launch:hover { transform: translateY(-1px); }
.osvc-open .osvc-launch .osvc-fl, .osvc-open .osvc-launch .osvc-dot { display: none; }
.osvc-open .osvc-launch .osvc-chev { display: block; animation: osvc-rise .2s ease; }

/* teaser bubble next to the launcher */
.osvc-tease { position: fixed; right: 92px; bottom: calc(30px + var(--osvc-lift)); z-index: 99990; max-width: 230px; background: #fff; color: var(--osvc-text);
              border-radius: 16px 16px 4px 16px; padding: 11px 32px 11px 14px; font-size: 14.5px; line-height: 1.35; cursor: pointer;
              box-shadow: 0 8px 28px rgba(20, 20, 40, .16); display: none; animation: osvc-rise .4s ease; }
.osvc-tease.osvc-on { display: block; }
.osvc-tease b { color: var(--osvc-pink); font-weight: 600; }
.osvc-tease-x { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border: 0; background: transparent; color: #aaa; font-size: 18px; line-height: 1; cursor: pointer; border-radius: 50%; }
.osvc-tease-x:hover { background: #f3f3f6; color: #666; }

/* window */
.osvc-panel { position: fixed; right: 20px; bottom: calc(78px + var(--osvc-lift)); z-index: 99991; width: 392px; height: min(660px, calc(100vh - 102px - var(--osvc-lift)));
              background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(25, 20, 60, .22), 0 2px 10px rgba(0, 0, 0, .06); display: none;
              flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.osvc-open .osvc-panel { display: flex; animation: osvc-grow .25s cubic-bezier(.2, .9, .3, 1.1); }

.osvc-head { display: flex; align-items: center; gap: 11px; padding: 14px 12px 14px 16px; color: #fff;
             background: linear-gradient(120deg, var(--osvc-pink) 0%, #ff4f8f 60%, #ff7aa9 100%); position: relative; flex: 0 0 auto; }
.osvc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: #fff; border-radius: 14px 14px 0 0; }
.osvc-ava { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--osvc-pink); display: flex; align-items: center; justify-content: center;
            flex: 0 0 auto; box-shadow: 0 3px 10px rgba(120, 0, 50, .2); }
.osvc-ava svg { width: 34px; height: 34px; }
.osvc-who { flex: 1 1 auto; min-width: 0; padding-bottom: 6px; }
.osvc-name { font-size: 18px; font-weight: 600; letter-spacing: .01em; line-height: 1.15; }
.osvc-status { font-size: 12.5px; opacity: .92; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.osvc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ee08a; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.osvc-hbtn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: flex;
             align-items: center; justify-content: center; margin-bottom: 6px; transition: background .15s; flex: 0 0 auto; }
.osvc-hbtn:hover { background: rgba(255, 255, 255, .3); }
.osvc-hbtn svg { width: 18px; height: 18px; }

.osvc-points { display: none; align-items: center; gap: 8px; margin: 2px 14px 6px; padding: 8px 12px; border-radius: 12px; background: #fff3f8;
               border: 1px solid #ffd6e7; font-size: 13.5px; color: #5c2340; flex: 0 0 auto; }
.osvc-points.osvc-on { display: flex; }
.osvc-points img { width: 20px; height: 20px; }
.osvc-points b { color: var(--osvc-pink); font-weight: 700; }
.osvc-points small { color: #a0768a; margin-left: auto; font-size: 11.5px; }

.osvc-log { flex: 1 1 auto; overflow-y: auto; padding: 8px 16px 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.osvc-log::-webkit-scrollbar { width: 6px; }
.osvc-log::-webkit-scrollbar-thumb { background: #e2e2ea; border-radius: 6px; }

.osvc-msg { display: flex; gap: 9px; margin: 12px 0; animation: osvc-rise .25s ease; }
.osvc-msg-bot .osvc-mava { width: 28px; height: 28px; border-radius: 50%; background: #ffe4ef; color: var(--osvc-pink); flex: 0 0 auto; display: flex;
                           align-items: center; justify-content: center; margin-top: 1px; }
.osvc-msg-bot .osvc-mava svg { width: 22px; height: 22px; }
.osvc-body { min-width: 0; flex: 1 1 auto; font-size: 15px; line-height: 1.5; }
.osvc-msg-user { justify-content: flex-end; }
.osvc-msg-user .osvc-body { flex: 0 1 auto; max-width: 82%; background: var(--osvc-navy); color: #fff; padding: 9px 14px; border-radius: 18px 18px 5px 18px;
                            white-space: pre-wrap; word-wrap: break-word; }
.osvc-text p + p, .osvc-text p + ul, .osvc-text ul + p { margin-top: 8px; }
.osvc-text ul { padding-left: 18px; margin-top: 4px; }
.osvc-text li { margin: 2px 0; }
.osvc-text a { color: var(--osvc-pink); text-decoration: underline; text-underline-offset: 2px; }
.osvc-text strong { font-weight: 700; color: #1d1d22; }
.osvc-error .osvc-text { color: #b3261e; }

/* product cards */
.osvc-cards { margin: 12px 0 4px; }
.osvc-cards-h { font-size: 16.5px; font-weight: 700; color: #1d1d22; margin-bottom: 10px; line-height: 1.25; }
.osvc-card { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--osvc-line); }
.osvc-card:first-of-type { border-top: 0; padding-top: 2px; }
.osvc-img { flex: 0 0 auto; width: 92px; height: 101px; border-radius: 14px; overflow: hidden; background: #f6f6f8; display: block;
            box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.osvc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.osvc-card:hover .osvc-img img { transform: scale(1.05); }
.osvc-info { min-width: 0; flex: 1 1 auto; }
.osvc-title { display: block; font-size: 15px; font-weight: 600; color: #1d1d22 !important; line-height: 1.3; text-decoration: none !important;
              background-image: linear-gradient(90deg, #c9c9d2 50%, transparent 50%); background-size: 4px 1px; background-repeat: repeat-x; background-position: 0 100%; padding-bottom: 1px; }
.osvc-title:hover { color: var(--osvc-pink) !important; }
.osvc-price { margin-top: 5px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.osvc-price b { font-size: 18px; font-weight: 700; color: var(--osvc-pink); letter-spacing: .01em; }
.osvc-price s { font-size: 13px; color: var(--osvc-muted); }
.osvc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.osvc-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #e6f6ec; color: #17803d; }
.osvc-same { font-size: 12px; padding: 3px 9px; border-radius: 20px; background: #eef1fb; color: var(--osvc-navy); }
.osvc-hl { list-style: none; padding: 0 !important; margin-top: 7px !important; }
.osvc-hl li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.4; color: #4a4a52; margin: 2px 0; }
.osvc-hl li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--osvc-pink); opacity: .7; }
.osvc-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 13.5px; font-weight: 600; color: var(--osvc-navy) !important;
           text-decoration: none !important; border-bottom: 1px dotted #9aa6d6; }
.osvc-go:hover { color: var(--osvc-pink) !important; border-color: var(--osvc-pink); }

/* quick suggestions */
.osvc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 6px 37px; }
.osvc-chip { border: 1px solid #ffc6dc; background: #fff; color: #c2105c; border-radius: 20px; padding: 7px 12px; font-size: 13.5px; cursor: pointer;
             transition: background .15s, transform .15s; line-height: 1.2; }
.osvc-chip:hover { background: #fff0f6; transform: translateY(-1px); }

/* typing */
.osvc-typing { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--osvc-muted); }
.osvc-dots { display: inline-flex; gap: 4px; padding: 10px 12px; background: #f4f4f7; border-radius: 14px; }
.osvc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff8fb8; animation: osvc-bounce 1.2s infinite ease-in-out; }
.osvc-dots i:nth-child(2) { animation-delay: .15s; }
.osvc-dots i:nth-child(3) { animation-delay: .3s; }

/* input */
.osvc-foot { flex: 0 0 auto; padding: 10px 12px 8px; border-top: 1px solid var(--osvc-line); background: #fff; }
.osvc-form { display: flex; align-items: flex-end; gap: 8px; background: #f6f6f9; border: 1px solid #ececf2; border-radius: 22px; padding: 5px 5px 5px 14px;
             transition: border-color .15s, box-shadow .15s; }
.osvc-form:focus-within { border-color: #ffb3d1; box-shadow: 0 0 0 3px rgba(255, 21, 118, .1); background: #fff; }
.osvc-input { flex: 1 1 auto; border: 0; background: transparent; resize: none; outline: none; font: inherit; font-size: 15px; line-height: 1.4; color: var(--osvc-text);
              max-height: 104px; min-height: 22px; padding: 7px 0; }
.osvc-input::placeholder { color: #a3a3ad; }
.osvc-send { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--osvc-pink); color: #fff; cursor: pointer; display: flex; align-items: center;
             justify-content: center; flex: 0 0 auto; transition: background .15s, transform .15s, opacity .15s; }
.osvc-send:hover { background: var(--osvc-pink-dark); transform: scale(1.05); }
.osvc-send:disabled { opacity: .4; cursor: default; transform: none; }
.osvc-send svg { width: 18px; height: 18px; }
.osvc-note { text-align: center; font-size: 11px; color: #a3a3ad; margin-top: 6px; line-height: 1.3; }
.osvc-quota { text-align: center; font-size: 12.5px; color: var(--osvc-muted); margin: 0 0 8px; }
.osvc-quota[hidden] { display: none; }
.osvc-quota b { color: var(--osvc-text); }
.osvc-quota a { color: var(--osvc-pink); font-weight: 600; text-decoration: none; }
.osvc-input:disabled { cursor: not-allowed; }
.osvc-login { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.osvc-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 9px 18px; border-radius: 22px;
    background: var(--osvc-pink); border: 1px solid var(--osvc-pink); color: #fff !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important;
    transition: background .15s, transform .15s; }
.osvc-btn:hover { background: var(--osvc-pink-dark); transform: translateY(-1px); }
.osvc-btn-line { background: #fff; color: var(--osvc-pink) !important; }
.osvc-btn-line:hover { background: #fff0f6; }

@keyframes osvc-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes osvc-grow { 0% { transform: scale(.85) translateY(12px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes osvc-rise { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes osvc-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

@media (max-width: 575.98px) {
    .osvc-launch { right: 14px; bottom: calc(14px + var(--osvc-lift)); width: 56px; height: 56px; }
    .osvc-launch svg { width: 36px; height: 36px; }
    .osvc-tease { right: 80px; bottom: calc(20px + var(--osvc-lift)); max-width: 200px; font-size: 14px; }
    .osvc-panel { right: 0; bottom: 0; left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }
    .osvc-open .osvc-launch, .osvc-open .osvc-tease { display: none; }
    .osvc-img { width: 84px; height: 92px; }
    /* iOS Safari zooms the whole page into any input under 16px when it gets focus. */
    .osvc-input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .osvc *, .osvc-launch, .osvc-panel { animation: none !important; transition: none !important; }
}
