@keyframes show-typing {
  0% { opacity: 0; }
  99% { opacity: 0; }
  100% { opacity: 0.7; }
}

body.web_chat {
  .show-typing {
    opacity: 0;
    animation: show-typing 0.1s forwards;
  }

  .chat-bubble { 
    margin: calc(var(--base-spacing)/1.5) 0;
    animation: none;
    margin-left: 20px;
    margin-right: 0px;

    &.is-scribe,
    &.is-obelisk {
      margin-left: 0;
      margin-right: 20px;
      background-color: rgba(0, 0, 0, 0.02);
    }
    &.is-action-item {
      opacity: 0.8;
      background-color: rgba(0, 0, 0, 0.02);
      border: 1px solid var(--color-border);
      border-radius: 10px;
      padding: calc(var(--base-spacing)/2) calc(var(--base-spacing));
      margin: calc(var(--base-spacing)/1.5) 0;
    }
  }

  .messages-container {
    /* height: 62vh; */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  .timestamp {
    opacity: 0;
    display: block;
    width: 100%;
    transition: opacity 0.15s ease-in-out;
    padding-bottom: 0;
    margin-bottom: 0;
    margin-top: calc(var(--base-spacing)/2);
    text-align: right;
  }

  .chat-bubble:hover .timestamp {
    opacity: 0.5;
  }

  /* Action items group styling */
  .action-items-group {
    margin: calc(var(--base-spacing)/1.5) 0;
    opacity: 0.85;
  }

  .action-items-summary {
    list-style: none;
    user-select: none;
    transition: background-color 0.15s ease-in-out;
    outline: none;
  }

  .action-items-summary::-webkit-details-marker {
    display: none;
  }

  .action-items-summary::marker {
    display: none;
  }

  .action-items-summary:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .action-items-list {
    background-color: rgba(0, 0, 0, 0.01);
  }

  .action-item-compact {
    line-height: 1.4;
  }

  /* Chevron rotation when details is open */
  .action-items-summary .chevron {
    transition: transform 0.2s ease-in-out;
  }

  details[open] .action-items-summary .chevron {
    transform: rotate(90deg);
  }

  /* Allow tooltips to work on disabled button wrapper */
  button:disabled {
    pointer-events: none;
  }
}