body {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 14px;
  }
    
  .chat-widget {
    width: 450px;
    height: 750px;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    /*background: radial-gradient(
	ellipse at 50% 40%,
	#02143e 0%,
	#030c2a 100%*/
    z-index: 9997;
  }
  
  .bot-logo img{
    height: 30px;
    width: auto;
  }
  
  .chat-header {
    /*background-image: linear-gradient(45deg, #0084ff, #00b7ff);*/
    /*make same gradient for #008ECE*/
    background-color: #008ECE;
    /*background-color: #040416;*/
    color: #fff;
    height: 50px;
    padding: 10px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 50;
  }
  
  .chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
  }
  
  .chat-message {
    margin-bottom: 10px;
    /* max-width: 70%; */
    padding: 4px 8px;
    border-radius: 18px;
  }
  
  .chat-message p {
    margin: 0;
    padding: 4px 8px;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  .user-message {
    /* align-self: flex-end; */
    background-color: #008ece;
    /*background-color: #3fa2f6;*/
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .user-message .chat-message p {
    margin-left: 5px;
  }
  
  .bot-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .message-container{
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .chat-timestamp {
    font-size: 10px;
    color: #222;
    margin: 0;
    text-align: center;
    padding: 2px 4px;
  }
  
  /* .chat-message:first-child .chat-timestamp {
    display: block;
    margin-bottom: 2px;
    margin-top: -14px;
  } */
  
  .language-select {
    position: absolute;
    top: 12px;
    left: 20px;
    border: none;
    outline: none;
    color: #fff;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
  }
  
  .language-select:checked {
    color: #fff;
  }
  
  .language-select option{
    color: black;
  }
  
  #bot-select {
    position: absolute;
    top: 50%;
    left: 50%; /* Adjust this value as needed */
    transform: translate(-50%, -50%);
    border: none;
    outline: none;
    color: #fff;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
  }
  
  #bot-select:checked {
    color: #fff;
  }
  
  .typing-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing-indicator 1.2s infinite;
  }
  
  .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    }
      
  @keyframes typing-indicator {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  .chat-input-form {
    display: flex;
    background-color: #f8f8f8;
    align-items: center;
    padding: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 50;
  }
  
  .chat-input-form input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .chat-input-form button.send-btn {
    background-color: transparent;
    color: #1877f2;
    padding: 0;
    font-size: 20px;
    margin-left: 5px;
    border: none;
    cursor: pointer;
  }
  
  .avatar {
    width: 60px;
    height: 50px;
    margin-right: 5px;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .user-avatar {
    width: 35px;
    height: 32px;
    margin-right: 5px;
    border-radius: 50%;
    overflow: hidden;
  }

  .user-avataar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
/*  .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    
    position: absolute;
    top: -5px;
    right: 0px;
  }
  
  .close-btn img{
    width: 35px;
    height: 35px;
  }*/
  
  .restart-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    /*put it vertically in middle*/
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .restart-btn img{
    width: 35px;
    height: 35px;
  }
  
  .chat-header {
    position: relative;
  }
  
  /* Add keyframes for bounce animation */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-30px);
    }
    60% {
      transform: translateY(-15px);
    }
  }
  
  /* Apply the bounce animation to messages */
  .chat-message {
    animation: bounce 0.6s;
  }
  
  @media screen and (max-width: 600px) {
    .chat-widget {
      width: 100%;
      height: 100%;
      border-radius: 0;
      bottom: 0;
      right: 0;
      box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    }
  
    .chat-messages {
      height: calc(100% - 130px);
      overflow-y: auto;
    }
  }
  
  .speaker-icon {
    width: 20px;
    height: 20px;
    margin-right: 1px;
    display: flex;
    align-items: center;
  }
  
  .speaker-icon img{
    width: 20px;
    height: 20px;
  }
  
  .speaker-icon button{
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
  }
  
  /*FIRST NOTIFICATION*/
  .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 51;
  }
  
  .notification {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 51;
    text-align: center;
  }
  
  .show {
    display: block;
  }
  
  .notification ul li{
    margin-bottom: 10px;
    text-align: left;
    font-size: 14px;
  }
  
  .notification hr{
    margin-bottom: 10px;
  }
  
  .read-all-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 7px;
    right: 55px;
  }
  
  .read-all-btn img{
    width: 30px;
    height: 30px;
  }
  
  .mic-btn{
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .mic-btn img{
    width: 20px;
    height: 22px;
    position: relative;
    top: 2px;
  }
  
  @keyframes ripple {
    0% {
      box-shadow: 0 0 0 0 rgba(0,142,206,.7), 0 0 0 0 rgba(0,142,206,.5);
      border-radius: 60%;
    }
    50% {
      box-shadow: 0 0 0 120px rgba(0,142,206, 0), 0 0 0 240px rgba(0,142,206,0);
      border-radius: 60%;
    }
    100% {
      box-shadow: 0 0 0 240px rgba(0,142,206, 0), 0 0 0 360px rgba(0,142,206,0);
      border-radius: 60%;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .tl-icon {
      animation: none;
    }
    .tl-icon::after {
      display: none;
    }
  }
  

.tl-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-image: url('../img/tl-sygnet300.png');
    background-size: cover; /* ensure the image covers the whole element */
    background-position: center; /* center the image */
    background-repeat: no-repeat; /* prevent image from repeating */
    border-radius: 50%;
    border: 2px solid #008ECE;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    /* animation: glow 2s ease-in-out infinite; */
    animation: ripple 2s infinite;
    animation-iteration-count: 5;
  }
  
  @keyframes show-bubble {
    0% {
      opacity: 0;
    }
    10%, 90% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  .tl-icon::after {
    content: "Kliknij, by szybko uzyskać receptę i umówić się na wizytę!";
    position: absolute;
    top: 0;  /* Adjust these values according to your layout */
    right: 100%; /* This will place the bubble to the left of the icon */
    margin-right: 20px; /* Add some space between the icon and the bubble */
    padding: 10px;
    background-color: #008ECE; 
    color: #fff;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: show-bubble 10s forwards;
    width: 200px;
    white-space: normal;
  }
  
  .tl-icon:hover::after {
    opacity: 1;
  }
  
  body {
    content: '';
    display: block;
    clear: both;
  }
  
  .button-container {
    display: flex;
    flex-direction: column; /* change to column to align buttons vertically */
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin-top: 10px;
  }
  
  .message-button {
    width: 80%;
    border: none;
    border-radius: 20px; /* increase border radius for rounded corners */
    padding: 10px 20px;
    margin-bottom: 5px;
    background-color: #008ece;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: 600;
  }
    
  .message-button:hover {
    background-color: #007acc;
  }
