/* Onlinefotka Smart Chat – visitor widget */
.ofsc { --ofsc-c: #4f46e5; position: fixed; z-index: 2147483000; bottom: var(--ofsc-y, 20px); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #0f172a; }
.ofsc *, .ofsc *::before, .ofsc *::after { box-sizing: border-box; }
.ofsc-right { right: var(--ofsc-x, 20px); }
.ofsc-left { left: var(--ofsc-x, 20px); }
.ofsc-y-side { bottom: 50%; transform: translateY(50%); }
.ofsc-fab { position: relative; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--ofsc-c); color: #fff; width: 58px; height: 58px; border-radius: 50%; justify-content: center; box-shadow: 0 6px 22px rgba(15, 23, 42, .3); transition: transform .15s; padding: 0; }
.ofsc-fab:hover { transform: scale(1.06); }
.ofsc-fab-t { display: none; font-weight: 600; font-size: 14px; }
.ofsc-label .ofsc-fab { width: auto; height: 48px; border-radius: 24px; padding: 0 18px; }
.ofsc-label .ofsc-fab-t { display: inline; }
.ofsc.is-open .ofsc-fab { display: none; }
.ofsc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e11d48; color: #fff; font: 700 11px/20px sans-serif; text-align: center; font-style: normal; }
.ofsc-badge[hidden], .ofsc [hidden] { display: none !important; }
.ofsc-panel { width: 370px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 40px); background: #fff; border-radius: 16px; box-shadow: 0 16px 60px rgba(15, 23, 42, .28); display: flex; flex-direction: column; overflow: hidden; }
.ofsc-head { background: var(--ofsc-c); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.ofsc-title { display: block; font-size: 16px; }
.ofsc-status { display: block; font-size: 12px; opacity: .85; }
.ofsc-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; margin-right: 6px; }
.is-online .ofsc-status::before { background: #4ade80; }
.ofsc-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
.ofsc-x:hover { opacity: 1; }
.ofsc-body { flex: 1; overflow-y: auto; background: #f4f6fb; padding: 14px; }
.ofsc-msgs { display: flex; flex-direction: column; gap: 8px; }
.ofsc-m { max-width: 82%; display: flex; flex-direction: column; }
.ofsc-m span { font-size: 10.5px; color: #94a3b8; margin: 2px 6px; }
.ofsc-bub { padding: 8px 12px; border-radius: 14px; word-break: break-word; }
.ofsc-m-a { align-self: flex-start; }
.ofsc-m-a .ofsc-bub { background: #fff; border: 1px solid #e5e8f0; border-bottom-left-radius: 4px; }
.ofsc-m-v { align-self: flex-end; align-items: flex-end; }
.ofsc-m-v .ofsc-bub { background: var(--ofsc-c); color: #fff; border-bottom-right-radius: 4px; }
.ofsc-m-v .ofsc-bub a { color: #fff; text-decoration: underline; }
.ofsc-m-s { align-self: center; font-size: 12px; color: #64748b; }
.ofsc-m.is-fail .ofsc-bub { background: #fecdd3; color: #9f1239; }
.ofsc-typing { min-height: 18px; font-size: 12px; color: #64748b; font-style: italic; padding: 4px 4px 0; }
.ofsc-form { border-top: 1px solid #e5e8f0; padding: 10px; background: #fff; display: grid; gap: 8px; }
.ofsc-row { display: flex; align-items: flex-end; gap: 8px; }
.ofsc textarea, .ofsc input[type=text], .ofsc input[type=email] { font: inherit; width: 100%; border: 1px solid #d5dae6; border-radius: 12px; padding: 9px 12px; resize: none; background: #fff; color: #0f172a; margin: 0; }
.ofsc .ofsc-form textarea { box-sizing: border-box !important; width: 100% !important; min-height: 40px !important; max-height: 110px !important; resize: none !important; line-height: 1.4 !important; padding: 9px 12px !important; overflow-y: auto !important; margin: 0 !important; }
.ofsc textarea:focus, .ofsc input:focus { outline: 2px solid var(--ofsc-c); outline-offset: -1px; border-color: transparent; }
.ofsc input.is-bad { border-color: #e11d48; }
.ofsc-row button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ofsc-c); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ofsc-pre { padding: 14px; display: grid; gap: 10px; background: #fff; border-top: 1px solid #e5e8f0; }
.ofsc-pre button { border: 0; border-radius: 12px; padding: 11px; background: var(--ofsc-c); color: #fff; font-weight: 600; cursor: pointer; font: inherit; }
.ofsc-rate { padding: 12px 14px; background: #fff; border-top: 1px solid #e5e8f0; text-align: center; display: grid; gap: 8px; }
.ofsc-rate-b { display: flex; justify-content: center; gap: 14px; }
.ofsc-rate-b button { font-size: 26px; background: #f1f5f9; border: 0; border-radius: 50%; width: 52px; height: 52px; cursor: pointer; }
.ofsc-rate-b button:hover { background: #e0e7ff; }
.ofsc-open { cursor: pointer; }
@media (max-width: 480px) {
	.ofsc.is-open { inset: 0 !important; transform: none; width: 100%; }
	.ofsc-panel { width: 100%; max-width: none; height: var(--ofsc-h, 100dvh); max-height: none; border-radius: 0; }
	.ofsc textarea, .ofsc input[type=text], .ofsc input[type=email] { font-size: 16px; } /* iOS zooms the page in on smaller text */
	.ofsc-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.ofsc-form, .ofsc-pre { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
	.ofsc-fab { width: 54px; height: 54px; }
	.ofsc-label .ofsc-fab { height: 46px; }
}
html.ofsc-lock, html.ofsc-lock body { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) { .ofsc-fab { transition: none; } }
.ofsc-clip { flex: none; width: 36px; height: 40px; border: 0; background: none; color: #64748b; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ofsc-clip:hover { color: var(--ofsc-c); }
.ofsc-row button.ofsc-clip { background: none; color: #64748b; width: 36px; border-radius: 8px; }
.ofsc-img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; }
.ofsc-bub a { color: inherit; }
.ofsc-chip { display: inline-block; padding: 4px 8px; border-radius: 8px; background: rgba(15, 23, 42, .08); }
.ofsc-panel.is-drop { outline: 3px dashed var(--ofsc-c); outline-offset: -6px; }

/* Themes style every button / input / textarea (big padding, own background, tall boxes): keep the widget the same everywhere. */
.ofsc button, .ofsc input, .ofsc textarea { text-transform: none !important; letter-spacing: normal !important; text-shadow: none !important; font-family: inherit !important; min-width: 0 !important; margin: 0 !important; }
.ofsc .ofsc-x { background: transparent !important; border: 0 !important; box-shadow: none !important; width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 4px !important; color: #fff !important; font-size: 26px !important; line-height: 1 !important; border-radius: 0 !important; opacity: .85; }
.ofsc .ofsc-fab { background: var(--ofsc-c) !important; color: #fff !important; border: 0 !important; padding: 0 !important; width: 58px !important; height: 58px !important; min-height: 0 !important; line-height: 1 !important; border-radius: 50% !important; box-shadow: 0 6px 22px rgba(15, 23, 42, .3) !important; }
.ofsc.ofsc-label .ofsc-fab { width: auto !important; height: 48px !important; border-radius: 24px !important; padding: 0 18px !important; }
.ofsc .ofsc-row button { width: 40px !important; height: 40px !important; min-height: 0 !important; border-radius: 50% !important; border: 0 !important; background: var(--ofsc-c) !important; color: #fff !important; padding: 0 !important; box-shadow: none !important; line-height: 1 !important; }
.ofsc .ofsc-row button.ofsc-clip { background: transparent !important; color: #64748b !important; width: 36px !important; border-radius: 8px !important; }
.ofsc .ofsc-pre button { border: 0 !important; border-radius: 12px !important; padding: 11px !important; background: var(--ofsc-c) !important; color: #fff !important; font-weight: 600 !important; box-shadow: none !important; height: auto !important; width: 100% !important; }
.ofsc .ofsc-rate-b button { width: 52px !important; height: 52px !important; min-height: 0 !important; border-radius: 50% !important; background: #f1f5f9 !important; border: 0 !important; padding: 0 !important; font-size: 26px !important; line-height: 1 !important; box-shadow: none !important; }
.ofsc input[type=text], .ofsc input[type=email] { width: 100% !important; height: 40px !important; border: 1px solid #d5dae6 !important; border-radius: 12px !important; padding: 9px 12px !important; background: #fff !important; color: #0f172a !important; box-shadow: none !important; }
@media (max-width: 480px) { .ofsc .ofsc-fab { width: 54px !important; height: 54px !important; } .ofsc.ofsc-label .ofsc-fab { width: auto !important; height: 46px !important; } }
