{# Tabs #}
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  gap: .5rem;
}
.tab {
  display: flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 2px solid #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s linear;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  animation-duration: .2s;
  gap: .5rem;
  font-size: 14px;
}
.tab:hover {
  transform: scaleX(1.05) scaleY(1.05);
  background: #f3f4f6;
  border-color: #f3f4f6;
}
.tab.active {
  background: #9234ea;
  border-color: #9234ea;
  color: #fff;
  border-bottom: 1px solid transparent;
}
.tab__icon {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 32px;
}
.tab__icon svg {
  width: 32px;
  height: 32px;
}
.tab__icon--orange {
  color: #f97316;
}
.tab__icon--blue {
  color: #3b82f6;
}
.tab__icon--green {
  color: #22c55e;
}
.tab__icon--purple {
  color: #a855f7;
}
.tab__label {
  display: none;
}
@media (min-width: 767px) {
  .tabs {
    gap: 1rem;
  }
  .tab__label {
    display: block;
  }
}

{# Conversation #}
.conversation__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.conversation-component {
  padding: 2rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(40px);
  animation: conversationIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
  transition: opacity 0.5s, transform 0.5s;    
}
.conversation-component--pizza {
  background-color: #fdf5f0;
  border: 2px solid #f8d8b0;
}
.conversation-component--hours {
  background-color: #f0faff;
  border: 2px solid #c4dbfb;
}
.conversation-component--menu {
  background-color: #f1fcf5;
  border: 2px solid #c8f5d3;
}
.conversation-component--catering {
  background-color: #faf6ff;
  border: 2px solid #e6d7fc;
}
@media (min-width: 767px) {
  .conversation-component {
    flex-direction: row;
    align-items: flex-start;
  }
}

{# Bubble #}
.bubble__wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.bubble__wrapper.a {
  opacity: 0;
  transform: translateX(40px);
  animation: bubbleAIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}      
.bubble__wrapper.b {
  opacity: 0;
  transform: translateX(-40px);
  animation: bubbleBIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}      
.bubble {
  width: 100%;
  padding: 14px 22px;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(60,72,95,0.09);
  font-size: 14px;
  text-align: center;
  font-style: italic;
  word-break: break-word;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: opacity 0.3s;
}
.bubble.a {
  background: #f2e5ff;
  color: #6a21a6;
  box-shadow: 0 2px 10px 0 rgba(60,72,95,0.09);
  border-bottom-left-radius: 0;
}
.bubble.b {
  background: #ffffff;
  color: #374151;
  box-shadow: 0 2px 10px 0 rgba(60,72,95,0.09);
  border-bottom-right-radius: 0;
}
.bubble.faded {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.bubble.active {
  opacity: 1;
  transition: opacity 0.3s;
}
.bubble__speaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.speaker__avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px 0 rgba(60,72,95,0.09);
}
.bubble__wrapper.a .speaker__avatar {
  background-color: #9234ea;
}
.speaker__avatar svg,
.speaker__avatar img {
  width: 40px;
  height: 40px;
}
.speaker__name {
  font-family: Cal Sans, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.bubble__divider {
  display: flex;
  align-items: center;
  justify-content: center;   
  gap: 1rem;   
}
.divider__icon {
  background-color: #9234ea;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px 0 rgba(60,72,95,0.09);
}
.divider__icon svg {
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  animation: divider-rotate 3s linear infinite;
}
.divider__line {
  width: 2rem;
  flex: 1;
  height: 2px;
  background-color: #9234ea;  
}
@media (min-width: 767px) {

}

@keyframes divider-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes conversationIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}      
@keyframes bubbleBIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}         
@keyframes bubbleAIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}