.chat-tab {
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    height: auto;
    width: auto;
}

.chat-tab #open-chat {
    display: block;
}

.pointer:hover {
    cursor: pointer;
}

.chat {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 100dvh;
    width: 100vw;
    border: 1px solid black;
    background-color: white;
    z-index: 1001;
	padding: 0;
}

.chat-tab {
	z-index: 10;
}

.chat .chat-header {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    z-index: 5;
    height: auto;
    padding: 0.3rem 0.7rem;
    background-color: #ffcf42;
    border-radius: 5px;
}

.chat .chat-header > div {
    padding: 1rem;
}

.chat .chat-header a:hover {
    color: black;
}

.chat .chat-body {
    height: 100%;
}

.chat iframe {
    border-radius: 0 0 5px 5px;
}

.fade-in {
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.4s;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.fade-out {
	opacity: 0;
	animation-name: fadeOutOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-out;
	animation-duration: 0.4s;
}

@keyframes fadeOutOpacity {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.bubble {
    --r: 1em;
    --t: 1.5em;
    
    max-width: 300px;
    padding: 1em;
    border-inline: var(--t) solid #0000;
    border-radius: calc(var(--r) + var(--t))/var(--r);
    mask: 
    radial-gradient(100% 100% at var(--_p) 0,#0000 99%,#000 102%) 
      var(--_p) 100%/var(--t) var(--t) no-repeat,
    linear-gradient(#000 0 0) padding-box;
    background: linear-gradient(135deg,#000000,#404040) border-box;
    color: white;
    
    position: fixed;
    height: auto;
    width: auto;
}

.bubble-one {
    bottom: 1.5rem;
    right: 1rem;
    transition: display 0.5s linear;
}

.bubble-one .typing {
    width: 2.2rem;
}

.bubble-two {
    bottom: 4rem;
    right: 1rem;
    transition: bottom 1s linear;
}

.bubble a {
    color: white;
	font-weight: 300;
	font-size: 1.1em;
}

.bubble a:hover {
    color: #ffcf42;
}

.bubble-right {
  --_p: 100%;
  border-bottom-right-radius: 0 0;
  place-self: end;
}

.typing {
  position: relative;
}
  
.ty {
    content: '';
    animation: blink 1.5s infinite;
    animation-fill-mode: both;
    height: 10px;
    width: 10px;
    background: #ffcf42;
    position: absolute;
    left:0;
    top:0;
    border-radius: 50%;
}

.ty:nth-child(2) {
  animation-delay: .2s;
  margin-left: 15px;
}

.ty:nth-child(3) {
  animation-delay: .4s;
  margin-left: 30px;
}

@keyframes blink {
  0% {
    opacity: .1;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: .1;
  }
}

@media only screen and (min-width: 769px) {
	.chat {
        height: 80vh;
        width: 30vw;
        bottom: 2rem;
        right: 2rem;
		top: 
        border-radius: 5px;
    }
    
    .chat-tab {
        bottom: 2rem;
        right: 2rem;
    }	
}