.bn-visitor-chat {
    position: fixed;
    z-index: 1040;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    color: #39262e;
    font-size: 14px;
}
.bn-visitor-chat button { font: inherit; cursor: pointer; }
.bn-visitor-chat .bn-chat-launcher {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #72314b;
    border-radius: 28px;
    background: #72314b;
    color: #fff;
    box-shadow: 0 8px 25px #46223735;
}
.bn-visitor-chat[data-ready] .bn-chat-launcher { display: inline-flex; }
.bn-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(370px, calc(100vw - 32px));
    max-height: min(500px, calc(100dvh - 90px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e7d3ca;
    border-radius: 14px;
    background: #fffaf5;
    box-shadow: 0 18px 50px #46223735;
}
.bn-chat-panel[hidden] { display: none; }
.bn-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #72314b;
    color: #fff;
}
.bridal-storefront .bn-chat-header h2 { margin: 0; color: inherit; font-size: 17px; }
.bn-chat-header button { width: 38px; height: 38px; border: 0; border-radius: 7px; background: #ffffff24; color: #fff; font-size: 23px; }
.bn-chat-body { overflow: auto; padding: 14px; }
.bn-chat-body p { margin: 0 0 10px; line-height: 1.6; }
.bn-chat-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-chat-topics button { padding: 6px 10px; border: 1px solid #cba5ad; border-radius: 16px; color: #67233d; background: #f9edf1; }
.bn-chat-answer:not(:empty) { margin-top: 12px; padding: 10px; border-radius: 7px; background: #f4e8e3; }
.bn-chat-answer p:last-child { margin: 0; }
.bn-chat-answer a, .bn-chat-panel .bn-chat-contact { color: #67233d; text-decoration: underline; }
.bn-chat-form { display: flex; gap: 8px; padding: 10px 14px 0; }
.bn-chat-form input { flex: 1; min-width: 0; min-height: 40px; padding: 7px 9px; border: 1px solid #ae9096; border-radius: 5px; font-size: 16px; }
.bn-chat-form button { padding: 6px 12px; border: 0; border-radius: 5px; background: #72314b; color: #fff; }
.bn-chat-panel .bn-chat-contact { align-self: flex-start; margin: 8px 14px 12px; }
.bn-visitor-chat :focus-visible { outline: 2px solid #a65d19; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
    .bn-chat-panel:not([hidden]) { animation: bn-chat-open 180ms ease-out both; }
    @keyframes bn-chat-open { from { opacity: .75; transform: translateY(6px); } }
}
