/* LDVIR welcome screen: one chat action, calls and direct communication channels. */
.ldvir-contact-launcher{position:fixed;right:24px;bottom:24px;z-index:1000;display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 18px;border:0;border-radius:24px;background:var(--ds-primary-color,#ed8123);color:#fff;box-shadow:0 3px 14px #0003;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer}
.ldvir-contact-mobile{border:0;background:transparent;color:inherit;font:inherit}
.ldvir-contact-panel{position:fixed;inset:auto 24px 88px auto;margin:0;width:400px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 112px);padding:0;border:0;border-radius:24px;background:#fff;color:#17252c;box-shadow:0 18px 60px #0004;overflow:auto}
.ldvir-contact-panel::backdrop{background:#0a11174d}
.ldvir-welcome-main{padding:22px 26px 26px;background:linear-gradient(145deg,#f9a33f 0%,#ed8123 55%,#e6731e 100%)}
.ldvir-welcome-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.ldvir-welcome-brand{font-size:12px;font-weight:700;letter-spacing:1.8px;color:#492608}
.ldvir-welcome-header button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#ffffff26;color:#492608;font:30px/1 sans-serif;cursor:pointer}
.ldvir-contact-panel h2{margin:0 0 10px;font-size:34px;font-weight:700;line-height:1.2;color:#fff;letter-spacing:-.7px}
.ldvir-welcome-intro{margin:0 0 24px;color:#492608;font-size:14px;line-height:1.6}
.ldvir-welcome-chat{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:22px 20px;border:1px solid #ffffffb3;border-radius:16px;background:#fff;color:#17252c;text-align:left;font:inherit;box-shadow:0 5px 18px #9743001a;cursor:pointer}
.ldvir-welcome-chat strong{display:block;font-size:17px;line-height:1.4;font-weight:700}
.ldvir-welcome-chat small{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:#616c73}
.ldvir-welcome-chat svg{flex-shrink:0;color:#d86a15}
.ldvir-welcome-chat:hover{background:#fff9f1}
.ldvir-welcome-chat:disabled{opacity:.75;cursor:wait}
.ldvir-welcome-calls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.ldvir-welcome-call{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:15px 12px;border:1px solid #ffffff73;border-radius:13px;background:#fff;color:#17252c;font:inherit;text-align:left;text-decoration:none!important;cursor:pointer}
.ldvir-welcome-call:hover{background:#fff9f1;color:#17252c}
.ldvir-welcome-call i{font-size:15px;color:#c35b12;margin-bottom:3px}
.ldvir-welcome-call strong{font-size:12px;line-height:1.4;font-weight:700}
.ldvir-welcome-call small{font-size:10px;line-height:1.5;color:#626c72;overflow-wrap:anywhere}
.ldvir-welcome-footer{padding:20px 26px 22px;background:#fff}
.ldvir-welcome-footer>p{margin:0 0 14px;text-align:center;font-size:12px;line-height:1.5;color:#6a747a}
.ldvir-welcome-channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:10px}
.ldvir-welcome-channels>a{display:flex;flex-direction:column;align-items:center;gap:7px;padding:5px 0;border-radius:10px;color:#17252c;font-size:11px;line-height:1.4;text-decoration:none}
.ldvir-welcome-channels>a:hover{background:#f4f6f8}
.ldvir-channel-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;font-size:20px}
.ldvir-channel-telegram{background:#e8f5fd;color:#239bd6}.ldvir-channel-viber{background:#f1ecf8;color:#7751a0}.ldvir-channel-email{background:#fff0e1;color:#cf6b18}.ldvir-channel-whatsapp{background:#e7f7ec;color:#238c4a}
.ldvir-contact-panel [data-ldvir-contact-status]{margin:12px 0 0;color:#492608;font-size:12px;line-height:1.5}
.ldvir-contact-panel [data-ldvir-contact-status]:empty{display:none}
.ldvir-contact-panel :focus-visible,.ldvir-contact-launcher:focus-visible,.ldvir-contact-mobile:focus-visible{outline:3px solid #17252c;outline-offset:3px}
.dark-theme .ldvir-welcome-footer{background:#252525}.dark-theme .ldvir-welcome-footer>p{color:#c2c2c2}.dark-theme .ldvir-welcome-channels>a{color:#f5f5f5}.dark-theme .ldvir-welcome-channels>a:hover{background:#ffffff0d}
.rngst_phone_button,.dropdownMessengers{display:none!important;animation:none!important}
@media(max-width:991.98px){.ldvir-contact-launcher{display:none}.ldvir-contact-panel{inset:auto 12px calc(84px + env(safe-area-inset-bottom));width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 112px);border-radius:22px}.ldvir-welcome-main{padding:18px 22px 22px}.ldvir-welcome-header{margin-bottom:18px}.ldvir-contact-panel h2{font-size:30px}.ldvir-welcome-footer{padding:18px 22px}.ldvir-welcome-intro{margin-bottom:20px}}
@media(max-width:359px){.ldvir-welcome-main{padding:14px 16px 18px}.ldvir-welcome-chat{padding:18px 14px}.ldvir-welcome-chat strong{font-size:15px}.ldvir-welcome-calls{gap:8px}.ldvir-welcome-call{padding:12px 10px}.ldvir-welcome-footer{padding:16px}}

/* Avoid flashing the provider’s bottom bar before the local iframe theme loads. */
#wrapper_id:not([data-ldvir-styled]) > iframe#id{visibility:hidden}
#wrapper_id:not([data-ldvir-styled]),#wrapper_id:not([data-ldvir-styled]) > iframe#id{pointer-events:none!important}
#wrapper_id[data-ldvir-dismissed]{display:none!important}

.ldvir-contact-chat-icon{background:var(--ds-primary-color,#ed8123)}
#ldvir-chat-backdrop:not([hidden]){position:fixed;inset:0;background:#0a11178c;backdrop-filter:blur(4px);z-index:2147483000}
body iframe.KeyCRM-chatWindowContainer{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:420px!important;max-width:calc(100vw - 32px)!important;height:620px!important;max-height:calc(100dvh - 32px)!important;border-radius:18px!important;z-index:2147483001!important;box-shadow:0 24px 80px #0004}
body:not(.ldvir-chat-open) iframe.KeyCRM-chatWindowContainer{visibility:hidden!important;pointer-events:none!important}
.KeyCRM-toggleButtonContainer{display:none!important}
@media(max-width:991.98px){body iframe.KeyCRM-chatWindowContainer{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}}

/* Replies remain visible on the existing contact controls; never auto-open the chat. */
.ldvir-contact-mobile,.ldvir-contact-launcher,[data-ldvir-chat]{position:relative}
.ldvir-contact-launcher{position:fixed}
.ldvir-chat-unread:not([hidden]){position:absolute;right:-4px;top:-5px;display:flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:12px;background:#c73c30;color:#fff;font:700 11px/1 sans-serif;z-index:2}
[data-ldvir-chat] .ldvir-chat-unread:not([hidden]){right:8px;top:4px}
.ldvir-chat-notice{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* The shop-owned header covers the provider close icon with an explicit minimize action. */
body{--ldvir-chat-width:min(420px,calc(100vw - 32px));--ldvir-chat-height:min(620px,calc(100dvh - 32px))}
body iframe.KeyCRM-chatWindowContainer{width:var(--ldvir-chat-width)!important;max-width:var(--ldvir-chat-width)!important;height:var(--ldvir-chat-height)!important;max-height:var(--ldvir-chat-height)!important}
.ldvir-chat-controls:not([hidden]){position:fixed;top:calc(50% - var(--ldvir-chat-height)/2);left:50%;transform:translateX(-50%);z-index:2147483002;display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;width:var(--ldvir-chat-width);height:59px;padding:10px 14px 10px 18px;border-radius:18px 18px 0 0;background:#ed8123;color:#fff;font-family:inherit}
.ldvir-chat-controls strong{display:block;font-size:14px;line-height:1.4}
.ldvir-chat-controls small{display:block;margin-top:2px;font-size:10px;line-height:1.4;color:#fff}
.ldvir-chat-controls button{display:flex;align-items:center;gap:5px;flex-shrink:0;min-height:36px;padding:6px 10px;border:1px solid #fff8;border-radius:9px;background:#fff;color:#924000;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;cursor:pointer}
.ldvir-chat-controls button span{font:24px/1 Arial,sans-serif}
.ldvir-chat-controls button:hover{background:#fff3e6}
.ldvir-chat-controls button:focus-visible{outline:3px solid #17252c;outline-offset:2px}
@media(max-width:991.98px){body{--ldvir-chat-width:calc(100vw - 24px);--ldvir-chat-height:min(620px,calc(100dvh - 24px))}.ldvir-chat-controls:not([hidden]){padding-left:14px}.ldvir-chat-controls small{max-width:195px}}

/* Anchor the close control to the panel; SVG avoids font baseline drift on iOS. */
.ldvir-welcome-main{position:relative}
.ldvir-welcome-header{min-height:44px;padding-right:52px}
.ldvir-welcome-header button{position:absolute;inset:16px 16px auto auto;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;line-height:0;-webkit-appearance:none;appearance:none}
.ldvir-welcome-header button svg{display:block;position:static;flex:none;width:22px;height:22px;margin:0;transform:none;pointer-events:none}
.ldvir-welcome-header button:focus:not(:focus-visible){outline:none}

/* Same LDVIR wave as the navigation loader, inside the modal's top layer. */
.ldvir-contact-panel .ldvir-callback-loading{display:flex;justify-content:center;margin-top:18px;min-height:44px;align-items:center}
.ldvir-callback-wave{display:inline-block;box-sizing:border-box;padding:10px 19px;border:1px solid #ec770f45;border-radius:999px;background:#fff;color:#ec770f;box-shadow:0 4px 18px #00000014;font:700 18px/1.3 system-ui,sans-serif;letter-spacing:2px;white-space:nowrap;direction:ltr}
.ldvir-callback-wave>span{display:inline-block;opacity:.65;animation:ldvir-callback-wave 1.3s ease-in-out infinite;animation-delay:calc(var(--letter)*75ms)}
@keyframes ldvir-callback-wave{0%,65%,100%{opacity:.65;transform:translateY(0)}25%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.ldvir-callback-wave>span{animation:none;opacity:1}}
