.rao-react__history {
  display: flex;
  flex-direction: column;
  gap: var(--rhythm-3);
  padding: var(--rhythm-3) var(--rhythm-2_5);
  overflow-y: auto;
  background-color: var(--container-background-color, var(--color-light-stronger));
  color: var(--text-color, var(--color-dark-stronger));
}

.rao-react__history-section {
  display: flex;
  flex-direction: column;
  gap: var(--rhythm-1_5);
}

.rao-react__history-section-title {
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-semi-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-regular);
  margin: 0;
}

.rao-react__history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rhythm-1);
}

.rao-react__history-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rhythm-1_5);
  border: 1px solid var(--border-color);
  border-radius: var(--rhythm-1_5);
  padding: calc(var(--rhythm-1) + var(--rhythm-0_25)) calc(var(--rhythm-1_5) + var(--rhythm-0_5));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 252, 0.92));
  backdrop-filter: blur(4px);
  cursor: pointer;
  text-align: left;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.rao-react__history-item:hover {
  border-color: var(--border-hover-color);
  box-shadow: 0 var(--rhythm-1) var(--rhythm-2) rgba(var(--color-dark-stronger-rgb), 0.08);
  transform: translateY(-1px);
}

.rao-react__history-item:focus-visible {
  outline: var(--focus-shadow);
  outline-offset: var(--rhythm-0_25);
}

.rao-react__history-item-text {
  display: flex;
  flex-direction: column;
  gap: var(--rhythm-0_5);
  flex: 1;
}

.rao-react__history-item-title {
  font-size: calc(var(--font-size-base) * 0.95);
  font-weight: var(--font-weight-semi-bold);
  color: inherit;
}

.rao-react__history-item-description {
  font-size: calc(var(--font-size-base) * 0.8);
  color: var(--color-neutral-regular);
}

.rao-react__history svg {
  flex-shrink: 0;
  color: var(--color-neutral-light);
}

@media (max-width: 640px) {
  .rao-react__history {
    padding: var(--rhythm-2_5);
    gap: var(--rhythm-2);
  }

  .rao-react__history-item {
    border-radius: var(--rhythm-1);
    padding: var(--rhythm-1) var(--rhythm-1_5);
  }

  .rao-react__history-item-title {
    font-size: calc(var(--font-size-base) * 0.9);
  }
}
