.chat-popup-window{
font-family: 'Sofia Pro','Century Gothic','Open Sans',sans-serif;
}
.chat-popup-window{
--safeut-blue: #507C8C;
--safeut-light-blue: #6DCFF6;
--error-color: #ac162c;
}
.chat-popup-window{
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
z-index: 1050;
width: 370px;
max-width: calc(100vw - 2rem);
height: 540px;
max-height: calc(100vh - 4rem);
background: #ffffff;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0,0,0,0.22);
display: flex;
flex-direction: column;
overflow: hidden;
}
.chat-popup-header{
background-color: var(--safeut-blue);
color: #ffffff;
padding: 0.65rem 0.75rem;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
border-radius: 12px 12px 0 0;
position: relative;
z-index: 3;
}
.chat-popup-title{
font-weight: 600;
font-size: 0.95rem;
}
.chat-popup-header-actions{
display: flex;
gap: 0.25rem;
align-items: center;
}
.chat-popup-header-divider{
width: 1px;
height: 1.25rem;
background-color: rgba(255,255,255,0.35);
margin: 0 0.25rem;
flex-shrink: 0;
}
.chat-popup-icon-btn{
background: transparent;
border: none;
color: #ffffff;
cursor: pointer;
width: 2.5rem !important;
height: 2rem;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
padding: 0;
transition: background-color 0.15s;
box-sizing: content-box;
}
.chat-popup-icon-btn:hover,
.chat-popup-icon-btn:focus-visible{
background-color: rgba(255,255,255,0.2);
}
.chat-popup-icon-btn:focus-visible{
outline: 2px solid var(--safeut-light-blue);
outline-offset: 2px;
}
.chat-popup-messages{
flex: 1 1 auto;
overflow-y: auto;
padding: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
background: #f5f7f9;
scroll-behavior: smooth;
}
.popup-msg-row{
display: flex;
align-items: flex-end;
gap: 0.4rem;
max-width: 88%;
}
.popup-msg-row--user{
align-self: flex-end;
flex-direction: column;
align-items: flex-end;
max-width: 80%;
}
.popup-msg-row--bot{
align-self: flex-start;
}
.popup-msg-bubble{
padding: 0.5rem 0.75rem;
border-radius: 12px;
font-size: 0.875rem;
line-height: 1.5;
word-break: break-word;
}
.popup-msg-bubble--user{
background-color: var(--safeut-blue);
color: #ffffff;
border-bottom-right-radius: 3px;
}
.popup-msg-bubble--bot{
background-color: #e8ecef;
color: #1a1a1a;
border-bottom-left-radius: 3px;
}
.popup-msg-status{
font-size: 0.7rem;
color: #666;
text-align: right;
margin-top: 2px;
}
.popup-msg-status--failed{
color: var(--safeut-blue);
font-weight: 600;
}
.popup-msg-avatar{
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #ffffff;
border: 1px solid #d7e0e5;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
}
.popup-msg-avatar-logo{
width: 28px;
height: 28px;
object-fit: cover;
object-position: center;
display: block;
}
.popup-msg-system{
align-self: center;
background-color: #dce3e8;
color: #333;
font-size: 0.78rem;
font-style: italic;
padding: 0.3rem 0.75rem;
border-radius: 999px;
text-align: center;
max-width: 90%;
}
.popup-system-actions{
align-self: center;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.4rem;
margin-top: 0.35rem;
max-width: 90%;
}
.chat-popup-input-area{
flex-shrink: 0;
background: #ffffff;
border-top: 1px solid #e4e8ec;
padding: 0.5rem 0.65rem;
}
.popup-uploader-hidden{
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
.popup-inline-card{
background: #ffffff;
border: 1px solid #d0d7de;
border-radius: 10px;
padding: 0.75rem;
display: flex;
flex-direction: column;
align-self: stretch;
box-shadow: 0 1px 4px rgba(0,0,0,0.07);
margin-top: 0.25rem;
}
.popup-response-choices{
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.4rem;
align-self: stretch;
margin-top: 2px;
}
.popup-response-btn{
background-color: #ffffff;
color: var(--safeut-blue);
border: 1.5px solid var(--safeut-blue);
border-radius: 6px;
padding: 0.45rem 0.8rem;
font-size: 0.9rem;
font-weight: 400;
cursor: pointer;
transition: background-color 0.15s,color 0.15s;
white-space: normal;
text-align: center;
line-height: 1.2;
max-width: 100%;
width: auto;
}
.popup-response-btn:hover,
.popup-response-btn:focus-visible{
background-color: var(--safeut-blue);
border-color: var(--safeut-blue);
color: #ffffff;
}
.popup-response-btn:focus-visible{
outline: 3px solid var(--safeut-blue);
outline-offset: 2px;
}
.popup-inline-card .popup-response-btn{
align-self: flex-end;
}
.popup-text-input-bar{
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.popup-skip-link{
background: none;
border: none;
color: #888;
font-size: 0.78rem;
padding: 0.15rem 0;
cursor: pointer;
text-align: center;
width: 100%;
text-decoration: underline;
letter-spacing: normal;
}
.popup-skip-link:hover,
.popup-skip-link:focus-visible{
color: var(--safeut-blue);
}
.popup-skip-link:focus-visible{
outline: 2px solid var(--safeut-blue);
outline-offset: 2px;
}
.popup-skip-btn{
background-color: #ffffff;
color: #555;
border: 1px solid #bbb;
border-radius: 6px;
font-size: 0.8rem;
padding: 0.35rem 0.7rem;
cursor: pointer;
white-space: nowrap;
width: auto;
}
.popup-skip-btn:hover,
.popup-skip-btn:focus-visible{
background-color: #f0f0f0;
color: #222;
}
.popup-skip-btn:focus-visible{
outline: 3px solid var(--safeut-blue);
outline-offset: 2px;
}
.popup-textarea,
.popup-textarea.k-textarea,
.popup-textarea textarea{
width: 100%;
min-height: 40px;
max-height: 120px;
resize: none;
border: none;
border-radius: 0;
padding: 0.3rem 0.4rem;
font-size: 0.875rem;
background-color: transparent;
color: #1a1a1a;
box-sizing: border-box;
outline: none;
box-shadow: none;
}
.popup-textarea:focus,
.popup-textarea.k-textarea:focus-within,
.popup-textarea.k-textarea.k-focus{
border: none;
outline: none;
box-shadow: none;
background-color: transparent;
}
.popup-send-btn{
background: none;
border: none;
color: var(--safeut-blue);
cursor: pointer;
padding: 0.2rem 0.3rem;
font-size: 1.1rem;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: auto;
border-radius: 6px;
transition: color 0.15s,background-color 0.15s;
}
.popup-send-btn i{
display: inline-block;
transform: rotate(45deg);
}
.popup-send-btn:hover:not(:disabled),
.popup-send-btn:focus-visible{
color: var(--safeut-blue);
background-color: #f0f4f8;
}
.popup-send-btn:focus-visible{
outline: 2px solid var(--safeut-blue);
border-radius: 6px;
}
.popup-send-btn:disabled{
opacity: 0.4;
cursor: not-allowed;
}
.popup-chat-bar{
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.popup-chat-bar-input-row{
display: flex;
flex-direction: column;
border: 1px solid #d0d7de;
border-radius: 12px;
background: #ffffff;
padding: 0.4rem 0.5rem 0.4rem;
transition: border-color 0.15s,box-shadow 0.15s;
}
.popup-chat-bar-input-row:focus-within{
border-color: var(--safeut-blue);
box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
}
.popup-chat-bar-actions{
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 0.3rem;
margin-top: 0.2rem;
border-top: 1px solid #e8ecef;
}
.popup-attach-btn{
background: none;
border: none;
color: var(--safeut-blue);
cursor: pointer;
padding: 0.2rem 0.3rem;
font-size: 1.1rem;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: auto;
border-radius: 6px;
transition: color 0.15s,background-color 0.15s;
}
.popup-attach-icon{
position: relative;
display: inline-flex;
}
.popup-attach-plus{
position: absolute;
top: -0.15rem;
right: -0.25rem;
font-size: 0.68rem;
font-weight: 900;
line-height: 1;
color: var(--safeut-blue);
transition: color 0.15s;
pointer-events: none;
}
.popup-attach-btn:hover,
.popup-attach-btn:focus-visible{
color: var(--safeut-blue);
background-color: #f0f4f8;
}
.popup-attach-btn:hover .popup-attach-plus,
.popup-attach-btn:focus-visible .popup-attach-plus{
color: var(--safeut-blue);
}
.popup-attach-btn:focus-visible{
outline: 2px solid var(--safeut-blue);
border-radius: 6px;
}
.popup-msg-attachments{
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 0.25rem;
}
.popup-msg-thumb-btn{
background: none;
border: none;
padding: 0;
cursor: zoom-in;
border-radius: 8px;
width: auto;
display: inline-block;
}
.popup-msg-thumb-btn:focus-visible{
outline: 2px solid var(--safeut-light-blue);
outline-offset: 2px;
}
.popup-msg-thumb{
width: 110px;
height: 110px;
object-fit: cover;
border-radius: 8px;
border: 1px solid rgba(255,255,255,0.35);
display: block;
background: #ffffff;
}
.popup-msg-bubble--user:has(.popup-msg-attachments){
padding: 0.4rem;
}
.popup-attachment-preview-backdrop{
position: absolute;
top: 3.3rem;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.78);
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
cursor: default;
}
.popup-attachment-preview-frame{
display: flex;
align-items: center;
justify-content: center;
min-width: 60%;
min-height: 40%;
max-width: 100%;
max-height: 100%;
cursor: default;
}
.popup-attachment-preview-img{
max-width: 100%;
max-height: 100%;
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
background: #ffffff;
}
.chat-popup-window .popup-attachment-preview-close{
position: absolute;
top: 0.35rem;
right: 0.5rem;
width: 34px;
height: 34px;
padding: 0;
line-height: 1;
background: transparent;
border: none;
color: #ffffff;
font-size: 1.35rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.popup-attachment-preview-close:focus-visible{
outline: 3px solid var(--safeut-light-blue);
outline-offset: 2px;
}
.popup-file-preview{
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
padding-bottom: 0.4rem;
}
.popup-file-chip{
position: relative;
display: inline-flex;
}
.popup-file-chip img{
width: 52px;
height: 52px;
object-fit: cover;
border-radius: 6px;
border: 1px solid #ccc;
}
.popup-file-chip-remove{
position: absolute;
top: -5px;
right: -5px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #e53e3e;
color: #ffffff;
border: none;
cursor: pointer;
font-size: 9px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
line-height: 1;
width: auto;
min-width: 18px;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.popup-attachment-notice{
display: flex;
align-items: flex-start;
gap: 0.4rem;
background: #fdf0f2;
border: 1px solid #f0ccd3;
border-left: 3px solid var(--error-color);
color: #7a1020;
border-radius: 8px;
padding: 0.4rem 0.55rem;
margin-bottom: 0.45rem;
font-size: 0.75rem;
line-height: 1.4;
}
.popup-attachment-notice-mark{
flex-shrink: 0;
font-weight: 700;
}
.popup-attachment-notice-text{
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.popup-attachment-notice-close{
margin-left: auto;
background: none;
border: none;
color: #7a1020;
opacity: 0.65;
font-size: 0.7rem;
line-height: 1;
padding: 0 0 0 0.3rem;
width: auto;
cursor: pointer;
flex-shrink: 0;
}
.popup-attachment-notice-close:hover,
.popup-attachment-notice-close:focus-visible{
opacity: 1;
}
.popup-attachment-notice-close:focus-visible{
outline: 2px solid var(--safeut-blue);
outline-offset: 2px;
border-radius: 3px;
}
.popup-action-bar{
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.popup-photo-area{
display: flex;
flex-direction: column;
}
.popup-timeout-backdrop{
position: absolute;
inset: 0;
z-index: 2;
background: rgba(26,34,38,0.55);
display: flex;
align-items: center;
justify-content: center;
padding: 2.8rem 1rem 1rem;
animation: popup-timeout-fade 0.15s ease-out;
}
@keyframes popup-timeout-fade{
from{opacity: 0;}
to{opacity: 1;}
}
@media (prefers-reduced-motion: reduce){
.popup-timeout-backdrop{animation: none;}
}
.popup-timeout-card{
background: #ffffff;
border-radius: 10px;
padding: 1rem 1rem 0.9rem;
width: 100%;
max-width: 17rem;
text-align: center;
box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.popup-timeout-title{
font-weight: 600;
font-size: 0.95rem;
color: #1a1a1a;
margin: 0 0 0.35rem;
}
.popup-timeout-text{
font-size: 0.82rem;
line-height: 1.45;
color: #4a575d;
margin: 0 0 0.85rem;
}
.popup-timeout-count{
font-weight: 600;
color: var(--error-color);
white-space: nowrap;
}
.popup-timeout-actions{
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.popup-timeout-btn{
border: 1.5px solid var(--safeut-blue);
border-radius: 6px;
padding: 0.45rem 0.8rem;
font-size: 0.9rem;
font-weight: 400;
line-height: 1.2;
cursor: pointer;
width: 100%;
transition: background-color 0.15s,color 0.15s;
}
.popup-timeout-btn--primary{
background-color: var(--safeut-blue);
border-color: var(--safeut-blue);
color: #ffffff;
}
.popup-timeout-btn--primary:hover,
.popup-timeout-btn--primary:focus-visible{
background-color: var(--safeut-light-blue);
border-color: var(--safeut-light-blue);
color: #ffffff;
}
.popup-timeout-btn:focus-visible{
outline: 3px solid var(--safeut-light-blue);
outline-offset: 2px;
}
@media (max-width: 480px){
.chat-popup-window{
bottom: 0;
right: 0;
left: 0;
top: 0;
width: 100%;
max-width: 100%;
height: 100dvh;
max-height: 100dvh;
border-radius: 0;
}
}
.chat-popup-window input{
background-color: #f8f9fa;
color: #1a1a1a;
border: 1px solid #ccc;
padding: 0.45rem 0.6rem;
font-size: 0.875rem;
border-radius: 8px;
width: 100%;
box-sizing: border-box;
}
.popup-chat-bar-input-row textarea,
.popup-chat-bar-input-row .k-textarea,
.popup-chat-bar-input-row .k-textarea textarea{
border: none !important;
background: transparent !important;
box-shadow: none !important;
outline: none !important;
padding: 0.3rem 0.4rem !important;
}
.chat-popup-window button{
width: auto;
letter-spacing: normal;
padding: 0;
}
.chat-popup-window .popup-response-btn{
padding: 0.45rem 0.8rem;
}
.chat-popup-window .popup-timeout-btn{
padding: 0.45rem 0.8rem;
width: 100%;
}
.chat-popup-window .btn{
padding: 0.45rem 1rem;
}
.chat-popup-window .btn-safeut-primary{
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
.chat-popup-window .btn-outline-secondary{
background-color: #ffffff;
color: #333;
border: 1px solid #aaa;
font-size: 0.9rem;
padding: 0.45rem 1rem;
}
.chat-popup-window .btn-outline-secondary:hover,
.chat-popup-window .btn-outline-secondary:focus-visible{
background-color: #f0f0f0;
color: #111;
}
.chat-popup-window .btn-outline-secondary:focus-visible{
outline: 3px solid var(--safeut-blue);
outline-offset: 2px;
}
.chat-popup-window .typing-indicator{
display: inline-flex;
align-items: center;
gap: 4px;
padding: 8px 12px;
background-color: #F0F0F0;
border-radius: 12px;
margin: 4px 0;
}
.chat-popup-window .typing-indicator span{
width: 8px;
height: 8px;
background-color: #666;
border-radius: 50%;
animation: typing-bounce 1.4s infinite ease-in-out;
}
.chat-popup-window .typing-indicator span:nth-child(1){
animation-delay: 0s;
}
.chat-popup-window .typing-indicator span:nth-child(2){
animation-delay: 0.2s;
}
.chat-popup-window .typing-indicator span:nth-child(3){
animation-delay: 0.4s;
}
@keyframes typing-bounce{
0%,80%,100%{
transform: scale(0.6);
opacity: 0.5;
}
40%{
transform: scale(1);
opacity: 1;
}
}
.chat-popup-window .popup-school-select.k-combobox{
height: 30px;
background-color: #f7f7f7;
border: 1px solid rgba(0,0,0,0.08);
border-radius: 4px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7378' stroke-width='1.4'%3E%3Ccircle cx='6.9' cy='6.9' r='4.5'/%3E%3Cpath d='M10.3 10.3L13.9 13.9' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: 8px center;
background-size: 15px 15px;
}
.chat-popup-window .popup-school-select .k-input-inner{
padding-left: 30px;
padding-right: 8px;
background: transparent;
border: 0;
}
.chat-popup-window .popup-school-select .k-clear-value{
display: none;
}
@media (hover: none) and (pointer: coarse){
.chat-popup-window .popup-school-select.k-combobox{
height: 34px;
}
}
.k-animation-container.popup-list-above .k-popup,
.k-animation-container.popup-list-above .k-list-container{
border-bottom: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
box-shadow: 0 -4px 14px rgba(0,0,0,0.14);
}
.k-animation-container.popup-list-below .k-popup,
.k-animation-container.popup-list-below .k-list-container{
border-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.k-animation-container.popup-list-above,
.k-animation-container.popup-list-below{
box-shadow: none;
background: transparent;
}
.chat-popup-window .popup-school-select.popup-field-joined-below{
border-radius: 0 0 4px 4px;
}
.chat-popup-window .popup-school-select.popup-field-joined-above{
border-radius: 4px 4px 0 0;
}
.chat-popup-input-area{
margin-bottom: var(--safeut-keyboard-inset,0px);
}
.chat-popup-messages{
padding-bottom: calc(0.75rem + var(--safeut-keyboard-inset,0px));
scroll-padding-bottom: var(--safeut-keyboard-inset,0px);
}
@media (hover: none) and (pointer: coarse){
.popup-textarea,
.popup-textarea.k-textarea,
.popup-textarea textarea,
.chat-popup-window input,
.k-animation-container .k-input-inner{
font-size: 16px;
}
}
