.chat-composer { &__wrapper { display: flex; flex-direction: column; z-index: 3; background-color: var(--primary-very-low); padding: 12px 10px env(safe-area-inset-bottom) 10px; .keyboard-visible & { padding-bottom: 0; } #chat-full-page-uploader, #chat-widget-uploader { display: none; } .drop-a-file { display: none; } } .chat-composer-button, .chat-composer-separator { align-self: stretch; } &__outer-container { display: flex; align-items: center; box-sizing: border-box; width: 100%; } &__inner-container { display: flex; align-items: center; box-sizing: border-box; width: 100%; flex-direction: row; border: 1px solid var(--primary-low); border-radius: 10px; background-color: var(--secondary); min-height: 50px; overflow: hidden; .chat-composer.is-focused & { border-color: var(--primary-low-mid); box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.1); } .chat-composer.is-disabled & { background: var(--primary-low); &:hover { cursor: not-allowed; } } } &__send-btn { will-change: scale; @keyframes sendingScales { 0% { transform: scale(0.9); } 50% { transform: scale(1.2); } 100% { transform: scale(0.9); } } .chat-composer.is-focused.is-send-disabled & { .d-icon { color: var(--primary-high); } } .chat-composer.is-sending & { animation: sendingScales 1s infinite linear; } .d-icon { background: none !important; } .chat-composer.is-send-enabled & { .d-icon { color: var(--tertiary); } &:hover { .d-icon { transform: scale(1.2); } } &:focus { outline: auto; } } .chat-composer.is-send-disabled & { cursor: default; .d-icon { color: var(--primary-low-mid); } &:hover { background: none !important; } } .chat-composer.is-disabled & { opacity: 0.4; &:hover { background: none !important; } } .d-icon { color: var(--primary); } } &__input-container { display: flex; align-items: center; box-sizing: border-box; width: 100%; align-self: stretch; } &__input { overflow-x: hidden; width: 100%; appearance: none; outline: none; border: 0; resize: none; max-height: 125px; background: none; margin: 0; padding: 0; text-overflow: ellipsis; cursor: inherit; @include chat-scrollbar(); &[disabled] { background: none; } &:focus, &:active { outline: none; } &:placeholder-shown, &::placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } &__unreliable-network { color: var(--danger); padding: 0 0.5em; } } .chat-composer-message-details { padding: 0 0.75rem 0.5rem; display: flex; align-items: center; .cancel-message-action { margin-left: auto; } }