.chat-modal{font-family:Segoe UI,sans-serif;width:360px;border-radius:12px;box-shadow:0 5px 25px #00000026;overflow:hidden}.chat-modal .modal-header{background:linear-gradient(-135deg,#007bffb8,#0056d2);color:#fff;padding:16px;display:flex;flex-direction:column;align-items:flex-start;font-size:16px;font-weight:500}.chat-modal .modal-dialog{width:100%}.chat-modal .modal-header p:first-child{font-size:14px;margin:0}.chat-modal .modal-header p:last-child{font-size:20px;font-weight:700;margin:4px 0 0}.chat-modal #chat-box{overflow-y:auto;padding-right:8px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;border:0;border-radius:0;background:none}.chat-modal .chat-message{display:flex;flex-direction:column}.chat-modal .chat-bubble{display:inline-block;max-width:80%;padding:10px 14px;border-radius:20px;font-size:14px;line-height:1.4;word-wrap:break-word;background-color:#f1f0f0}.chat-modal .chat-message[style*=right] .chat-bubble{background:linear-gradient(135deg,#007bffb8,#0056d2);color:#fff;align-self:flex-end}.chat-modal .chat-message[style*=left] .chat-bubble{background-color:#eaeaea;color:#333;align-self:flex-start}.chat-modal #chat-input-container{display:flex;border-top:1px solid #eee;margin-top:0;background:none;border-radius:0;padding:10px 10px 10px 0;outline:none!important}.chat-modal #user-message{flex:1;padding:10px 14px;border:0px;border-radius:0;outline:none!important;font-size:14px}.chat-modal #send-btn{background-color:#007bff;color:#fff;border:none;margin-left:10px;border-radius:50%;font-size:16px;cursor:pointer;transition:background-color .2s ease}.chat-modal #send-btn:hover{background-color:#0056d2}.chat-modal .chat-bubble a{color:#007bff;text-decoration:none}.chat-modal .chat-bubble a:hover{text-decoration:underline}.esri-expand__icon--expanded:before{content:"×"!important;font-family:inherit!important;font-size:1.5em;color:#333;font-weight:400;background:none!important;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.esri-collapse__icon{margin-top:5px}.esri-expand__toggle{display:flex!important;align-items:center!important;justify-content:center!important}.esri-view-height-xsmall .esri-ui-corner .esri-component .esri-expand__content,.esri-view-height-small .esri-ui-corner .esri-component .esri-expand__content{border-radius:15px;max-height:unset;margin-left:12px}.esri-view-height-xsmall .esri-ui-corner .esri-component .esri-expand__content #chat{min-height:200px}@media screen and (max-width: 560px){.chat-modal{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;border-radius:0!important;left:0!important;top:0!important;position:fixed!important;margin:0!important;z-index:9999;box-shadow:none!important;padding:0!important;display:flex;flex-direction:column}.chat-modal .modal-dialog,.chat-modal .modal-content{width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;padding:0!important;display:flex;flex-direction:column}.chat-modal .modal-header,.chat-modal .modal-footer{border-radius:0!important;width:100vw!important;max-width:100vw!important}.chat-modal #chat-input-container{width:100vw!important;max-width:100vw!important}.esri-expand__container{width:100%;left:0}.esri-expand__panel{float:right}.esri-expand__container .esri-expand__content{position:absolute;width:100%;top:0;left:0;z-index:-1}.chat-modal .modal-header{border-radius:0}.esri-view-height-medium .esri-ui-corner .esri-component .esri-expand__content{max-height:502px}#chat{max-height:100%;min-height:100%}.esri-expand__container--expanded #chat{width:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}.esri-expand__container--expanded #chat-box{max-height:calc(100svh - env(safe-area-inset-bottom,0px) - 140px)}.esri-expand__container.esri-expand__container--expanded .esri-widget--button{background:white!important;z-index:100000!important;position:relative!important}.esri-ui-bottom-right.esri-ui-corner{z-index:0!important}}
