/* One shared widget: its base styles must not depend on the host page reset. */
.landing-support, .landing-support *, .landing-support *::before, .landing-support *::after { box-sizing: border-box; }
.landing-support :where(button, input, form, h2, p) { margin: 0; padding: 0; }
.landing-support :where(button) { appearance: none; border: 0; background: transparent; font-family: inherit; font-size: 13.3333px; font-weight: 400; line-height: normal; text-transform: none; letter-spacing: normal; }
.landing-support { --support-cookie-height: 0px; position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(58px + env(safe-area-inset-bottom) + var(--support-cookie-height)); z-index: 1200; color: #293d32; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.6; text-align: left; }
.landing-support[hidden], .landing-support [hidden] { display: none !important; }
.landing-support-backdrop { display: none; }
.landing-support-launcher { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 15px 6px 6px; border: 1px solid #dedfd8; border-radius: 28px; color: #596157; background: #fafaf6; box-shadow: 0 3px 12px #29352a0c; cursor: pointer; }
.landing-support-launcher::before { content: ''; position: absolute; inset: -3px; border: 1px solid #c7b9aa55; border-radius: inherit; pointer-events: none; animation: landing-support-pulse 2s ease-out 3; }
.landing-support-launcher-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4e9de; color: #a55a2f; font-size: 19px; }
.landing-support-launcher-icon i { display: block; transform-origin: 50% 70%; animation: landing-support-greet 4.5s ease-in-out 3; }
.landing-support-launcher[aria-expanded="true"] .landing-support-launcher-icon i { animation-play-state: paused; }
.landing-support-launcher-text { font-size: 12px; font-weight: 500; }
.landing-support-launcher:hover { background: #f4f3ed; border-color: #cbcfc3; }
.landing-support-launcher[aria-expanded="true"]::before { animation: none; opacity: 0; }
.landing-support-panel { position: absolute; bottom: calc(100% + 12px); right: 0; width: 370px; max-width: calc(100vw - 32px); max-height: max(180px, calc(100dvh - 151px - env(safe-area-inset-bottom) - var(--support-cookie-height))); display: flex; flex-direction: column; overflow: hidden; background: #fafbf7; border: 1px solid #d6dfd0; border-radius: 18px; box-shadow: 0 14px 48px #1d30282b; animation: landing-support-enter 180ms ease-out both; }
.landing-support-header { flex-shrink: 0; display: flex; align-items: center; gap: 11px; padding: 18px 16px; background: #f0f3eb; border-bottom: 1px solid #e0e6d9; }
.landing-support-avatar { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e0e9d8; color: #406a48; font-size: 21px; }
.landing-support-header h2 { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0; color: #293d32; letter-spacing: -.2px; }
.landing-support-header p { font-size: 11px; color: #637366; margin: 3px 0 0; }
.landing-support-close { flex-shrink: 0; margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #526459; cursor: pointer; }
.landing-support-close:hover { background: #e2e9db; }
.landing-support-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; scrollbar-width: thin; scrollbar-color: #c4cebd transparent; }
.landing-support-message { padding: 13px 14px; border: 1px solid #e2e7db; border-radius: 3px 13px 13px; background: #fff; font-size: 12px; line-height: 1.75; color: #42574a; overflow-wrap: anywhere; }
.landing-support-message p { margin: 0; }
.landing-support-author { display: block; font-size: 10px; font-weight: 600; color: #6a786c; margin-bottom: 5px; }
.landing-support-typing { justify-self: start; min-width: 164px; }
.landing-support-thinking { display: flex; align-items: center; gap: 10px; min-height: 23px; color: #69745f; font-size: 11px; }
.landing-support-thinking-dots { display: inline-flex; align-items: center; gap: 4px; height: 20px; }
.landing-support-thinking-dots span { width: 5px; height: 5px; border-radius: 50%; background: #b18b48; animation: landing-support-thinking 1.2s ease-in-out infinite; }
.landing-support-thinking-dots span:nth-child(2) { animation-delay: .16s; }
.landing-support-thinking-dots span:nth-child(3) { animation-delay: .32s; }
.landing-support-message-arrived { animation: landing-support-reply 180ms ease-out both; }
.landing-support[data-open="false"] .landing-support-thinking-dots span { animation-play-state: paused; }
@keyframes landing-support-thinking { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes landing-support-reply { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.landing-support-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 14px 0 0; }
.landing-support-topics button { display: flex; align-items: flex-start; gap: 7px; padding: 10px; text-align: left; font: inherit; font-size: 11px; line-height: 1.5; color: #43654a; border: 1px solid #d8e2cf; background: #f2f6ed; border-radius: 9px; cursor: pointer; }
.landing-support-topics i { flex-shrink: 0; font-size: 13px; }
.landing-support-topics button:hover { background: #e8efdf; border-color: #b9cdb0; }
.landing-support-topics button:disabled { opacity: .6; cursor: wait; }
.landing-support-history { display: grid; gap: 10px; }
.landing-support-history:not(:empty) { margin-top: 16px; }
.landing-support-message-user { justify-self: end; max-width: 88%; background: #e7efdf; border-color: #d5e1cb; border-radius: 13px 3px 13px 13px; color: #35523b; }
.landing-support-composer { flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; padding: 6px 7px 6px 12px; border: 1px solid #daded5; border-radius: 12px; background: #fff; }
.landing-support-composer:focus-within { border-color: #bdc2b9; }
.landing-support-composer input { min-width: 0; flex: 1; width: 100%; padding: 6px 0; border: 0; outline: 0; background: transparent; color: #293d32; font: inherit; font-size: 16px; line-height: 22px; }
.landing-support-composer input::placeholder { color: #798579; font-size: 12px; }
.landing-support-composer button { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #f3e8dd; color: #9c522c; font-size: 20px; cursor: pointer; }
.landing-support-composer button:hover { background: #ecdece; }
.landing-support button:focus-visible { outline: 2px solid #9b8c7b; outline-offset: 3px; }
.landing-support-composer input:focus-visible, .landing-support-panel:focus-visible { outline: none; box-shadow: none; }
.landing-support-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes landing-support-pulse { 0% { opacity: .7; transform: scale(.98); } 80%,100% { opacity: 0; transform: scale(1.1); } }
@keyframes landing-support-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes landing-support-greet { 0%,24%,100% { transform: rotate(0); } 8% { transform: rotate(-8deg); } 13% { transform: rotate(8deg); } 18% { transform: rotate(-4deg); } }
/* CRM mobile typography/form rules use !important; keep this shared control unchanged. */
@media (max-width: 768px) {
    .landing-support .landing-support-header h2 { font-size: 14px !important; font-weight: 600 !important; }
    .landing-support-composer #landingSupportQuestion { height: 34px !important; min-height: 0 !important; padding: 6px 0 !important; font-size: 16px !important; line-height: 22px !important; border-radius: 0 !important; border: 0 !important; background: transparent !important; color: #293d32 !important; appearance: none !important; }
}
@media (max-width: 576px) {
    body.landing-support-mobile-open { overflow: hidden; }
    .landing-support-backdrop { display: block; position: fixed; inset: 0; z-index: -1; border: 0; background: #17231f73; cursor: default; }
    .landing-support { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom) + var(--support-cookie-height)); }
    .landing-support-launcher { padding: 6px; }
    .landing-support-launcher-icon { width: 36px; height: 36px; }
    .landing-support-launcher-text { display: none; }
    .landing-support-panel { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom) + var(--support-cookie-height) + var(--support-view-bottom, 0px)); width: auto; max-width: none; max-height: calc(var(--support-view-height, 100dvh) - 24px - env(safe-area-inset-bottom) - var(--support-cookie-height)); border: 1px solid #cbd3c7; border-radius: 18px; box-shadow: 0 18px 52px #14241d40; }
    .landing-support[data-open="true"] .landing-support-launcher { visibility: hidden; pointer-events: none; }
    .landing-support[data-open="true"] { z-index: 110010; }
    .landing-support-header { background: #fff; border-bottom-color: #e3e6df; }
}
@media (prefers-reduced-motion: reduce) {
    .landing-support-launcher::before, .landing-support-launcher-icon i, .landing-support-panel,
    .landing-support-thinking-dots span, .landing-support-message-arrived { animation: none; }
}
.landing-support-status { margin:0; padding:8px 16px; color:#596b5f; font-size:12px; line-height:1.4; }
.landing-support-system { align-self: center; width: 100%; padding: 3px 12px; margin: 9px 0; color: #788278; font-size: 11px; line-height: 1.5; text-align: center; font-weight: 400; overflow-wrap: anywhere; }
.landing-support-status[hidden] { display:none!important; }
.landing-support-composer button:disabled { opacity:.55; cursor:wait; }
.landing-support-launcher[data-has-unread="true"] { border-color: #dea548; background: #fff6e5; }
.landing-support-unread { display: grid; place-items: center; flex-shrink: 0; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: #e5a93b; color: #302714; font-size: 11px; font-weight: 700; line-height: 1; }
.landing-support-unread[hidden] { display: none !important; }
.landing-support-notification { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(116px + env(safe-area-inset-bottom) + var(--support-cookie-height)); display: flex; align-items: flex-start; width: 344px; max-width: calc(100vw - 28px); border: 1px solid #d6b86c; border-radius: 15px; background: #faf8f1; box-shadow: 0 8px 28px #1e30272b; overflow: hidden; }
.landing-support .landing-support-notification-open { display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: 11px; padding: 16px 5px 16px 15px; color: #293d32; text-align: left; cursor: pointer; }
.landing-support-notification-open:hover { background: #f3f0e5; }
.landing-support-notification-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; background: #f3e4bf; color: #8f621c; font-size: 18px; }
.landing-support-notification-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.landing-support-notification-copy strong { font-size: 13px; font-weight: 650; line-height: 1.4; }
.landing-support-notification-copy > [data-support-notification-preview] { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; color: #637366; }
.landing-support-notification-action { font-size: 11px; font-weight: 600; color: #90651e; }
.landing-support .landing-support-notification-close { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; min-height:30px; padding:0; overflow:hidden; margin: 8px 7px 0 0; border-radius: 8px; color: #657064; cursor: pointer; }
.landing-support .landing-support-new-reply { flex-shrink: 0; align-self: center; display: flex; align-items: center; gap: 9px; margin: 0 14px 9px; padding: 7px 12px; border: 1px solid #e3c784; border-radius: 10px; background: #fcf3dd; color: #835f21; font-size: 11px; font-weight: 600; cursor: pointer; }
.landing-support-new-reply:hover { background: #f6e8c8; }
.landing-support-notification-close:hover { background: #eae9df; }
@media (max-width: 576px) {
    .landing-support-notification { right: max(14px, env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom) + var(--support-cookie-height)); }
}
