.cwt-wrapper { position: fixed; z-index: 2147483645; bottom: 0; right: 0; } .cwt { font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif; position: relative; height: 98vh; } /* CWT BUTTON */ .cwt__button { background: rgb(0, 156, 224); transition: all 0.15s; border-radius: 100px; position: absolute; cursor: pointer; z-index: 2147483644; bottom: 20px; right: 20px; } .cwt__button:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important; } .cwt__button__close, .cwt__button__wrapper { height: 51px; width: 51px; display: flex; align-items: center; justify-content: center; } .cwt__button__close { /* height: 40px; position: relative; width: 40px; display: flex; align-items: center; justify-content: center; */ } /* .cwt__button__close::before, .cwt__button__close::after { background-color: #fff; position: absolute; display: inline; height: 26px; content: ""; left: 25px; width: 2px; top: 13px; } .cwt__button__close::before { transform: rotate(45deg); } .cwt__button__close::after { transform: rotate(-45deg); } */ .cwt__button__wrapper { align-items: center; display: flex; gap: 6px; } .cwt__button__wrapper-title { text-wrap: nowrap; line-height: 19px; user-select: none; font-weight: 500; font-size: 16px; color: white; } /* .cwt__button__wrapper-icon { height: 18px; width: 18px; } */ /* CWT WIDGET */ .cwt__widget { background-color: #ddd; border-radius: 16px; bottom: 80px; display: flex; flex-direction: column; height: clamp(300px,80vh,690px); overflow: hidden; position: absolute; right: 20px; width: 400px; z-index: 2147483645; top: 30px; margin-top: auto; } @media screen and (max-height:500px) and (min-width:600px){ .cwt__widget { background-color: #ddd; border-radius: 16px; bottom: 10px; display: flex; flex-direction: column; height: calc(100% - 10px); overflow: hidden; position: absolute; right: 80px; width: 400px; z-index: 2147483645; top: 10px; margin-top: auto; } } .cwt__widget__header { background-color: #151718; align-items: center; padding: 0px 16px; min-height: 70px; max-height: 70px; display: flex; gap: 12px; } .cwt__widget__header-title { width: min-content; position: relative; font-weight: bold; font-size: 16px; color: white; display: flex; gap: 6px; align-items: center; } .cwt__widget__header-title::after { background-color: hsl(151 55% 41.5% / 1); border-radius: 24px; position: static; height: 8px; width: 8px; content: ""; /* right: -12px; */ /* top: 8px; */ } .cwt__widget__header-subtitle { color: #9ba1a6; font-size: 12px; } .cwt__widget__body, .cwt__widget__ui, .cwt__widget__footer { background-color: hsl(198 6.6% 15.8%); } .cwt__widget__body { padding: 0 16px; height: 100%; display: flex; flex-direction: column; overflow: auto; } .cwt__widget__body-wrapper { max-height: 100%; overflow-x: hidden; overflow-y: auto; padding: 16px 0; } .cwt__widget__body-wrapper::-webkit-scrollbar { display: none; } .cwt__widget__body>div { flex-direction: column; display: flex; height: 100%; gap: 2px; } .cwt__widget__body-message { width: min-content; font-size: 16px; color: white; } .cwt__widget__body-message span { word-break: break-all; text-wrap: wrap; max-width: 80%; white-space: pre-line; } .cwt__widget__body-message-frontend span { border-bottom-right-radius: 6px; border-top-right-radius: 6px; border-bottom-left-radius: 18px; border-top-left-radius: 18px; background: rgb(0, 156, 224); padding: 12px 16px 12px 16px; text-align: right; } .cwt__widget__body-message-backend span { border-bottom-right-radius: 18px; border-top-right-radius: 18px; border-bottom-left-radius: 6px; border-top-left-radius: 6px; background: rgb(76, 76, 76); padding: 12px 16px 12px 16px; } .cwt__widget__body-message-frontend { justify-content: flex-end; display: flex; width: 100%; } .cwt__widget__body-message-backend { justify-content: flex-start; display: flex; width: 100%; } .cwt__widget__body-message-file span { background-color: hsl(198 6.6% 15.8%); max-height: 175px; padding: 0; } .cwt__widget__body-message-file img { transition: 0.15s; border-radius: 6px; object-fit: cover; max-height: 175px; max-width: 175px; cursor: pointer; } .cwt__widget__body-message-file img:hover { opacity: 0.75; } .cwt__widget__ui { padding: 8px 16px 16px; border-top: 1px solid rgb(255 255 255 / 20%); flex-shrink: 0; } .cwt_widget__ui-wrapper .svg-file-pin, .cwt_widget__ui-wrapper .svg-file-send { padding: 4px; width: 24px; height: 24px; } .cwt_widget__ui-wrapper { padding: 8px !important; gap: 3px !important; align-items: center; display: flex; } .cwt-attach-input-label, .cwt-send-input-label { height: 28px; display: flex; align-items: center; } .cwt-notifies-close svg { height: 16px; width: 16px; } .cwt-notifies-close svg path { fill: #c6c6c6; } .cwt__widget__ui>div { background-color: hsl(207 5.6% 31.6%); border-radius: 6px; font-size: 14px; padding: 16px; } .cwt__widget__ui>div>div:nth-child(1) { margin-bottom: 4px; font-weight: 500; color: white; } .cwt__widget__ui>div>div:nth-child(2) { margin-bottom: 8px; color: #e6e8eb; } .cwt__widget__ui>div>div:nth-child(3) { background-color: rgba(38, 41, 43, 0); color: rgb(0, 156, 224); align-items: center; width: min-content; border-radius: 8px; transition: 0.15s; text-wrap: nowrap; margin-left: -8px; padding: 4px 8px; cursor: pointer; display: flex; gap: 8px; } .cwt__widget__ui>div>div:nth-child(3):hover { background-color: rgba(38, 41, 43, 1); } .cwt__widget__ui>div>div:nth-child(3) svg { margin-bottom: -3px; } .cwt__widget__footer { padding: 12px 0px; text-align: center; color: #999a9b; font-size: 12px; } /* CWT INPUT */ .cwt__widget__ui-textarea { background-color: hsl(207 5.6% 31.6%); position: relative; padding: 4px 0px; line-height: 1.5; overflow: hidden; font-size: 16px; color: white; resize: none; height: 24px; width: 100%; outline: 0; border: 0; margin: 0; max-height: 120px !important; } textarea.cwt__widget__ui-textarea::placeholder { font-size: 16px; font-weight: bold; color: #fff; opacity: 0.5; } /* CWT FILES */ .cwt__widget__body-message__file { text-align: center !important; transition: 0.15s; cursor: pointer; } .cwt__widget__body-message__file:hover { opacity: 0.75; } .cwt__widget__body-message__file>div:nth-child(2) { background-color: rgb(1 126 181); border-radius: 4px; padding-left: 4px; font-weight: 500; margin-top: 6px; color: #ddd; } .cwt__widget__body-message__file-icon { align-items: center; font-size: 16px; display: flex; gap: 6px; } .cwt__widget__body-message__file-icon span { padding: 0; margin: 0; } .cwt-file-reader { position: fixed; z-index: 2147483647; height: 100%; width: 100%; left: 0; top: 0; } .cwt-file-reader>div { background-color: rgba(0, 0, 0, 0.85); height: calc(100% - 60px); width: calc(100% - 60px); justify-content: center; align-items: center; padding: 30px; display: flex; } /* CWT NOTIFICATIONS */ .cwt-notifies { justify-content: flex-end; flex-direction: column; align-items: flex-end; position: absolute; overflow: hidden; z-index: 2147483647; display: flex; bottom: 100px; right: 20px; top: 20px; gap: 6px; width: clamp(100vw, 60vw ,350px); pointer-events: none; } .cwt-notifies > * { pointer-events: all; } .cwt-notifies-list { flex-direction: column; align-items: flex-end; padding-bottom: 4px; overflow-y: scroll; max-height: 150px; padding-top: 4px; display: flex; gap: 2px; } .cwt-notifies-list::-webkit-scrollbar { display: none; } .cwt-notifies-see { text-wrap: nowrap; text-wrap: wrap; align-items: center; color: #fff; cursor: pointer; display: flex; font-weight: 700; gap: 6px; margin-top: 16px; transition: .3s; background: #009ce0; padding: 8px 15px; border-radius: 25px; } .cwt-notifies-see:hover { transform: translateX(-6px); } .cwt-notifies-item { box-shadow: 0 0.25rem 6px rgba(50, 50, 93, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05); background-color: hsl(209 13.3% 95.3% / 1); border-radius: 16px 6px 16px 16px; border: 1px solid #cad0d4; width: min-content; padding: 8px 16px; cursor: pointer; } .cwt-notifies-item span { width: min-content; } .cwt-notifies-item>div:nth-child(1) { font-weight: 500; font-size: 14px; color: black; } .cwt-notifies-item>span:nth-child(2) { color: rgb(95, 95, 95); text-overflow: ellipsis; width: min-content; text-wrap: nowrap; min-width: 100px; max-width: 150px; overflow: hidden; font-size: 14px; display: block; } .cwt-notifies-close { background: #f4f6fb; align-items: center; border-radius: 12px; margin-bottom: 6px; padding: 4px 12px; color: #999a9b; font-size: 12px; cursor: pointer; display: flex; gap: 4px; border: 1px solid; } .cwt-notifies:after { background: radial-gradient(circle at 100% 100%,rgb(0 0 0 / 18%) 0,transparent 50%); bottom: 0; content: ""; display: block; height: 100%; position: fixed; right: 0; width: 100%; z-index: -30000000000000; background-repeat: no-repeat; top: 20px; pointer-events: none; } .cwt-notifies-close svg { margin-bottom: -1px; } .cwt-notifies-close:hover { opacity: 0.75; } .cwt__widget__header-close { justify-content: flex-end; display: flex; width: 100%; } .cwt__widget__body-message a { color: #ffffff; font-weight: 500; text-decoration: underline; transition: .1s; cursor: pointer; position: relative; background: linear-gradient(0deg, #fff 50%, transparent 50%); background-position-y: 0; background-repeat: no-repeat; background-size: 100% 200%; padding: 2px 4px; margin: 1px 2px; transition: .2s background-position, .2s color; } .cwt__widget__body-message a:hover { color: #019ce0; text-decoration: none; /* padding: 2px 4px; */ /* border-radius: 12px; */ background-position-y: 100%; } .cwt__modal__media { background-color: rgba(0, 0, 0, 0.25); justify-content: center; align-items: center; z-index: 2147483657; position: fixed; display: flex; height: 100%; width: 100%; left: 0; top: 0; } .cwt__modal__media>div { background-color: rgba(255, 255, 255, 0.85); border-radius: 12px; position: relative; padding: 6px; } .cwt__modal__media-content { border-radius: 12px; overflow: hidden; } .cwt__modal__media-content video, .cwt__modal__media-content img { max-height: calc(var(--vh) - 28px); max-width: calc(var(--vw) - 28px); } .cwt__modal__media-close { background-color: black; align-items: center; border-radius: 100%; position: absolute; cursor: pointer; display: flex; padding: 4px; right: 4px; top: 4px; } .cwt__widget__body-message-file__document { padding: 6px 16px 6px 6px; align-items: center; background: #666; border-radius: 8px; transition: 0.15s; font-weight: 400; cursor: pointer; color: white; display: flex; gap: 8px; } .cwt__widget__body-message-file__document>div { height: 36px; } .cwt__widget__body-message-file__document svg { height: 38px; width: 38px; } .cwt__widget__body-message-file__document--header { text-align: left; } .cwt__widget__body-message-file__document--name { text-overflow: ellipsis; text-wrap: nowrap; overflow: hidden; font-weight: 500; max-width: 100px; font-size: 14px; color: white; padding: 0; margin: 0; } .cwt__widget__body-message-file__document--open { margin: -1px 0px 0px 0px; font-size: 14px; color: #c6c6c6; padding: 0; } .cwt__error-notifications { flex-direction: column; align-items: flex-end; position: absolute; display: flex; right: 8px; top: 8px; } .cwt__error-notifications__item { background-color: #932b2b; letter-spacing: 0.05em; width: min-content; border-radius: 8px; color: #ffffff; font-size: 12px; padding: 8px; } .cwt__error-notifications__item--main { margin-bottom: 2px; text-wrap: nowrap; font-weight: 500; } .cwt__error-notifications__item--data { color: #e6e6e6; padding: 0; margin: 0; } @media (min-width: 600px) { .cwt__widget__header-close { display: none; } } @media(max-width: 600px) { .cwt-wrapper.open { left: 0; top: 0; } .open .cwt { height: var(--vh); max-height: 100dvh; left: 0; top: 0; bottom: 0; right: 0; } .cwt__widget { border-radius: 0px; height: var(--vh); max-height: 100dvh; width: 100vw; left: 0; top: 0; bottom:0; } .open .cwt__widget__body { /* height: calc(var(--vh) - 78px - 104px); */ height: 100%; overflow: auto; } .open .cwt__widget__body-wrapper { max-height: 100%; height: 100%; } } @media (max-width: 350px) { .cwt__widget__header-subtitle { text-wrap: wrap; width: 92px; } }