.order-total-formula {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);

  h3 {
    margin: 0;
  }

  &__unavailable {
    margin: 0;
    color: var(--text-secondary);
  }

  &__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;

    th,
    td {
      text-align: left;
      padding: 6px 8px;
      border-bottom: 1px solid var(--border-color);
    }
  }

  &__summary {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;

    div {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    dt {
      color: var(--text-secondary);
    }

    dd {
      margin: 0;
      font-weight: 500;
    }
  }

  &__grand {
    padding-top: 6px;
    border-top: 1px solid var(--border-color);

    dt,
    dd {
      font-weight: 700;
    }
  }

  &__fx dd code {
    font-size: 0.8rem;
  }

  &__routing {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
  }
}
