:root {
  --ui-font-family-base: 'Inter', sans-serif;
  --ui-font-family-headers: 'Plus Jakarta Sans', sans-serif;
  --ui-button-border-width: 2px;
  --ui-shared-border-radius: 10px;
  --ui-shared-border-width: 2px;
  --ui-shared-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
  --ui-shared-padding-base: 1.25rem;
  --ui-shared-padding-md: 0.75rem;
  --ui-shared-link-color: #191919;
  --ui-border-radius-buttons: var(--ui-shared-border-radius);

  --ui-mobile-padding: 0 10px;
  --ui-input-padding-small-screens: 4px 8px;
  --ui-color-whatsapp-green: #D0FECF;

  --ui-whatsapp-box-shadow: 0 1px .5px rgba(11, 20, 26, .13);

  --input-height: 50px;
}

body {
  background-color: #f8f8f8;
}

#main-content {
  z-index: 1;
  position: relative;
}


.ui-box.--flat-bottom {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.message {
  display: flex;
  justify-content: flex-start;
  line-height: 1.5;
  white-space: pre-wrap;
}
.message .inner {
  border-radius: 10px;
  padding: 6px 10px;
  max-width: 70%;
  box-shadow: var(--ui-whatsapp-box-shadow);
}

.message.--from-me {
  justify-content: flex-end;
}
.message.--from-other {
  justify-content: flex-start;
}

.message.--from-me .inner {
  background-color: var(--ui-color-whatsapp-green);
  color: #191919;
}
.message.--from-other .inner {
  background-color: #fff;
  color: #191919;
}
.bg-whatsapp {
  background-color: #efeae2;
  background-image: url('/images/chatbg.png');
  background-size: 412.5px 749.25px;
}

@media (max-width: 768px) {
  .ui-container {
  }
}

.ui-chat-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.--chat-container-top {
  background-color: #fff;
  position: absolute;
  top: 0; 
  left: 0;
  right: 0;
  z-index: 1000;
}
.messages-container {
  padding-top: 100px;
  overflow: hidden;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
}
.htmx-request .shown-while-loading { display: block; }
.htmx-request .hidden-while-loading { display: none; }
.shown-while-loading { display: none; }
.htmx-request.faded-while-loading, .htmx-request .faded-while-loading  { opacity: 0.6 }

.ui-dropdown {
  position: relative;
  .--target {
  }
  .--trigger {

  }
  .--target {
    position: relative;
  }
  .--target .--inner {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);	
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-color: white;
    padding: 6px;
    border-radius: 10px;
    box-shadow: var(--ui-shared-box-shadow);
    min-width: 160px;
  }
  .--target.--hidden .--inner {
    position: absolute;
    opacity: 0;
    scale: 0;
  }
  .--target.--shown .--inner{
    position: absolute;
    opacity: 1;
    scale: 1;
  }
  
  .--target .ui-button.--sm {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    line-height: 26px;
  }
}

.ui-form .--chat-input {
  border: none;
  box-shadow: var(--ui-whatsapp-box-shadow);
}

* {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
}
a, button {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}



.ui-ios-list {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  & > * {
    background-color: #fff;
    padding: 13px;
    border-bottom: 1px solid var(--ui-color-gray-200);
  }
  & > *:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  & > *:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

.ui-mobile-container {
  padding: 20px;
}
.ui-alert {
  padding: 8px 10px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  display: flex;
  &.--green {
    background-color: var(--ui-color-green-50);
    border-color: var(--ui-color-green-600-20);
    color: var(--ui-color-green-700);
  }
  &.--red {
    background-color: var(--ui-color-red-50);
    border-color: var(--ui-color-red-600-10);
    color: var(--ui-color-red-700);
  }
}

.ui-button.--danger {
  background-color: var(--ui-color-red-700);
  border-color: var(--ui-color-red-600-10);
  color: #fff;
}