.chatbot * {
   padding: 0;
   margin: 0;
}

.chatbot {
   --padding-x: 1rem;
   --padding-y: 0.5rem;

   position: fixed;
   bottom: 1rem;
   right: 1rem;
   width: max-content;
   display: flex;
   flex-flow: column;
   gap: 1rem;
   align-items: flex-end;
   z-index: 9999;
}

.chatbot__form {
   position: relative;
   display: grid;
   grid-template-rows: auto 1fr;
   min-height: 15rem;
   height: 100%;
   max-height: 30rem;
   overflow: hidden;
   opacity: 1;
   transition: all 0.15s;
   background: #fff;
   min-width: 20rem;
   max-width: 20rem;
   box-shadow: 0 5px 10px #0003;
   border-radius: 0.5rem 0.5rem 1.5rem 1.5rem;
}

.chatbot__form.hidden {
   height: 0px;
   opacity: 0;
}

.chatbot__toggler {
   --size: 3rem;
   position: relative;
   background: #000;
   color: #fff;
   box-shadow: 0 5px 10px #0005;
   height: var(--size);
   width: var(--size);
   min-width: var(--size);
   min-height: var(--size);
   border-radius: 9999px;
   border: none;
   padding: 0;
   overflow: hidden;
}

.chatbot .toggler__overlay {
   position: absolute;
   top: 100%;
   left: 50%;
   border-radius: 9999px;
   transform: translate(-50%, -50%);
   background-color: #fff3;
   width: 0;
   height: 0;
   transition: all 0.15s;
}

.chatbot__toggler:hover .toggler__overlay {
   width: 100%;
   height: 100%;
   top: 50%;
}

.chatbot__header,
.chatbot__body,
.chatbot__footer {
   padding: var(--padding-y) var(--padding-x);
   position: relative;
}

.chatbot__header {
   position: relative;
   color: #fff;
   background: #000;
   box-shadow: 0 5px 10px #0003;
}
.chatbot__header-bg {
   position: absolute;
   top: 0;
   right: 0;
   width: 50%;
   height: 100%;
}

.chatbot .header1,
.chatbot .header2,
.chatbot .header3 {
   position: absolute;
   top: 0;
   right: 0;
   height: 100%;
}

.chatbot .header1 {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
   width: 100%;
   background: #7eb62855;
}
.chatbot .header2 {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
   width: 70%;
   background: #7eb62888;
}
.chatbot .header3 {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
   width: 40%;
   background: #7eb628bb;
}

.chatbot__header-text {
   position: relative;
   font-weight: 600;
   font-style: italic;
   letter-spacing: 1px;
   text-transform: uppercase;
}

.chatbot__body {
   position: relative;
   display: flex;
   flex-flow: column;
   overflow-y: scroll;
   scroll-behavior: smooth;
   gap: 1rem;
}

.chatbot__body::-webkit-scrollbar {
   width: 7px;
}
.chatbot__body::-webkit-scrollbar-track {
   background: transparent;
}
.chatbot__body::-webkit-scrollbar-thumb {
   background: #7eb628;
   border-radius: 9999px;
}

.chatbot .loading-response {
   width: max-content;
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 0.25rem;
   padding: 0.35rem 0.55rem;
   border-radius: 5px 1rem 1rem 1rem;
   /* box-shadow: 0 5px 5px #0002; */
   background: #7eb628;
}
.chatbot .dot {
   --size: 4px;
   display: flex;
   background-color: #fff;
   width: var(--size);
   height: var(--size);
   min-width: var(--size);
   min-height: var(--size);
   border-radius: 100%;
   transform: translate(0, 0);
}

.chatbot .message {
   width: 95%;
   padding: 0.5rem 1rem;
   font-size: 0.9em;
}

.chatbot .bot-message {
   align-self: flex-start;
   border-radius: 5px 1rem 1rem 1rem;
   background: #7eb628;
   box-shadow: -5px 5px 10px #0002;
   color: #fff;
}

.bot-message li {
   list-style: none;
}
.bot-message .comprobantes {
   display: flex;
   flex-flow: column;
   gap: 0.55em;
}
.comprobantes .numero {
   font-weight: 600;
}
.comprobante-header {
   display: flex;
   justify-content: space-between;
}

.chatbot .user-message {
   align-self: flex-end;
   border-radius: 1rem 5px 1rem 1rem;
   box-shadow: 5px 5px 10px #0001;
   background: hsl(84, 64%, 90%);
}

@keyframes bounce {
   from {
      transform: translate(0, 0);
   }
   50% {
      transform: translate(0, -2px);
   }
   to {
      transform: translate(0, 0px);
   }
}

.chatbot .dot:nth-child(1) {
   animation: bounce 0.5s ease infinite;
}

.chatbot .dot:nth-child(2) {
   animation: bounce 0.5s 0.16s ease infinite;
}

.chatbot .dot:nth-child(3) {
   animation: bounce 0.5s 0.32s ease infinite;
}

.chatbot__footer {
   padding: 1rem;
   border-top: 1px solid #f0f0f0;
   background: #fff;
}
.chatbot__footer .input-group {
   display: grid;
   grid-template-columns: 1fr auto;
   align-items: center;
   border-radius: 9999px;
   border: 1px solid #aaa;
}

.chatbot__footer:focus-within .input-group {
   border: 1px solid #7eb628 !important;
}

.chatbot__footer input {
   display: flex;
   background: transparent;
   border: none;
   width: 100%;
   box-shadow: none !important;
   height: 1.75rem;
   padding: 0 1rem;
}

.chatbot__footer button[type='submit'] {
   background: #000;
   margin: 0.25rem 0.5rem;
   width: 1.75rem;
   height: 1.75rem;
   border: none;
   border-radius: 9999px;
   color: #ffff;
   font-size: 0.65rem;
   transition: all 0.15s;
}

.chatbot__footer button[type='submit']:hover {
   background: #7eb628;
   margin: 0.25rem 0.5rem;
   width: 1.75rem;
   height: 1.75rem;
   border-radius: 9999px;
   color: #ffff;
   font-size: 0.65rem;
}

.chatbot .body-bg {
   position: absolute;
   top: 0;
   right: 0;
   width: 100%;
   height: 100%;
   opacity: 0.25;
}
.chatbot .figure1,
.chatbot .figure2,
.chatbot .figure3 {
   position: absolute;
   border-radius: 9999px;
}
.chatbot .figure1 {
   top: 0;
   left: 0;

   width: 10rem;
   height: 10rem;
   transform: translate(-25%, -25%);
   border: 0.75rem solid #7eb628;
   opacity: 0.75;
}

.chatbot .figure2 {
   top: 75%;
   left: 75%;
   width: 20rem;
   height: 20rem;
   transform: translate(-50%, -50%);
   border: 0.5rem solid #7eb628;
   opacity: 0.5;
}

.chatbot .comprobantes {
   display: flex;
   flex-flow: column;
   gap: 0.5rem;
   list-style: none;
   margin-top: 0.5rem;
   font-size: 0.9rem;
}

.chatbot .comprobante {
   background: #fff;
   padding: 0.25rem 0.5rem;
   display: flex;
   flex-flow: column;
}

.chatbot .comprobante__head {
   display: flex;
   align-items: center;
   justify-content: space-between;
}
.chatbot .comprobante__number {
   font-weight: 600;
}
