/* Supplier colours are shared with consent in eshop/{ID}.css; --chat-* can override them. */
/* Tawk can render its minimized iframe before API callbacks, even with autoStart off.
 * Hide the wrapper: the iframe's inline display/visibility !important cannot override
 * a hidden ancestor. The expanded conversation (#max-widget) remains available. */
#min-widget { display: none !important; }
#chat-launcher {
    position: fixed;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--basket-status-height, 0px));
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    height: 48px;
    min-width: 48px;
    padding: 0 16px;
    border: 1px solid var(--chat-line, var(--cc-line, #e5d2d8));
    border-radius: 999px;
    background: var(--chat-surface, var(--cc-surface, #fff));
    color: var(--chat-ink, var(--cc-link-color, var(--cc-brand, #ac2750)));
    box-shadow: 0 3px 12px rgba(48, 20, 33, .10);
    font: 600 12px/1.4 var(--cc-font, Montserrat, Arial, sans-serif);
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}
#chat-launcher[hidden], #chat-launcher [hidden] { display: none !important; }
#chat-launcher .chat-launcher__icon, #chat-launcher svg { display: block; width: 22px; height: 22px; flex: none; }
#chat-launcher:hover { background: var(--chat-hover, var(--cc-tint, #fcf2f5)); box-shadow: 0 4px 16px rgba(48, 20, 33, .16); }
#chat-launcher:focus-visible { outline: 3px solid var(--chat-ink, var(--cc-ink, #30252a)) !important; outline-offset: 3px; }
#chat-launcher .chat-launcher__unread { position: absolute; right: 1px; top: 1px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--cc-brand, #ac2750); }
body.has-chat-launcher a.back-to-top { bottom: max(85px, calc(76px + env(safe-area-inset-bottom, 0px) + var(--basket-status-height, 0px))); }
body.chat-is-open a.back-to-top { visibility: hidden; }
@media(max-width:767px) {
    #chat-launcher { right: calc(12px + env(safe-area-inset-right, 0px)); width: 48px; padding: 0; }
    #chat-launcher .chat-launcher__label { display: none; }
}
@media(prefers-reduced-motion:reduce) { #chat-launcher { transition: none; } }
@media print { #chat-launcher { display: none !important; } }
