/* Shopini Customer Center 2.8.2 — fenêtre Shopy, inspirée de la démo du thème SaaS. */
.portal-shopy-cta,.portal-shopy-fab,.portal-shopy-window button{font:inherit}
.portal-shopy-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin:16px 0 0 14px;padding:10px 16px;border:1px solid #e9b0a0;border-radius:11px;background:#fff3eb;color:#ad3a00;font-size:13px;font-weight:750;cursor:pointer}
.portal-shopy-cta:hover,.portal-shopy-cta:focus-visible{background:#ffe7d9;border-color:#ff985b}
.portal-shopy-cta--dashboard{margin:0 8px 0 auto;flex-shrink:0}
.portal-shopy-fab{position:fixed;bottom:22px;right:22px;z-index:990;display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:7px 17px 7px 7px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:linear-gradient(110deg,#ff6618,#eb4700);color:#fff;box-shadow:0 10px 30px rgba(119,44,0,.26);font-size:13px;font-weight:750;cursor:pointer}
.portal-shopy-fab__icon{width:35px;height:35px;display:grid;place-items:center;border-radius:100%;background:rgba(255,255,255,.17)}
.portal-shopy-fab:hover,.portal-shopy-fab:focus-visible{background:#d73a00;transform:translateY(-1px)}
.portal-shopy-dialog{position:fixed;inset:auto 20px 84px auto;margin:0;width:min(460px,calc(100vw - 32px));max-height:min(770px,calc(100dvh - 105px));max-width:none;padding:0;border:1px solid #eadde7;border-radius:19px;background:#fff;color:#172239;box-shadow:0 24px 90px rgba(17,24,39,.28);overflow:hidden;overscroll-behavior:contain}
.portal-shopy-dialog::backdrop{background:rgba(9,15,30,.32);backdrop-filter:blur(2px)}
.portal-shopy-window{display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow-y:auto;font-family:inherit}
.portal-shopy-window__header{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-height:80px;padding:15px 16px;border-bottom:1px solid #eee9f1;background:linear-gradient(105deg,#fff8f3,#f7f3ff)}
.portal-shopy-window__avatar{flex:0 0 auto;display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:linear-gradient(135deg,#7b4df5,#a678fa);color:#fff}
.portal-shopy-window__avatar svg,.portal-shopy-window__avatar img{width:27px;max-width:27px;height:27px;object-fit:contain}
.portal-shopy-window__identity{display:flex;flex-direction:column;min-width:0;gap:2px}
.portal-shopy-window__identity strong{color:#192038;font-size:17px;line-height:1.2}
.portal-shopy-window__identity small{color:#74788c;font-size:11px;line-height:1.3}
.portal-shopy-window__state{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;margin-left:auto;color:#8b5d47;background:#fff3e6;font-size:10px;font-weight:700;padding:5px 8px;border-radius:16px}
.portal-shopy-window__state.is-live{color:#16744d;background:#eaf8f0}
.portal-shopy-window__state.is-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#20b66f}
.portal-shopy-window__close{display:grid;place-items:center;width:32px;height:32px;margin:0 0 0 3px;border:0;border-radius:9px;background:transparent;color:#60667a;font-size:27px;cursor:pointer}
.portal-shopy-window__close:hover,.portal-shopy-window__close:focus-visible{background:#eee7f2;color:#232437}
.portal-shopy-window__intro{padding:17px 18px 13px;background:#fff;flex:0 0 auto}
.portal-shopy-window__intro strong{font-size:17px;line-height:1.3}
.portal-shopy-window__intro p{font-size:13px;color:#69758a;line-height:1.55;margin:7px 0 0}
.portal-shopy-window__messages{flex:1 1 auto;display:flex;flex-direction:column;gap:11px;min-height:80px;max-height:270px;overflow-y:auto;padding:10px 18px 14px;border-top:1px solid #f2eff5;scrollbar-width:thin}
.portal-shopy-window__message{display:flex}
.portal-shopy-window__message--user{justify-content:flex-end}
.portal-shopy-window__bubble{max-width:90%;padding:10px 13px;border-radius:13px;background:#f4f1fb;color:#252a42;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.portal-shopy-window__message--user .portal-shopy-window__bubble{border-bottom-right-radius:3px;background:#ffede1;color:#69300d}
.portal-shopy-window__message--error .portal-shopy-window__bubble{background:#fff0ec;color:#b23522}
.portal-shopy-window__suggestions{display:flex;gap:8px;overflow-x:auto;flex:0 0 auto;padding:10px 17px;scrollbar-width:thin;scroll-snap-type:x proximity}
.portal-shopy-window__suggestions button{flex:0 0 auto;scroll-snap-align:start;max-width:245px;padding:8px 10px;border:1px solid #e3dff0;border-radius:99px;background:#faf8ff;color:#514084;font-size:11px;font-weight:650;text-align:left;cursor:pointer}
.portal-shopy-window__suggestions button:hover{border-color:#a88be6;background:#eee8ff}
.portal-shopy-window__form{display:flex;align-items:flex-end;gap:8px;margin:3px 16px 0;padding:8px;border:1px solid #dcd7e5;border-radius:14px;background:#fff}
.portal-shopy-window__form:focus-within{border-color:#9e86ef;box-shadow:0 0 0 3px rgba(134,105,218,.14)}
.portal-shopy-window__form textarea{display:block;resize:vertical;min-height:57px;max-height:130px;width:100%;box-sizing:border-box;line-height:1.45;padding:10px 8px;border:none!important;outline:none!important;box-shadow:none!important;background:transparent!important;color:#1c273b;font:inherit;font-size:13px}
.portal-shopy-window__form button{display:grid;flex:0 0 auto;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:#ff5a0a;color:#fff;cursor:pointer}
.portal-shopy-window__form button:hover{background:#dd4700}
.portal-shopy-window__form button:disabled{opacity:.5;cursor:wait}
.portal-shopy-window__bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px 8px;color:#85889a;font-size:10px}
.portal-shopy-window__bottom button{padding:3px;border:0;background:transparent;color:#6b48b4;font-size:11px;font-weight:700;cursor:pointer}
.portal-shopy-window__bottom button:hover{text-decoration:underline}
.portal-shopy-window__offline{display:grid;gap:10px;margin:0 17px;padding:18px;border-radius:13px;background:#fff7ef;border:1px solid #f2ddc9;font-size:13px;line-height:1.55;color:#6b5545}
.portal-shopy-window__offline p{margin:0}
.portal-shopy-window__offline a{justify-self:start;padding:9px 13px;background:#ff5a0a;color:white;border-radius:9px;font-weight:700;text-decoration:none}
.portal-shopy-window__disclaimer{padding:10px 18px 15px;color:#868898;font-size:10px;line-height:1.4;text-align:center}
@media(max-width:750px){.portal-shopy-cta{margin:15px 0 0}.portal-shopy-cta--dashboard{margin:0}.portal-shopy-fab{right:12px;bottom:12px;min-height:43px;padding:5px 13px 5px 5px}.portal-shopy-dialog{inset:auto 8px 67px 8px;width:auto;max-height:calc(100dvh - 78px);border-radius:16px}.portal-shopy-window__header{padding:12px}.portal-shopy-window__state{font-size:9px}.portal-shopy-window__messages{max-height:200px}.portal-shopy-window__suggestions{padding-inline:12px}.portal-shopy-window__form{margin-inline:12px}.portal-shopy-window__bottom{flex-wrap:wrap}.portal-shopy-window__disclaimer{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.portal-shopy-fab{transition:none}.portal-shopy-dialog::backdrop{backdrop-filter:none}}
